Is there a way of making forms dynamic in custom modules just like it is with tables?
-
My goal:
Build a module that on input takes the source db querry and dynamically makes the forms/buttons/filters -
Issue:
I can't really figure out how to make the form content dynamically match my table content -
Steps I've taken to troubleshoot:
not much that i could do, tried listview to dynamically add the text fields, but listview is not supported in the modules. Also i thought about createing the form directly from html but i dont really know if its possible and how to aquire that -
Additional info:
Generally, I'm working on custom module that could be reused for basic table functionalities (filters, searchbar, add buttons, group actions like delete etc.). As in the app developement i will use many different views/pages with around 20-50 displayed tables alltogether, i figured that it would be a good idea to try and make a dynamic table module that will make the job easier. But because the adding can be obtained only through form (the edit can be done inline and delete is just calling querry) i need to figure out a way of making the form adjust itself to the table it referes to. So is there a way to do that in a reusable module?
If not i will try to make this dynamic table usable on all other terms (buttons, searchbars etc) and the form will have to be called outside