Activities of "alper"

@jon replace this with the below. it'll solve that.

$(function () {
    var l = abp.localization.getResource("%%only-project-name%%");
	%%<if:IsTieredArchitecture>%%var %%entity-name-camelcase%%Service = window.%%solution-namespace-camelcase%%.controllers.%%entity-namespace-camelcase%%.%%entity-name-camelcase%%;%%</if:IsTieredArchitecture>%%
	%%<if:IsNonTieredArchitecture>%%var %%entity-name-camelcase%%Service = window.%%solution-namespace-camelcase%%.%%entity-namespace-camelcase%%.%%entity-name-camelcase%%;%%</if:IsNonTieredArchitecture>%%
	%%navigation-property-lookup-common-methods%%
	%%navigation-property-lookup-methods%%
    var createModal = new abp.ModalManager({
        viewUrl: abp.appPath + "%%module-name-slash-postfix%%%%entity-name-plural%%/CreateModal",
        scriptUrl: "/Pages/%%module-name-slash-postfix%%%%entity-name-plural%%/createModal.js",
        modalClass: "%%entity-name-camelcase%%Create"
    });

	var editModal = new abp.ModalManager({
        viewUrl: abp.appPath + "%%module-name-slash-postfix%%%%entity-name-plural%%/EditModal",
        scriptUrl: "/Pages/%%module-name-slash-postfix%%%%entity-name-plural%%/editModal.js",
        modalClass: "%%entity-name-camelcase%%Edit"
    });

	var getFilter = function() {
        return {
            filterText: $("#FilterText").val(),
            %%index-js-filtering-fields%%
        };
    };

    var dataTable = $("#%%entity-name-plural%%Table").DataTable(abp.libs.datatables.normalizeConfiguration({
        processing: true,
        serverSide: true,
        paging: true,
        searching: false,
        scrollX: true,
        autoWidth: false,
        scrollCollapse: true,
        order: [%%order-%%],
        ajax: abp.libs.datatables.createAjax(%%entity-name-camelcase%%Service.getList, getFilter),
        columnDefs: [
            {
                rowAction: {
                    items:
                        [
                            {
                                text: l("Edit"),
                                visible: abp.auth.isGranted('%%only-project-name%%.%%entity-name-plural%%.Edit'),
                                action: function (data) {
                                    editModal.open({
                                     id: data.record%%add-entity-name-camelcase%%.id
                                     });
                                }
                            },
                            {
                                text: l("Delete"),
                                visible: abp.auth.isGranted('%%only-project-name%%.%%entity-name-plural%%.Delete'),
                                confirmMessage: function () {
                                    return l("DeleteConfirmationMessage");
                                },
                                action: function (data) {
                                    %%entity-name-camelcase%%Service.delete(data.record%%add-entity-name-camelcase%%.id)
                                        .then(function () {
                                            abp.notify.info(l("SuccessfullyDeleted"));
                                            dataTable.ajax.reload();
                                        });
                                }
                            }
                        ]
                }
            },
			%%index-js-TableProperties%%%%table-navigation-property-fields%%
        ]
    }));

    createModal.onResult(function () {
        dataTable.ajax.reload();
    });

    editModal.onResult(function () {
        dataTable.ajax.reload();
    });

    $("#New%%entity-name%%Button").click(function (e) {
        e.preventDefault();
        createModal.open();
    });

	$("#SearchForm").submit(function (e) {
        e.preventDefault();
        dataTable.ajax.reload();
    });

    $('#AdvancedFilterSectionToggler').on('click', function (e) {
        $('#AdvancedFilterSection').toggle();
    });

    $('#AdvancedFilterSection').on('keypress', function (e) {
        if (e.which === 13) {
            dataTable.ajax.reload();
        }
    });

    $('#AdvancedFilterSection select').change(function() {
        dataTable.ajax.reload();
    });
});

hi jon, yes it would be great if Suite will keep your changes. this is a task on our milestone. this is hard to implement because it's not always replacing a file with a newer one but sometimes modifying an existing class. (Forexample Suite changes some information in DbContext classes.) So this is a known drawback and we'll try to cover this gap.

@hi jon,

I couldn't find a variable called %%np-edit-modal-js-open-args%%. Can you search this on templates page ?

@bhyatz can you create a new solution and test this issue on the new solution (v4.2.1) so we'll understand if you miss a migration step while upgrading from v3x to v4x

can you try this instead of manually adding the module to the project Create your main solution and then run DbMigrator. Then add this solution to Suite. Open Modules page, click Create a New Module Tick Add to the solution checkbox. This will create a new module into your main solution.

Meanwhile can you try this workaround Open MyProjectEntityFrameworkCoreModule.cs in ConfigureServices method. Delete options.UseSqlServer and write the below:

Configure<AbpDbContextOptions>(options =>
{
   options.Configure(ctx =>
   {
       ctx.DbContextOptions.UseOracle(ctx.ConnectionString);
   });
});

Sorry but my devart trial license has been expired. I need to find a license to check this issue.

Answer

When an entity has an AppUser navigation property, angular does not generate AppUserDto

I reproduced it. AppUserDto doesn't exist in the Angular template (out of box). But if you run generate-proxy AppUserDto will be generated in your Angular code. Anyway I created an issue for that.

You confused AbpLicenseCode and NuGet addresses. I also see that you are sending email about this issue. Please go with 1 channel.


You can find your AbpLicenseCode in your existing appsettings.json files. You can find your NuGet source in your existing NuGet.config files.

so copy them from your existing project into this new project. that's it.

did you add your private NuGet source to the NuGet.config file? you can find your private NuGet address from your existing project.

Showing 1091 to 1100 of 1975 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 19, 2024, 12:56