• Amr Mahfouz
    January 6, 2019 at 11:43 pm #5379

    i am using ibm bpm 8.6, i am trying to use the single select control with loading service for items

    i want to speciy the input value for data service usnig
    me.setServiceInputData({“default”}) inside load event
    but it seems that is not correct, and no effect on the service, below error shows
    Error registering [eventON_LOAD] event handling for view Multi_Select1: missing : after property id

    it seems that it should be json object, i tried both below but still data for service is not passed
    please help

    SPARK Support
    January 9, 2019 at 12:56 pm #5384

    Hi Amr,

    This appears to be happening due to the timing of the execution of the On Load event and when the Service Call is executed to obtain the item list.

    You may want to configure a variable with a default value and bind this to the Service Input Data configuration option in the Multi-Select control’s Item configurations.

    Or, you can try setting a Timeout from the On Load event with something like this:

    var ms = me; setTimeout(function(){ ms.reloadServiceItems(“default”); }, 500);


    Stephen P.

    Amr Mahfouz
    January 9, 2019 at 11:16 pm #5386

    Hi Stephen,
    thank you for your reply,
    it didn’t solve the problem,
    i think the problem is that data to load items service is not passed at all, hence the service input (data) is always undefined.

    please check the attached image.

    SPARK Support
    January 11, 2019 at 8:44 am #5390

    Hi Amr,

    I have tested the solution with using a variable bound to the Service Input Data configuration and calling reloadSerivceItems() via a setTimeout() in the On Load Event.  In both cases, the correct result set is being returned based on the input data that is sent to the Service Items service.

    You may want to double check your script in the service items service.

    As you are using BPM version 8.6 which includes the toolkit as part of the stock BPM UI, if you feel that you are experiencing a defect you may submit a ticket for support with IBM here: https://www.ibm.com/support/home/


    Stephen P.

    Amr Mahfouz
    January 12, 2019 at 9:38 pm #5393

    Hi Stephen
    thank you for your help,

    sorry i forgot to bind service data input
    i tried now it is working but the service is being called twice first time with binded valued and second time with value from load event.

    but anyway it seems that setServiceInputData() method contains a bug

    thanks again

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

You must be logged in to reply to this topic.

Start typing and press Enter to search