Version: 8.0.2 (MVC) I have create a method named "CreateOrUpdateAsync" in XAppService.Extended.cs. But when I look at swagger it shows "/api/app/x/or-update/{id}"
AppService:
public class XAppService : XAppServiceBase, IXAppService
{
//<suite-custom-code-autogenerated>
...
//</suite-custom-code-autogenerated>
[Authorize]
public virtual async Task<XDto> CreateOrUpdateAsync(Guid? id, XCreateDto input)
{
...
}
}
Interface:
public partial interface IXAppService
{
Task<XDto> CreateOrUpdateAsync(Guid? id, XCreateDto input);
}
Swagger:
/api/app/x/or-update/{id}
Should be:
/api/app/x/create-or-update/{id}
It would be great if pages also had "Excel Import" feature like Excel export.
Will abp suite support child's child entity? If not while creating a child entity, child entities shouldn't be selectable at master entity selection dropdown.
Currently, we are not considering supporting it.
But i can be able to select a child entity as a master of another entity. So suite cannot be able to handle it. In this case while creating a child entity, child entities shouldn't be selectable at master entity selection dropdown.
Version: 8.0.2 (MVC Leptonx) I have changed the logo like below. But if I refresh the app, first shows the default lepton logo then changes it to my logo.
[Dependency(ReplaceServices = true)]
public class XBrandingProvider : DefaultBrandingProvider
{
public override string AppName => "X";
public override string LogoUrl => "/images/logo/logo_light.png";
public override string? LogoReverseUrl => "/images/logo/logo_dark.png";
}
With version 8.0.2 (MVC) Abp suite creates a function like below for master-child data. When I click the details button on datatable it shows an error. Because
childB
indata.childB.id
is null at first.function initDataGrids(data) { initChildAGrid(data) $("#ChildBs-tab-" + data.childB.id).one("click", function (e) { initChildBGrid(data); }); }
But i think it should be like below
function initDataGrids(data) { initChildAGrid(data) initChildBGrid(data); }
After these changes there were a datatable column width issue on selecting the non visible tab. Making below changes resolved this issue.
function initDataGrids(data) { initChildAGrid(data) initChildBGrid(data); document.querySelectorAll('a[data-bs-toggle="tab"]').forEach((el) => { el.addEventListener('shown.bs.tab', () => { DataTable.tables({ visible: true, api: true }).columns.adjust(); }); }); }
Initializing the child data grids once should be enough actually, but I'll check this one.
I initialized them only one time already. Just wanted to show the final result of the function.
What about this issue?
Will abp suite support child's child entity? If not while creating a child entity, child entities shouldn't be selectable at master entity selection dropdown.
At master-child creation I would like to set add and update migrations instead of suite tries to do it immediately.
With version 8.0.2 (MVC) Abp suite creates a function like below for master-child data. When I click the details button on datatable it shows an error. Because childB
in data.childB.id
is null at first.
function initDataGrids(data) {
initChildAGrid(data)
$("#ChildBs-tab-" + data.childB.id).one("click", function (e) {
initChildBGrid(data);
});
}
But i think it should be like below
function initDataGrids(data) {
initChildAGrid(data)
initChildBGrid(data);
}
After these changes there were a datatable column width issue on selecting the non visible tab. Making below changes resolved this issue.
function initDataGrids(data) {
initChildAGrid(data)
initChildBGrid(data);
document.querySelectorAll('a[data-bs-toggle="tab"]').forEach((el) => {
el.addEventListener('shown.bs.tab', () => {
DataTable.tables({ visible: true, api: true }).columns.adjust();
});
});
}