Heba Emara
Hello,
I have two single select controls, the second one should be filtered based on the selected value of the first one. The two controls are placed in a horizontal panel inside a coach view and Item lookup mode of both of them is “Items From Service”.
In the configuration of the first one, I added the following code to “On Change” event.
{$Single_SelectSP}.reloadServiceItems(this.getSelectedItem().value)
Single_SelectSP is the ID of the second SingleSelect control.
Result:
The second control is not filtered and coach is rendered on screen with different control ID “SSelect_div_4_1_2_1_3” instead of “Single_SelectSP”.
How can I handle this scenario if control ID is not constant?
Thanks in advance.
Regards,
Heba Emara
SPARK Support
Heba:
The only thing I see in what you are doing is use of this as opposed to me in this line: {$Single_SelectSP}.reloadServiceItems(this.getSelectedItem().value)
I have attached a word document that has a silly example of what we call Cascading selects (which I believe is what you are attempting). I think this might help you achieve the desired result.
Let us know if you have any problems
John
Heba Emara
The solution is working fine.
Thanks John for your support.