on 10-30-2012 4:22 PM
Hi,
I have two dropdowns in my form (install. locations and equipments).
The values for the two dropdowns come from tables passed by the interface; the form is offline.
When I choose first dropdown (install. location), the second (equipment) must be filled/filtered automatically based on first dropdown value.
How can I read the table that contain the equipments, filter it based on first dropdown value, and add the items in the second dropdown list?
Thanks.
Hi Danielle,
Please read my blog:
http://scn.sap.com/community/interactive-forms-by-adobe/blog/2012/10/02/action-builder-adobe-forms
You will get an idea definitely.
There is this action builder in Adobe LC 9 version, which you can use for changing / initialising one field depending on when other is changed.
Please let me know if i can be of any help.
Reward if you find it helpful.
Rgds,
Nitin,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for your reply, but it doesn't solved my problem.. cause I needed to read a context table in the form to filter the second dropdown.
I've found a solution here: http://scn.sap.com/thread/1504502
And here's how I've done in by form:
----- data.#subform[0].ZLOCAL::exit: - (JavaScript, client) ---------------------------------------
if( ZLOCAL.rawValue != null ){
EQUIPMENT.clearItems();
EQUIPMENT.rawValue = "";
// Read context table here
var node = xfa.resolveNodes("xfa.record.T_EQUI.DATA[*]");
for( var i = 0; i < node.length; i++){
var tplnr = node.item(i).TPLNR.value;
if( tplnr == ZLOCAL.rawValue ){
EQUIPMENT.addItem(node.item(i).ZDESC.value);
}
}
}
PS: ZLOCAL is the first dropdown, EQUIPMENT is the second one and T_EQUI is my context table.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.