2 weeks ago
Hi All!
I am having trouble understanding, and gaining access to the values within object tables. My current project uses a 'checklist' which uses the object table as its main component, and each 'item' in the checklist has a boolean field in its ODATA called 'isMandatory'.
Ultimately, I need to be able to submit this checklist using a submit button at the bottom of the page, ONLY IF all items that are Mandatory have been populated. I just have no idea how to access those values...
I have attached a text file with the page structure taken. Currently, the 'isMandatory' value is being held in the statusText field.
Any help would be greatly appreciated!
I don't see the StatusText in the Object Table as being set. However the Object Table is a display control. There is no way to access it's content (plus it pages data in so there is no guarantee all the data is loaded in the control yet). If you need to validate that all items with isMandatory are populated correctly you can use a rule and perform a clientAPI.read to target the same entity set as the Object Table and include isMandatory eq true in the filter criteria. Then loop over the results to confirm the necessary fields are populated before proceeding with the submission process.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.