Base solution for your next web application

Activities of "soonjoo"

Hi @aaron,

Thank you for your reply, I had managed to get my code working after looking at the example code in those topics!

Hello team,

I have set up hangfire, and I can access the dashboard, however, how do I set up a recurring job so that it executes everyday at 12 midnight?

I have read the documentation and created a class which inherit BackgroundJob

public class DailyDataAggregatorJob : BackgroundJob<DailyDataAggregatorJobArgs>, ITransientDependency
    {
        public DailyDataAggregatorJob()
        {
        }

        [UnitOfWork]
        public override void Execute(DailyDataAggregatorJobArgs args)
        {
            Logger.Info("Inside DailyDataAggregatorJob");
        }
    }

however, where should I put the code the start this recurring job and tell them to execute it daily? according to the hangfire documentation I am supposed to add this line of code somewhere

RecurringJob.AddOrUpdate(() => Console.Write("Easy!"), Cron.Daily);

I have checked the abp documentation on background jobs but it doesn't demonstrate this.

thanks!

thank you @alirizaadiyahsi,

now it works, and i have set the gulp to run everytime after the program builds.. however, the gulp task never seems to finish, i need to manually terminate it all the time.. is this normal?

thank you

what are the errors that appear in the developer console??

hello team,

after upgrading from v4 to v5, i am able to log in successfully, but after entering the main page i cannot click on anything, im not sure where to investigate or fix these issues.. it might be caused by the merging of the new code, any help to point me into the right direction is appreciated. here is the error:

free website to upload photos

thank you.

Hello team,

I have managed to do it, and it successfully calls the barcode scanner and gets the result of the scan! I had to create an overloaded method for Navigation Service Set Detail Page Async, to accept page instead of just a viewType, then I would pass in the scanner into that page. After it completes the scan, it will pop the page back out. Thank you.

private async Task ScanBarcodeAsync()
        {
            var scanPage = new ZXingScannerPage();
            await NavigationService.SetDetailPageAsync(scanPage, null, true);
            scanPage.OnScanResult += (scanResult) =>
            {
                // Stop scanning
                scanPage.IsScanning = false;

                // Pop the page and show the result
                Device.BeginInvokeOnMainThread(async () => {
                    await NavigationService.GoBackAsync();
                    BarcodeText = scanResult.Text;
                    await SearchBarcodeAsync();
                });


            };
        }

After reading through more on the source code, I think I understand more. The sharing of Entity Code will be in Core.Shared project. Thank you.

Thank you, I will try that.

I am trying to add a barcode scanner onto my page. However, the Abp Xamarin framework is much different from the tutorials, and it's very hard for me who is very new to this. A little guidance is very appreciated.

This is the barcode scanner I plan to integrate, <a class="postlink" href="https://blog.xamarin.com/barcode-scanning-made-easy-with-zxing-net-for-xamarin-forms/">https://blog.xamarin.com/barcode-scanni ... rin-forms/</a>

They said to create a Scanner Page I just need 2 lines of code.

var scanPage = new ZXingScannerPage ();
// Navigate to our scanner page
await Navigation.PushAsync (scanPage);

I can see MenuProvider which allows me to add new menu items, and NavigationService which does the pushing and popping. However, how do I add this in using the current menu provider?

also, to get the results?

scanPage.OnScanResult += (result) => 
{
    // Stop scanning
    scanPage.IsScanning = false;
 
    // Pop the page and show the result
    Device.BeginInvokeOnMainThread (async () => 
    {
        await Navigation.PopAsync ();        
        await DisplayAlert("Scanned Barcode", result.Text, "OK");
    });
};

Thank you

Thanks @alper, it works now...!

thank you for you reply,

I think I understand what you mean.. is it based on the I in SOLID principle??

The interface-segregation principle (ISP) states that no client should be forced to depend on methods it does not use

It was so convenient with those attributes, but thats alright.. I have another question that relates.. So for certain attributes that used to be taken from the entity, what is the best practice to do so now? For example, my MaxLength attribute on Name in the dto, I used to just call [MaxLength(MyEntity.MaxNameLength)], but now we do not reference the entity and we can't do that anymore.. Is it ok to repeat them or is there another way to do so?

Thank you.

Showing 1 to 10 of 59 entries