Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "sbenfares"

Hi,

I have a DTO & ViewModel with a boolean fields. (MyData)

I'm using a checkbox on my razor view :

<input type="checkbox" id="myCheckBox" name="myCheckBox" value="@Model.MyData" checked="@Model.MyData" />

When i try to call my service :

                        myService.myMethod($form.serializeFormToObject())
                            .done(function () {
                                // Todo notify
                            });

I have an error which explain me that the serializeFormToObject() method cannot bind checkbox string to bool :

Could not convert string to boolean: value

Hi,

Can you explain the difference between the AbpSettings table and AppSettingProvider.

What is the best practice for storing settings ?

I have settings which are in the AppSettingProvider, but i can't see them in the table AbpSettings is it normal ?

Shoulh i put all my settings in the table using AddSettingIfNotExists() or is it ok to store some only in the AppSettingProvider ?

Thanks for the explanation :)

Hi,

I would like to implement a datatable page with a checkbox list filters. (you can check the capture joined).

I'm trying to do this with this jqueryCode :

listAction: {
                ajaxFunction: _candidatService.getCandidats,
                inputFilter: function () {

                    return {
                        metiers: $('#metiersFilter input:checked[name="Metiers"]').map(function () { return $(this).val(); }).get()
                    };
                }
            },

It's not working because on the first load my list is empty (no checkbox is checked) and when it's serialized to my inputDto i have an error :

validationErrors: Array(1) 0: {message: "The value '' is invalid.", members: Array(1)}

See my Input Dto :

[CanBeNull] public List<int> Metiers { get; set; }

Any help appreciated.

PS : When i force in code an empty array it's not working too ... bizarre...

listAction: {
                ajaxFunction: _candidatService.getCandidats,
                inputFilter: function () {

                    return {
                        metiers: []
                    };
                }
            },

Hi,

What is the best way to define permissions for a specific role by code in the Seed actions _(or somewhere else) _?

How is it handled for the admin default user in ANZ ?

I would like to automatically link permissions & roles by code for the first default startup of my app, and not to have to go to the interface.

Thanks

Hi,

I'm using ANZ on a new PC.

I have installed VS 2017 and all the tools, getting my files from GIT, but when i open my SLN some .js and .css are not minified.

I've run "npm run create-bundles" but in VS2017 i still don't have any minified files.

Any idea ?

Hi,

What is the best Way to merge migrations in one.

I Have in my EF Core Migrations :

  • 20180807062930_Upgrade_ABP_v3.8.2.cs
  • 2018XXXX_Upgrade_MyMigration1.cs
  • 2018XXXX_Upgrade_MyMigration2.cs
  • 2018XXXX_Upgrade_MyMigration3.cs
  • .....
  • 2018XXXX_Upgrade_MyMigrationX.cs

I would like to merge MyMigration1 to MyMigrationX in one migration (and keep ABP migrations).

How to deal it with ContextModelSnapshot file ?

Thanks

Hi,

I have performance issue, each time i build/run/debug my app, it takes a very long time (i think it may be due to gulp/yarn or other client tasks)

Is there any way to improve the speed of the project ?

I should wait 2-3 minutes on each RUN (F5) before testing my app...

I'm using a Dell Latitude E5540 - Corei5 - 16gb Ram and SSD

Thanks

Hi,

I would like to build a PagerViewComponent for getting my data paginated in ANZ / ABP, and reuse this component.

I don't want to use Datatables, because my view is not meant to display table rows.

Do you have any sample or documentation for this ?

I think it would be useful for other ANZ users.

Thanks

Hi,

What is the best way to get Const/Enum value (declared in Core.Shared project) in abp/jquery ajax ?

I need to call an abp.service from js, and use a Const/Enum value in parameter

Thanks

Hi,

I would like to integrate jPList library into my ANZ project : https://www.jplist.org/

Do you think it's possible, do you have best practise to handle querying data from abp.Services ?

Thx

Showing 11 to 20 of 26 entries