on 03-16-2007 12:41 PM
Hi,
I have two dropDownByKey fields. CourseType and CourseName. The values of CourseName is dependent on CourseType. I am using value set Attributes to populate the values for both the dropdown. Everything is working fine. When I select a courseType, the respective courseName shows up in the second dropdown.
Now my problem is in the Initialization, I want to set default values for these two drop down. I am able to set the value for the attribute binded to CourseType. But the moment I try to set the value for the attribute binded to CourseName, I get Assert condition failed.
Both the attributes binded to drop down are of type char. I also was hardcoding a character in the set attribute statement. It still gives me the error 'Assert condition failed'. The datatypes are all same.
Can anyone help me out, where I could have gone wrong.
Regards,
<b>Javed</b>
Hi Javed,
For Dropdowns with variable value sets you should use DropDownByIndex instead of DropwdownByKey.
Ciao, Regina
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Regina,
I Tried to change from Key to Index but now nothing is working, i mean initially i was able to get value in first dropdown then on the selection of 1st i was able to get the corresponding values in 2nd , but now even that has stopped working.
Is there any way i can get a solution using dropdown by Key ??
If you still recommend me to code using byKey then plz help me with sample code for such scenario??
Thanks for ur help.
Javed.
Hi Regina,
Thanks for your Inputs. We have changed it to DropDownByIndex and used supply function for both the dropdowns. Now Things are working as before when we were usign DropDownByKey.
Now I tried to set default values for the First dropdown. It actually overwrites the existing entries, due to which I am able to see two entries with the same values. How do I default values in the proper way. Please help us out.
Regards,
Murali.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.