cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown Lists in Adobe Forms - Offline

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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,

Former Member
0 Kudos

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.

Answers (0)