Hi
I use v14.00 of aspnetzero. I use MVC& jQuery project type
I need to add Dynamic Entity Property Values to the CreateEditModal in a tab layout. The tab should only be visible if the entity has Dynamic Properties configured and the user has the necessary permissions.
How can I implement this? Are there any existing code samples or blog posts that explain this?
5 Answer(s)
-
0
Hi @Prasanthtp
Have you looked at this document? It explains how to add it here. And "Create Custom Input Types" document
-
0
Yes, I had a look at that document. In this document, dynamic properties come in a separate modal popup. But I want to implement it as a separate tab in the CreateEditModal of the entity
-
0
Hi @Prasanthtp
Here, dynamic properties are defined on a separate page and the dynamic properties created for the relevant entity are assigned. After this assignment process is done, these property value definitions are opened as modal under the Actions button in the relevant entity table. Here, you can move it as a tab to the CreateOrEdit modal, not as Actions.
-
0
Hi
How do I move it to a tab in CreateOrEdit modal? Do we have a sample code somewhere? what are the js files I need to include for this? -
0
Hi @Prasanthtp
Here, for example, you can check the CreateOrEditModal.cshtml and _CreateOrEditModal.js files of Roles. If you want to add a second tab to the modal, you can use the simple method here. After defining the Custom Dynamic Properties, you can move the modal opened in Actions to the second tab as a reference here.
Related modal ui example