|Clearing a wrapped form field [message #1741780]
||Mon, 29 August 2016 13:35
| Samuel Renold
Registered: January 2012
In my form, I have a table containing some lines.
Below this table, I have a wrapped form field.
The form field shows additional details for the selected line.
I.e. when a line in the table is clicked, the application loads additional data from the server and fills the data into the wrapped form field.
On some lines, there is no additional data. In this case, I want the wrapped form field to be cleared, i.e. all fields in this wrapped form field must be emptied.
What is the recommended way to do this?
- Loop through all value fields in the wrapped form field and set each value to null.
- Create an empty form field and import this empty form field. However, in order to make it work, all fields in the form data must have the property "m_valueSet" set to true. Also this idea requires some sort of loop over all fields.
Both ideas work, however, are there any simpler methods to clear a wrapped form field?
Best regards, Samuel
Powered by FUDForum
. Page generated in 0.01650 seconds