We have licensed copy of Aspnetzero.
Downloaded 2018 May .First Week.
Hi,
I am using powertool to generate entities. Working as expected.
Need some help ...
Entity Order -created using powertool - Tenant Option No HOST
Entity Products - created using powertool. Tenant Option No HOST
Case 1:
I am adding a new Menu item "Details" inside the action dropdown of Order page as "Product Details" for accessing products page.
"View", "Edit" are good. No issues.
On Typescript , using router , i am transferring to products page , after user selects the "Details" menu option.
Now the problem is , if i select my newly added menu "ViewDetail", it is always going to "GetNotifications - Http call and show the notification page.
MY Router config is good , no chrome debugger errors.
Need some suggestions to implement this , multiple attempts failed on this scenario.
Need code sample for case 1:
Case 2:
For "Delete" option in Action dropdown, i would like to delete the record permanently on Database, what settings do i have to do to fix this. (Instead of soft delete). I need to refresh my grid based on the delete option. I am getting "Deleted successfully Message". ut DB retains data. Need code sample on case 2:
8 Answer(s)
-
0
Case 2:
For "Delete" option in Action dropdown, i would like to delete the record permanently on Database
-
0
For Case 1:
Is your target page requires a permission ? This seems like a permission problem.
-
0
i agree.
but can u post a full sample code , where to modify the options
on both cases.Thanks
-
0
<cite>ismcagdas: </cite> For Case 1:
Is your target page requires a permission ? This seems like a permission problem.
Yes,
** as i said , all pages are generated using ASPNETZERO , "Create an Entity "menu options.
Both my pages requires permission , permission.isGranted('Pages.modulename.Edit') , permission.isGranted('Pages.modulename.Delete') auto generated by the power tool.
Can u simulate a simple app from u r end and check , how to handle this scenario.
-
0
Hi @dougmorato,
I thougt you were talking about the pages generated by RAD Tool. But it seems like you have added a new mneu item and related page, right ?
If so, could you share how did you added your routing ? It must be in admin-routing.module.ts file.
-
0
Thanks.
i believe , admin-routing has "App level artifacts " , all my entity/domain routing on my main.module .
From framework , u can easily generate my scxenario. could u please check to generate a sample and check and share the code.
Or template.txt has only Edit Delete and View options. do we need to modify the template for adding "ViewDetail" , just curios ??
-
0
<li> <a (click)="showProducts(record.app.id)">{{l(ViewDetail)}}</a> </li>
** generated by RAD tool.(main.module.ts)
Side panel, i have my Products Menu , which works fine. I am using the same path inside Order like ,
{{ path: 'ProductsApp/Products', component: ProductsComponent, data: { permission: 'Pages.Products' }}
using this path , typescript using
showProducts(){ router redirect ('ProductsApp/Products')
}
-
0
Hi,
If you want to add such a menu items to generated pages, yes, you need to modify the templates of RAD Tool. There is a similar example in AspNet Zero's languages page, see:
<a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/app/admin/languages/languages.component.html#L72">https://github.com/aspnetzero/aspnet-ze ... t.html#L72</a> <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/dev/angular/src/app/admin/languages/languages.component.ts#L47">https://github.com/aspnetzero/aspnet-ze ... ent.ts#L47</a>