Skip to Content
author's profile photo
Former Member

Populate drop down list in Interactive Adobe form

I'm trying to create a offline interactive Adobe form scenario for customer orders.

In this form, I need to provide a drop-down list field where the user can select the customer. Based on the customer selected, I need to populate customer address data e.g. name, address, phone no etc in this form.

I'm using pure ABAP only to generate this form.

I've following questions:

1. How do I populate the drop down list for customer field?

2. How do I set the name and address fields with values when user selects a customer from the drop down list?

I'm not very familiar with Java script so you will have to give me the code that I can add to the form to make this happen.

Thanks in advance for your help.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on Jun 29, 2007 at 05:43 PM

    Could you please provide me the entire code on how to get the dropdown list.I pls request you to provide me the solution at the earliest.I need to deliver ISR form please.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Jun 03, 2007 at 10:39 PM

    I was able to resolve the issue#1.

    But, I'm not yet able to resolve issue#2 which is as follows:

    When I select a customer no in the dropdown list, I would like to set the value for the following fields: Name, street, phone no, city, state, and Zip.

    I used the following JavaScript in the "Change" event of the "Customer" dropdown field but it is not working:

    var lKey1= this.rawValue;

    ZZ_NAME1.clearItems();

    var loNodes = xfa.record.CUSTOMERS.nodes;

    var loNodesRow;

    lLength = loNodes.length;

    for (var i = 0; i < lLength; i++) {

    loNodesRow=loNodes.item(i).DATA.nodes;

    if (loNodesRow.item(0).value==lKey1)

    ZZ_NAME1.rawValue=loNodesRow.item(1).value;

    }

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I'm using the following code to pupulate the drop down list in the form.

      But, in the report pallet I get the error message "Invalid node type: tags".

      Any idea what is wrong with this code?

      When I generate the form, it says "message limit exceeded".

      becasue there are too many errors of the above type.

      var loNodes = xfa.record.CUSTOMERS.nodes;

      var loNodesRow;

      lLength = loNodes.length;

      this.clearItems();

      for (var i = 0; i < lLength; i++) {

      loNodesRow=loNodes.item(i).DATA.nodes;

      this.addItem(loNodesRow.item(0).value);

      }

  • author's profile photo
    Former Member
    Posted on Jun 26, 2007 at 08:49 AM

    can you please tell me how did you resolve your first issue of getting the customer numbers in the drop down list in ISR

    Add comment
    10|10000 characters needed characters exceeded