on 05-22-2008 9:48 AM
Hi
I have a drop down in a dynamic table in an interactive form, I want to populate the rest of the fields in the same row with data coming from the back-end dependent on the value selected in the drop down.
Is this posible and if so, how can I implement this.
Kind Regards
Hi
Do u mean that depending on the drop down value u have to fetch the data from the back end and hav to populate the same in other fields of the same row? if the answer is yes then its tough since you have to trigger a submit or check field button event when ever u select the a dropdown value.
Thanks
Gopal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No. The data from the backend should already be present in one of your DataNodes. Get the data from the backend while initializing the application, and store it in the application context. Then refer to this context node on the "onChange" event of the dropdown list.
See this weblog to access data in your dataNode
/people/juergen.hauser2/blog/2007/09/03/accessing-data-nodes-in-sap-interactive-forms
hope this helps.
harman
Hi Prince,
That is possible. Here is some info to get you started:
You need to place the following line of code in the onChange event of your dropdown list:
//Following line gets the current value of your drop down list
var dropDownValue = $.boundItem(xfa.event.newText);
//Following line of code will place the value in a field named 'TestField' of the corresponding line in the table
TestField.rawValue = dropDownValue;
Hope this helps.
Harman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
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.