Activities of "rafael.gonzales"

In the new Master | Detail functionality. The "Export to Excel" feature doesn't include Child entities in the XLSX.

Issue in the generated Master | Detail

Can you consider moving the "Add new child entity" button to the left instead of being aligned to the right? It will help with the visibility of the button.

in ABP Suite 8.0.0.rc-3

There is another issue in the generated Index.js

In the Init DataGrid for child entities, the viewURL and scriptUrl doesn't include the Project Name.

Using the template system to temporary fix this.

In template: Frontend.Mvc.Page.Partials.index.js_InitChildDataGridMethod.txt Now:

    function init%%child-entity-name%%Grid(data) {
        if(!abp.auth.isGranted("%%only-project-name%%.%%child-entity-name-plural%%")) {
            return;
        }
        
        var %%entity-name-camelcase%%Id = data%%<if:HasNavigationProperties>%%.%%entity-name-camelcase%%%%</if:HasNavigationProperties>%%.id;

        %%<if:IsTieredArchitecture>%%var %%child-entity-name-camelcase%%Service = window.%%solution-namespace-camelcase%%.controllers.%%child-entity-namespace-camelcase%%.%%child-entity-name-camelcase%%;%%</if:IsTieredArchitecture>%%
        %%<if:IsNonTieredArchitecture>%%var %%child-entity-name-camelcase%%Service = window.%%solution-namespace-camelcase%%.%%child-entity-namespace-camelcase%%.%%<if:IsModule>%%%%child-entity-name-camelcase%%%%</if:IsModule>%%%%<if:IsNonModule>%%%%child-entity-name-plural-camelcase%%%%</if:IsNonModule>%%;%%</if:IsNonTieredArchitecture>%%

        var %%child-entity-name-camelcase%%CreateModal = new abp.ModalManager({
            viewUrl: abp.appPath + "%%child-entity-name-plural%%/CreateModal",
            scriptUrl: abp.appPath + "Pages/%%child-entity-name-plural%%/createModal.js",
            modalClass: "%%child-entity-name-camelcase%%Create"
        });

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

        var %%child-entity-name-camelcase%%DataTable = $("#%%child-entity-name-plural%%Table-" + %%entity-name-camelcase%%Id).DataTable(abp.libs.datatables.normalizeConfiguration({
            processing: true,
            serverSide: true,
            paging: true,
            searching: false,
            scrollX: true,
            autoWidth: true,
            scrollCollapse: true,
            order: [[1, "asc"]],
            ajax: abp.libs.datatables.createAjax(%%child-entity-name-camelcase%%Service.getList%%child-navigation-properties%%By%%entity-name%%Id, {
                %%entity-name-camelcase%%Id: %%entity-name-camelcase%%Id,
                maxResultCount: 5
            }),
            columnDefs: [
                {
                    rowAction: {
                        items:
                            [
                                {
                                    text: l("Edit"),
                                    visible: abp.auth.isGranted('%%only-project-name%%.%%child-entity-name-plural%%.Edit'),
                                    action: function (data) {
                                        %%child-entity-name-camelcase%%EditModal.open({
                                            id: data.record%%include-navigation-property%%.id
                                        });
                                    }
                                },
                                {
                                    text: l("Delete"),
                                    visible: abp.auth.isGranted('%%only-project-name%%.%%child-entity-name-plural%%.Delete'),
                                    confirmMessage: function () {
                                        return l("DeleteConfirmationMessage");
                                    },
                                    action: function (data) {
                                        %%child-entity-name-camelcase%%Service.delete(data.record%%include-navigation-property%%.id)
                                            .then(function () {
                                                abp.notify.info(l("SuccessfullyDeleted"));
                                                %%child-entity-name-camelcase%%DataTable.ajax.reloadEx();
                                            });
                                    }
                                }
                            ]
                    },
                    width: "1rem"
                },
                %%index-js-TableProperties%%%%table-navigation-property-fields%%
            ]
        }));

        %%child-entity-name-camelcase%%CreateModal.onResult(function () {
            %%child-entity-name-camelcase%%DataTable.ajax.reloadEx();
        });

        %%child-entity-name-camelcase%%EditModal.onResult(function () {
            %%child-entity-name-camelcase%%DataTable.ajax.reloadEx();
        });

        $("#New%%child-entity-name%%Button").click(function (e) {
            e.preventDefault();
            
            %%child-entity-name-camelcase%%CreateModal.open({
                %%entity-name-camelcase%%Id: $(this).data("%%entity-name-camelcase%%-id")
            });
        });
    }

Should be:

function init%%child-entity-name%%Grid(data) {
    if(!abp.auth.isGranted("%%only-project-name%%.%%child-entity-name-plural%%")) {
        return;
    }
    
    var %%entity-name-camelcase%%Id = data%%<if:HasNavigationProperties>%%.%%entity-name-camelcase%%%%</if:HasNavigationProperties>%%.id;

    %%<if:IsTieredArchitecture>%%var %%child-entity-name-camelcase%%Service = window.%%solution-namespace-camelcase%%.controllers.%%child-entity-namespace-camelcase%%.%%child-entity-name-camelcase%%;%%</if:IsTieredArchitecture>%%
    %%<if:IsNonTieredArchitecture>%%var %%child-entity-name-camelcase%%Service = window.%%solution-namespace-camelcase%%.%%child-entity-namespace-camelcase%%.%%<if:IsModule>%%%%child-entity-name-camelcase%%%%</if:IsModule>%%%%<if:IsNonModule>%%%%child-entity-name-plural-camelcase%%%%</if:IsNonModule>%%;%%</if:IsNonTieredArchitecture>%%

    var %%child-entity-name-camelcase%%CreateModal = new abp.ModalManager({
        viewUrl: abp.appPath + "%%only-project-name%%/%%child-entity-name-plural%%/CreateModal",
        scriptUrl: abp.appPath + "Pages/%%only-project-name%%/%%child-entity-name-plural%%/createModal.js",
        modalClass: "%%child-entity-name-camelcase%%Create"
    });

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

    var %%child-entity-name-camelcase%%DataTable = $("#%%child-entity-name-plural%%Table-" + %%entity-name-camelcase%%Id).DataTable(abp.libs.datatables.normalizeConfiguration({
        processing: true,
        serverSide: true,
        paging: true,
        searching: false,
        scrollX: true,
        autoWidth: true,
        scrollCollapse: true,
        order: [[1, "asc"]],
        ajax: abp.libs.datatables.createAjax(%%child-entity-name-camelcase%%Service.getList%%child-navigation-properties%%By%%entity-name%%Id, {
            %%entity-name-camelcase%%Id: %%entity-name-camelcase%%Id,
            maxResultCount: 5
        }),
        columnDefs: [
            {
                rowAction: {
                    items:
                        [
                            {
                                text: l("Edit"),
                                visible: abp.auth.isGranted('%%only-project-name%%.%%child-entity-name-plural%%.Edit'),
                                action: function (data) {
                                    %%child-entity-name-camelcase%%EditModal.open({
                                        id: data.record%%include-navigation-property%%.id
                                    });
                                }
                            },
                            {
                                text: l("Delete"),
                                visible: abp.auth.isGranted('%%only-project-name%%.%%child-entity-name-plural%%.Delete'),
                                confirmMessage: function () {
                                    return l("DeleteConfirmationMessage");
                                },
                                action: function (data) {
                                    %%child-entity-name-camelcase%%Service.delete(data.record%%include-navigation-property%%.id)
                                        .then(function () {
                                            abp.notify.info(l("SuccessfullyDeleted"));
                                            %%child-entity-name-camelcase%%DataTable.ajax.reloadEx();
                                        });
                                }
                            }
                        ]
                },
                width: "1rem"
            },
            %%index-js-TableProperties%%%%table-navigation-property-fields%%
        ]
    }));

    %%child-entity-name-camelcase%%CreateModal.onResult(function () {
        %%child-entity-name-camelcase%%DataTable.ajax.reloadEx();
    });

    %%child-entity-name-camelcase%%EditModal.onResult(function () {
        %%child-entity-name-camelcase%%DataTable.ajax.reloadEx();
    });

    $("#New%%child-entity-name%%Button").click(function (e) {
        e.preventDefault();
        
        %%child-entity-name-camelcase%%CreateModal.open({
            %%entity-name-camelcase%%Id: $(this).data("%%entity-name-camelcase%%-id")
        });
    });
}

in ABP Suite 8.0.0.rc-3

In the Master Controller file. The path of the generated _ChildDataGrids.cshtml is wrong. It doesn't include the Module name so It will fail

Now

public class DemosController : AbpController
{
    [HttpGet]
    public virtual async Task<PartialViewResult> ChildDataGrid(Guid demoId)
    {
        return PartialView("~/Pages/Shared/Guias/_ChildDataGrids.cshtml", demoId);
    }
}

Should be

public class DemosController : AbpController
{
    [HttpGet]
    public virtual async Task<PartialViewResult> ChildDataGrid(Guid demoId)
    {
        return PartialView("~/Pages/MYMODULE/Shared/Guias/_ChildDataGrids.cshtml", demoId);
    }
}

in ABP Suite 8.0.0.rc-3

When you generate code for a DETAIL entity. The namespace added in the MASTER entity code is not the one defined in the DETAIL.json file instead It uses the following structure [PROJECT_NAME].[DETAIL_PLURAL_NAME].

It should be [PROJECT_NAME].[DETAIL_NAMESPACE]

Note: In some MASTER entities. The child namespace is missing.

I found a bug in ABP Suite 8.0.0.rc-3

When you create a Master Entity with a X number of properties and a Detail Entity with another Y number of properties and generate the C# code. When you want to delete a column in the MASTER entity. ABP Suite won't delete the entity in the Detail.json file specification and either won't be deleted in the language file "en.json".

This seems to be appearing in the new release candidate when you create a new module in a MVC | Non-Tiered Solution

There is a known bug right now in dotnet 8.0

If you compile the project you will get the following warning

The analyzer "Microsoft.AspNetCore.Analyzers.RouteHandlers.RouteHandlerAnalyzer" threw an exception of type "System.InvalidOperationException" with the message "Failed to resolve well-known type 'Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions'.".

This is not an ABP Related bug but a DOTNET 8.0 one. It will be fixed in the next dotnet patch. It can be followed here https://github.com/dotnet/aspnetcore/issues/50836

I think that the timing from GitHub and the ABP release schedule are not aligned. I got an alert from Git Hub about a new pre-release and updated my solution.

I will try again now

There is a critical error after updating to 8.0.0.rc-3

It's not possible to create a project in ABP Suite

Showing 81 to 90 of 142 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 20, 2024, 08:30