• Pavan Kumar
    January 22, 2020 at 9:25 am #5631

    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
    January 22, 2020 at 9:39 am #5632

    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?


    Stephen P

    Pavan Kumar
    January 22, 2020 at 10:18 pm #5635

    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
    February 25, 2020 at 9:53 am #5694

    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]


    Stephen P.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Start typing and press Enter to search