cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create UI Controls dynamically

fjcarrasco
Active Participant
295

Hello experts, I have a requirement where I need to create dynamically sections and ui controls to enter data because the fields to include in the page are based on some information that I get from odata.

Is it possible add controls in a rule onLoaded page event ? Some help would be appreciate.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert

There are two options you can consider.

1) You can build the page to include all the fields and use rules to control the visibility of sections and controls

2) You can dynamically generate the full page metadata at runtime and set it in the Page Metadata property of your Navigation action. We currently don't have any helper functions for aiding in the creation of the page metadata but are considering it in the future. While this offers the maximum flexibility it also mens you take responsibility to make sure your page is correctly formatted. Since you also mention needing it for entering data, you will have to write appropriate rules that are able to correctly retrieve the data from the page for use in any actions to create / update the backend data source.

fjcarrasco
Active Participant
0 Likes

Thanks bill.froelich . I'll try option 2). It seams interesting.

Answers (0)