• Prashant Tiwari
    February 9, 2017 at 11:20 am #3644


    It seems that Single select On Error event cannot read other coach views on the page.

    Here is what I am trying to do :

    Have a single select dropdown populated through Ajax service.

    If Ajax service encounters error, I want to show a modal alert with error message.

    For some reason, modal alert does not show up when I do  following on Error event of single select:



    This, however works if I put it on Click of button.

    I know error event is being fired because I logged error message in browser and it logs that.Also, if I make it fire Alerts, like ${Alert1}.appendAlert(“”,”There was an Error”,”D”), this works from single select on error event.

    Prashant Tiwari
    February 9, 2017 at 12:21 pm #3646

    Steps to reproduce:

    Create a Heritage Human Service – add a single select, modal alert and 2 buttons
    Set the ID of the modal to “Modal1”
    Set the default visibility of the modal to “None”
    Add the following event handler code to the “on service error” event of the single select: ${Modal1}.setVisible(true);
    Set the “Item Lookup Mode” config of the single select to “Items from Service”
    Create and bind an ajax service to the single select “List Items Service”. All the ajax service needs to be is a js activity that throws an exception
    Run the service. I would expect the modal to open but it flashes and closes.

    Another interesting observation – if you add button to open the modal (Show Modal in my case) and put this code in the “on click” event of the button: ${Modal1}.setVisible(true);

    the modal will not open until you remove the setVisible code from the single select “on service error” event.

    SPARK Support
    February 17, 2017 at 11:33 am #3749

    Hi Prashant,

    I have been able to replicate this issue.

    A bug has been logged to investigate providing a fix in an upcoming release.


    Stephen P.

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

You must be logged in to reply to this topic.

Start typing and press Enter to search