Hi @WirelessDynamics,
Can you send me the error screenshot? Is there of the many places? Next release in the next week, if you send me the errors we will fix in the next version.
Hi @WirelessDynamics,
You can apply this solution. I updated the answer for better solution. https://support.aspnetzero.com/QA/Questions/12129/Power-Tool-Navigation#answer-28d2167f-9e8e-1ddd-5823-3a14c9e417f3
Hi @WirelessDynamics,
For temporary solution:
Go: AspNetZeroRadTool\FileTemplates\Client\Angular\ComponentTemplate\PartialTemplates.txt
and copy it to PartialTemplates.Custom.txt
in the same folder.
Add following code to navigationPropertyTemplates
{
"placeholder" : "{{NP_Fill_Null_For_Excel_Filter}}",
"templates" : [
{
"relation" : "single",
"content" : "
undefined,"
}
]
}
Update following lines with NP_Fill_Null_For_Excel_Filter
instead of NP_Fill_Null_For_Filter_Generated_By_Master_Pages
{
"placeholder": "{{Get_Excel_Method_Here}}",
"condition": "{{Create_Excel_Export_Here}} == true && {{Project_Version_Here}} >= 130200",
"content": "
exportToExcel($event): void {
this._{{entity_Name_Plural_Here}}ServiceProxy.get{{Entity_Name_Plural_Here}}ToExcel(
this.filterText, $event, {{Property_Filter_Param_Here}}{{NP_Filter_Param_Here}}{{NP_Fill_Null_For_Excel_Filter}}
)
.subscribe(result => {
this._fileDownloadService.downloadTempFile(result);
});
}"
},
{
"placeholder": "{{Get_Excel_Method_Here}}",
"condition": "{{Create_Excel_Export_Here}} == true && {{Project_Version_Here}} < 130200",
"content": "
exportToExcel(): void {
this._{{entity_Name_Plural_Here}}ServiceProxy.get{{Entity_Name_Plural_Here}}ToExcel(
this.filterText, {{Property_Filter_Param_Here}}{{NP_Filter_Param_Here}}{{NP_Fill_Null_For_Excel_Filter}}
)
.subscribe(result => {
this._fileDownloadService.downloadTempFile(result);
});
}"
},
For the second problem, inject the repository into new fields from the constructor and use it directly. But we will fix in the next version by changing it to protected property.
Hi @huntethan89,
Could you try this solution?
Add wrap attribute to the class.
[WrapResult(WrapOnSuccess = false, WrapOnError = false)]
public class ProxyController : ProjectDemoControllerBase
{
public async Task<IActionResult> Index()
{
var url = "the-url";
// Ensure the response is fully handled by HttpProxyAsync
await this.HttpProxyAsync(url);
// Return a blank result to avoid modifying the response after it has started
return new EmptyResult();
}
public Task ProxyToPHPServer()
{
return this.HttpProxyAsync("url");
}
}
Hi @WirelessDynamics,
Could you share your entity.json files? For base entity and child entity. So I can offer you a temporary solution.
Hi @WirelessDynamics,
It is not possible at the moment. You need to handle it manually
Hi @truist.software,
This error happens if you don't select any column. You can choose at least one column.
You can add following line to _ExcelColumnModal.js
this.save = function () {
const exportExcelInput = _modalManager.getArgs();
exportExcelInput.selectedColumns = _modalManager
.getModal()
.find('input[type="checkbox"]:checked')
.map(function () {
return $(this).val();
})
.get();
// Fix error
if (exportExcelInput.selectedColumns.length === 0) {
abp.message.warn(app.localize('PleaseSelectAtLeastOneColumn'));
return;
}
_brosService.getBrosToExcel(exportExcelInput).done(function (result) {
app.downloadTempFile(result);
_modalManager.close();
});
};
Hi @gekko,
Could you update your aspnetzero to the latest version? Or you can update to the latest Abp.Zero.Common
https://github.com/aspnetboilerplate/aspnetboilerplate/issues/6950
Hi @truist.software,
Sorry for the late reply. We detected the error. In the next release, it will be fixed.
Hi @mittera,
If you share the logs from the application, we may find the error. The application service methods in the plugin must work successfully.
This is a modular monolith example. However, the structure is similar to the plugin system. https://github.com/aspnetzero/aspnet-zero-samples/tree/master/ModularMonolithMvcDemo
Also the documentation https://aspnetboilerplate.com/Pages/Documents/Plugin