Search Support
-
RameshkumarNovember 11, 2015 at 12:51 pm #859
<span style=”text-decoration: underline;”>Cascading Multi select</span>
Scenario
Lets say User selects ‘A’ in the dropdown 1, I want to list ‘AB’, BC, CD in the second multi select. If User chose ‘B’ in the dropdown 1, different value to be displayed in the multi select control.
I have tried the above scenario by using ‘service input data’ and found there is an error in the console. Please let me know, is it a bug in SPARK or
is there any work around to achieve this ?.
PFA – Detail screenshots.
SPARK SupportNovember 11, 2015 at 2:24 pm #861Hey Ramesh,
I found an approach that you can use to accomplish what you need. Upon choosing an option within the Single Select, you can reload the service that populates the Multi Select with the data chosen. To do this you would need to have the following code within the onChange() event of your Single Select control:
{Multi_Select_Id}.reloadServiceItems(me.getData());
Doing so will allow your Ajax Service to receive the correct input needed to populate the Multi Select. Also, one thing I noticed was that you are defining results to be a list of ANY. Change that to a list of NameValuePair.
Thank you,
Elliot Pytosky
RameshkumarNovember 12, 2015 at 9:09 am #867Hi Elliot,
Thank you for the update. It is working as expected.
The same feature is working in Enterprise edition in 8.5.6 but not working in community edition of 8.5.0.1. Could you check it out. Currently I am working in 8.5.0.1 community version as well.
SPARK SupportNovember 12, 2015 at 11:02 am #871Hey Ramesh,
What version of the 8.5.0.1 CE of Spark are you working with?
Thanks,
Elliot P.
RameshkumarNovember 12, 2015 at 12:17 pm #872Hi Elliot,
<span style=”color: #000000; font-family: Calibri;”>I am having the latest one 4.0.4.2 community version.</span>
Also I am wondering, why do we need to call the below method. Is it a workaround for the bug or this is how it works ?
<span style=”color: #004c84;”>{Multi_Select_Id}.reloadServiceItems(me.getData());</span>
SPARK SupportNovember 12, 2015 at 1:52 pm #873When you say that the feature is not working, which feature are you referring to? Are you implementing the solution I proposed? When I ran the same solution I provided within 8.5.0.1 with 4.0.4.2 CE, it worked correctly.
As for the question regarding why I used that approach, it is because when the service input data of the multi select is bound to the variable that is the output of the single select, it does not run the Ajax service on change. Or in other words, choosing different options of the single select without explicitly running .reloadServiceItems() method On Change, does not work. This may be a bug that needs to be fixed.
Thank you,
Elliot Pytosky
RameshkumarNovember 12, 2015 at 2:10 pm #874Hi Elliot,
Thank you for the update. It is a minor bug in my Ajax service and it is working good now.
-
|
You must be logged in to reply to this topic.