Search Support
-
Amr MahfouzJanuary 6, 2019 at 11:43 pm #5379
hi
i am using ibm bpm 8.6, i am trying to use the single select control with loading service for itemsi 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 idit seems that it should be json object, i tried both below but still data for service is not passed
me.setServiceInputData({“data”:”default”})
me.setServiceInputData(“default”)
please helpSPARK SupportJanuary 9, 2019 at 12:56 pm #5384Hi 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);
Regards,
Stephen P.
Amr MahfouzJanuary 9, 2019 at 11:16 pm #5386Hi 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 SupportJanuary 11, 2019 at 8:44 am #5390Hi 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/
Regards,
Stephen P.
Amr MahfouzJanuary 12, 2019 at 9:38 pm #5393Hi 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
-
|
You must be logged in to reply to this topic.