I’d like to have a method retrieve a list of the elements on a given form. Ideally, the list would show the text property of the form, but the name property would be acceptable.
Scenario: I have a form with a tabpanel. The tabpanel will show table forms for a number of data elements. I’ll have a ‘field name’ field and a ‘field value’ field on the main form (above the tabpanel), to be used for filtering the table shown in the tab panel. The ‘field name’ should show a list of the fields shown in the table.
A list of the elements’ ‘name’ properities would work, but I prefer to leave the ‘name’ property matching the dataprovider name, and alter the ‘text’ property instead for a user-friendly name.
I don’t have the specific code right now, but on the form node, there’s the ability per form to get the element count. You can then do a loop and do something like:
element*.getName();* Maybe you can also do getText, dunno about that. This way you only get the named elements, meaning, the elements that also show in the Servoy Editor. Hope this gets you going… Paul