Pavan Kumar
Hi All,
What is the structure of return object of bpmext.ui.getInvalidViews(); ? I have 3 invalid views , in console it shows [object Object],[object Object],[object Object].
I want to see list of invalid views using this. Can anyone help me how to read the returned object ?
SPARK Support
Hi Pavan,
You should be able to access the results of getInvalidViews() like an array in the console. Maybe you are trying to write the objects out to the console instead of getting the names?
Regards,
Stephen P
Pavan Kumar
Thanks for reply stephen.
var invalidViews = bpmext.ui.getInvalidViews(); — I have written this code in onClick event of button.
console.log(invalidViews [0]);
the above code also not showing proper data in console. is this valid behaviour ?
I would like to validate controls with setInvalid() then get the control/label names are which are invalid using bpmext.ui.getInvalidViews(); . So that i can show validation errors to the user with these invalid control/labels.
SPARK Support
Hi Pavan,
It appears that you have a space the Invalid Views variable and your array index: invalidViews [0]
There should be no space when referencing an array index: invalidViews[0]
Regards,
Stephen P.