Run SDK JS script from app UI.

0
Hi, I wonder if there is a possibility to generate csv file with all imput fileds(text box, drop-down etc.) in app listed (label, field type, page name where it is used) from inside of app (action available for admin).My idea was to use Mendix Platform SDK and Mendix Model SDK, preapare a script and use it in nanoflow as JavaScript action but I don't know if this is even possible.Has anyone try similar thing or maybe you have other idea to create such file?
asked
1 answers
0

I think this is more of a documentation / audit / impact analysis requirement than a normal in-app feature.


If your goal is to generate a list of all input fields used across pages, then you are basically trying to read the app model metadata, not runtime data. For that kind of requirement, doing it inside the app through a nanoflow or JavaScript action may not be the right approach.

A better option would be to use the Model SDK externally to scan the pages and export the details into CSV.


So I would first clarify:

  • do you want this as a one-time/export utility
  • or do you really need it as an admin action inside the running app



That clarification will decide the correct solution.

answered