on 08-20-2012 1:14 PM
Hi,
Requirement(can be ignored)- Filter the tax code drop down list based on dynamic change of company code.
Problem faced- Unable to set selected value from the drop down.
I am able to display filtered value for the drop down but when i select any tax code from the drop down -> WDDOMODIFYVIEW gets triggered and the list gets refreshed again. As a result the selected value doesn't show up.
-Data binding is fine(output shown is correct)
-WDDOMODIFYVIEW getting triggered again is causing the problem
My code ends up with data binding. Is there anything missing which is causing problem over the value selection?
Other possible ways tried- both didn't help
-WDDOAFTERACTION
-ONACTIONONTAXSELECTED
Help needed urgent.
Thanks,
Rohan
Thank you everyone for your help.
Sorry for the late reply.
-Lead Selection by index and few checks solved the problem.
-Changes made in WDDOMODIFYVIEW
Thanks,
Rohan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rohan,
do use some flag setting in modifyview like first_time etc.. to avoid refreshing filter of dropdown data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohan,
If you want to set selected value from the list you have to write the code in ON SELECT property of DropDownByIndex.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rohan..
I need some more clarification on the issue. Actually where are you initially binding the dropdown table. If it is in Modifyview then you need to bind it either in WDDOINIT or in suppy function of the respective node.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually what is happeing out here, you are binding the initial Dropdown data whenever any action is being called (DOAFTERACTION).
So you need to bind the initial data of the dropdown in wdinit as the initial data is not going to change, as I assumed. then in the property of dropdown (in View layout), you can use the selected entry by use by using get lead selection of the respective node.
You don't need to do anything for dropdown display, if the initial dropdown is binded at correct place.
Let me know, if you still need more clarification.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.