Implementing a dynamic dropdown list

Hi All,
I am implementing an Adaptive RFC model that uses two custom RFC's. First RFC returns a table that has list of countries and the second RFC returns a table that lists the states of a particular country.
Now using these two RFC's how do I implement a dynamic dropdown...i mean the first dropdown should show the list of countries and the second dropdown should show the list of states depending on the country selected.
Thanks,
Tom

Hi Tom,
Please try this,
IWDNodeInfo multiplenode = multipleinfo.addChild("MultiNode" , null, true, false, true, true, false, true, null, null, null);
multiplenode.addAttribute("roles", "ddic:com.sap.dictionary.string");
Assign values for Dropdown
IWDNode node1 = wdContext.nodeNodeA().getChildNode("MultiNode", IWDNode.NO_SELECTION);
IWDNodeElement elem1;
for(int s=0;s<5;s++){
elem1 = node1.createElement();
elem1.setAttributeValue("roles","Value"+s);
node1.addElement(elem1);
Inside Domodifyview create IWDDropDownByIndex UI Element and Bind it.
IWDDropDownByIndex dropDownList = (IWDDropDownByIndex)view.createElement(IWDDropDownByIndex.class, "drop");
IWDAttributeInfo info = wdContext.getNodeInfo().getChild("NodeA").getChild("MultiNode").getAttribute("roles");
dropDownList.bindTexts(info);
dropDownList.setWidth("100");
Regards,
Ramganesan K.

Similar Messages

  • Murray Please - Re: dynamic dropdown list DWMX

    Hello Murray,
    The dynamic dropdown list works fine now!
    I have now a little other problem, the ORDER BY for my
    dropdown list.
    I selected "ASC" but he shows me from Z -->>A and a
    want from A-->>Z
    Can you explain this? My code ...
    Thanks in advanced,
    www.SamDesing.be
    <%
    Dim groepenrecordset
    Dim groepenrecordset_numRows
    Set groepenrecordset = Server.CreateObject("ADODB.Recordset")
    groepenrecordset.ActiveConnection = MM_con_dbwaterloo_STRING
    groepenrecordset.Source = "SELECT * FROM tbl_hoofdgroep ORDER
    BY
    hoofdgroep_fr ASC"
    groepenrecordset.CursorType = 0
    groepenrecordset.CursorLocation = 2
    groepenrecordset.LockType = 1
    groepenrecordset.Open()
    groepenrecordset_numRows = 0
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Untitled Document</title>
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
    //-->
    </script>
    </head>
    <body>
    <form action="resultdropdown.asp" method="post"
    name="dropdown"
    id="dropdown">
    <p>Select category</p>
    <select name="hoofdgroep" id="hoofdgroep"
    onChange="MM_jumpMenu('parent',this,1)">
    <%
    While (NOT groepenrecordset.EOF)
    %>
    <option
    value="resultdropdown.asp?ID_hoofdgroep=<%=(groepenrecordset.Fields.Item("ID_hoofdgroep") .Value)%>"
    <%If (Not
    isNull((groepenrecordset.Fields.Item("ID_hoofdgroep").Value)))
    Then If
    (CStr(groepenrecordset.Fields.Item("ID_hoofdgroep").Value) =
    CStr((groepenrecordset.Fields.Item("ID_hoofdgroep").Value)))
    Then
    Response.Write("SELECTED") : Response.Write("")%>
    ><%=(groepenrecordset.Fields.Item("hoofdgroep_fr").Value)%></option>
    <%
    groepenrecordset.MoveNext()
    Wend
    If (groepenrecordset.CursorType > 0) Then
    groepenrecordset.MoveFirst
    Else
    groepenrecordset.Requery
    End If
    %>
    </select>
    </p>
    </form>
    </body>
    </html>
    <%
    groepenrecordset.Close()
    Set groepenrecordset = Nothing
    %>
    "Murray *ACE*" <[email protected]> a
    �crit dans le message de
    news: [email protected]...
    You're welcome.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Sam" <[email protected]> wrote in message
    news:[email protected]...
    > Thank you Murray
    >
    > "Murray *ACE*" <[email protected]> a
    �crit dans le message
    > de news: [email protected]...
    >> You could use either, but with a jump menu, all you
    would have to do is
    >> to make sure that the category is carried to the
    results page as a URL
    >> parameter.
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "Sam" <[email protected]> wrote in message
    >> news:[email protected]...
    >>> Hello friends,
    >>>
    >>> I know that this is possible, but I can't find
    the solution!
    >>>
    >>> I use ASP VB
    >>>
    >>> I have a dynamic dropdown list from a table
    "categories" (access), when
    >>> I select a category I want to display the
    results from that category on
    >>> the result page.
    >>>
    >>> Do I have to use a dropdown or jump menu?
    >>>
    >>> Somebody can help me or give me a good step by
    step tutorial
    >>>
    >>> Thanks in advance,
    >>>
    >>> www.SamDesign.be

    Sorry, Sam, I have no idea.....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Sam" <[email protected]> wrote in message
    news:[email protected]...
    >I found it, but the last category is always selected. Is
    it possible to
    >have always the first selected with the A and not the Z?
    > Thanks,
    >
    > "Murray *ACE*" <[email protected]> a
    �crit dans le message
    > de news: [email protected]...
    >> Try DESC....
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "Sam" <[email protected]> wrote in message
    >> news:[email protected]...
    >>> Hello Murray,
    >>> The dynamic dropdown list works fine now!
    >>> I have now a little other problem, the ORDER BY
    for my dropdown list.
    >>> I selected "ASC" but he shows me from Z
    -->>A and a want from A-->>Z
    >>> Can you explain this? My code ...
    >>> Thanks in advanced,
    >>> www.SamDesing.be
    >>> <%
    >>> Dim groepenrecordset
    >>> Dim groepenrecordset_numRows
    >>>
    >>> Set groepenrecordset =
    Server.CreateObject("ADODB.Recordset")
    >>> groepenrecordset.ActiveConnection =
    MM_con_dbwaterloo_STRING
    >>> groepenrecordset.Source = "SELECT * FROM
    tbl_hoofdgroep ORDER BY
    >>> hoofdgroep_fr ASC"
    >>> groepenrecordset.CursorType = 0
    >>> groepenrecordset.CursorLocation = 2
    >>> groepenrecordset.LockType = 1
    >>> groepenrecordset.Open()
    >>>
    >>> groepenrecordset_numRows = 0
    >>> %>
    >>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    >>> "
    http://www.w3.org/TR/html4/loose.dtd">
    >>> <html>
    >>> <head>
    >>> <meta http-equiv="Content-Type"
    content="text/html; charset=iso-8859-1">
    >>> <title>Untitled Document</title>
    >>> <script language="JavaScript"
    type="text/JavaScript">
    >>> <!--
    >>> function MM_jumpMenu(targ,selObj,restore){
    //v3.0
    >>>
    >>>
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    >>> if (restore) selObj.selectedIndex=0;
    >>> }
    >>> //-->
    >>> </script>
    >>> </head>
    >>>
    >>> <body>
    >>> <form action="resultdropdown.asp"
    method="post" name="dropdown"
    >>> id="dropdown">
    >>> <p>Select category</p>
    >>> <select name="hoofdgroep" id="hoofdgroep"
    >>> onChange="MM_jumpMenu('parent',this,1)">
    >>> <%
    >>> While (NOT groepenrecordset.EOF)
    >>> %>
    >>> <option
    >>>
    value="resultdropdown.asp?ID_hoofdgroep=<%=(groepenrecordset.Fields.Item("ID_hoofdgroep") .Value)%>"
    >>> <%If (Not
    isNull((groepenrecordset.Fields.Item("ID_hoofdgroep").Value)))
    >>> Then If
    (CStr(groepenrecordset.Fields.Item("ID_hoofdgroep").Value) =
    >>>
    CStr((groepenrecordset.Fields.Item("ID_hoofdgroep").Value))) Then
    >>> Response.Write("SELECTED") :
    Response.Write("")%>
    >>>
    ><%=(groepenrecordset.Fields.Item("hoofdgroep_fr").Value)%></option>
    >>> <%
    >>> groepenrecordset.MoveNext()
    >>> Wend
    >>> If (groepenrecordset.CursorType > 0) Then
    >>> groepenrecordset.MoveFirst
    >>> Else
    >>> groepenrecordset.Requery
    >>> End If
    >>> %>
    >>> </select>
    >>> </p>
    >>> </form>
    >>> </body>
    >>> </html>
    >>> <%
    >>> groepenrecordset.Close()
    >>> Set groepenrecordset = Nothing
    >>> %>
    >>>
    >>> "Murray *ACE*"
    <[email protected]> a �crit dans le
    message
    >>> de news: [email protected]...
    >>> You're welcome.
    >>> --
    >>> Murray --- ICQ 71997575
    >>> Adobe Community Expert
    >>> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >>> ==================
    >>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>> ==================
    >>>
    >>>
    >>> "Sam" <[email protected]> wrote in message
    >>> news:[email protected]...
    >>>> Thank you Murray
    >>>>
    >>>> "Murray *ACE*"
    <[email protected]> a �crit dans le
    >>>> message
    >>>> de news:
    [email protected]...
    >>>>> You could use either, but with a jump
    menu, all you would have to do
    >>>>> is
    >>>>> to make sure that the category is
    carried to the results page as a URL
    >>>>> parameter.
    >>>>>
    >>>>> --
    >>>>> Murray --- ICQ 71997575
    >>>>> Adobe Community Expert
    >>>>> (If you *MUST* email me, don't LAUGH
    when you do so!)
    >>>>> ==================
    >>>>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>>>> ==================
    >>>>>
    >>>>>
    >>>>> "Sam" <[email protected]> wrote in
    message
    >>>>>
    news:[email protected]...
    >>>>>> Hello friends,
    >>>>>>
    >>>>>> I know that this is possible, but I
    can't find the solution!
    >>>>>>
    >>>>>> I use ASP VB
    >>>>>>
    >>>>>> I have a dynamic dropdown list from
    a table "categories" (access),
    >>>>>> when
    >>>>>> I select a category I want to
    display the results from that category
    >>>>>> on
    >>>>>> the result page.
    >>>>>>
    >>>>>> Do I have to use a dropdown or jump
    menu?
    >>>>>>
    >>>>>> Somebody can help me or give me a
    good step by step tutorial
    >>>>>>
    >>>>>> Thanks in advance,
    >>>>>>
    >>>>>> www.SamDesign.be
    >>>
    >>>
    >>>
    >>
    >>
    >
    >

  • How to implement two dependent dropdown lists in an input  table row?

    Hi all,
    I am new in Jdev 11g. I try to develop an input table with two dependent dropdown list. I can create independent dropdown list in such table. When I try to implement dependent one following some examples do it in a form using bind variable in the view object I get an empty listbox. How can I do this? Is it possible. I cannot find any documents about this.
    Thanks in advance

    Hi,
    it hasn't changed between 10.1.3 and 11. The basic outline of how you do it is
    - use a managed bean to query the data
    - populate the list with f:selectItems that point to the managed bean ArrayList<SelectItem> for the master and the detail
    - obtain the master ID in the managed bean by parsing the #{row} variable when the table renders
    - then bulild the detail list
    - have the detail list referencing the ArrayList<SelectItem> you expose for the details
    Note that without proper caching, the action is quite expensive
    Frank

  • Help with Dynamic Dropdown List

    Hi everyone,
    I'm completely new to this, so I hope you will excuse my lack of knowledge.
    I need to add a dropdown menu on a page.  The dropdown will display a list of all the state names in the U.S.  When the person selects a particular state, the access numbers for that state should appear next to it.
    I'm using Dreamweaver CS4.  I was given a Excel spreadsheet with all of the information on it.
    It would be easiest for me if I can use ASP to handle this, since I already have it setup on my machine as a local server to test it.
    But, I can't seem to wrap my head around how to go about this. 
    Any help would be much appreciated.
    Thanks!
    Meb

    Can you tell me if the following statements are correct? 
    - I need to make 2 xml documents.  One for a list of states and one for cities and their phone numbers.
    - I need to add a form to a page in DW.
    - I need to add 2 Spry Regions to the form, one for the states dropdown list and one for the cities and phone numbers.
    - I need to create two Spry Data Sets using the XML data sets I created earlier and insert them in their corresponding regions.
    - And I need to analyze the code from iPHP's example and somehow link all the stuff together.
    Am I even close to correct?
    Thanks again,
    Meb
    1.) What does the source code from the example look like? Are there 2 xml documents?
    2.) Is there a form on the example? Do you want a form on your page?
    3.) How many Spry Regions are in the example?
    4.) What does the source code from the example suggest?
    5.) yes! View source code as previously advised. All of your other questions will be answered once you've done this! See a pattern forming here? You ask a bunch of questions, the answer is to view the source code. You say you've done that and will continue to do so, yet you still ask questions that can be answered by viewing the source code. The result is a lot of redundant discussion.

  • Dynamic dropdown list in adobe forms.

    Hi All,
    I need to have a dynamic drop down list in the adobe forms.The values for the drop down list are selected from a standard table at runtime.This is the online scenario.
    I have been using Enumerated drop down list.How do i pass the value or bind the values to this element.
    I have enable Dynamic binding in the Properties of designer. but i am not able to enter the values into the specify item values.(OBJECT-BINDING-SPECIFY ITEM VALUE).Actually in my case it is coming disable.
    I have also set the preview format to "ACROBAT 8 (Dynamic) XML FORMAT" which is in the form properties.
    please let me know if i am missing any step?
    Thanks
    Gaurav

    Hello,
    1) I am sure you didn´t search because I have answered this question many times around here. Next time seacrh first, ask later, please. That is how we do it here.
    2) you must, in your options menu in LCD, allow yourself to use dynamic binding. Check the menus for the checkbox, that should help you get what you need.
    Regards Otto

  • Is it possible to set up a "User Defined" dynamic dropdown list?

    Hi,
    I'm learning Acrobat as I go and so far have been able to figure out what I need to do rather well, but I'm stuck with one last thing that I need to do.  I have created a form which is a Physician Ordering Requisition and I'd like to be able to compile a running list of ordering into the Physician's Field Dropdown.   This requisistion will be used through multiple Doctors offices and the list of Physician's would be over a 1000 entries. 
    I'd like to distribute the form to each office and have the data from that field (name), be able to display as a choice next time it's opened for use. 
    The other way that would work is if it was possible to enable auto-complete for select fields.  Due to patient confidentiality, enabling auto-complete for the entire form wouldn't be good as these are filled out with the patient present and there should not be any risk of potentially seeing previous patient entries.
    If there is another method, I'm all ears!
    Thanks,
    Ryan

    Ya, the users being the physicians.  There will be a few Docs in each clinic, and these get filled out multiple times per day, and I would like to add each physician from thier office only, to the.pdf form saved on each office computer.  That way it's not a huge list, but it'll save time and frustration by not having to type their name each time.  Also, when a new physician gets added to the clinic, once they add their name and save it, it would be available in the dropdown.
    The problem with auto complete, is that the patient is typically present when the physician is filling out the form on their office computer.  The patient should not see the previous entries of other patient names/info, that could pop up for autocomplete.  If I could limit auto complete to specific fields, that would ideally be the best solution actually.

  • Dynamic Select List - XML and umlaut

    Hi, I've recently implement a dynamic select list as per [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=327306], however it seems to break if I have any words containing an umlaut. I've tried setting the header on the Application Process to UTF-8 (OWA_UTIL.mime_header ('text/xml', FALSE, 'utf-8');) but it doesn't seem to make any difference. The word in particular giving me problems is Kühne - it's the only non english entry so far, but I would expect others in the future.
    Does anyone have any ideas how to allow this character to be parsed correctly? Short of using replace to check for this and every other possible character I'm not sure what else to do.
    Thanks

    Pete88 wrote:
    Hello
    I would like to create a dynamic select list where you can start entering a name and select list reduces with each character entered.
    E.g. A list of towns in the UK where you want to select London. This list is delay as normal and as start typing by the time you have entered “Lon” the list only has few names starting with “Lon”
    I expect I need a JavaScript to active this?Not in APEX 4.x. Use a Text Field with autocomplete item.

  • Dropdown list

    Hi Experts,
    I'm creating a VC application which has a dropdown list.
    I'm dynamically filling dropdown list values.
    On execution, I'm getting values(say for example 1,2,3,4,5).
    But when I select a value(say 2)  from dropdown list, other values are vanished(1,3,4,5).
    How to overcome this problem??? Though i select a value i should see other values in the dropdown list.
    Envirnment: EP7
    Thanks

    Hi ,
    In Dynamic Dropdown list   dont give any Filed in Upper Input
    Jusy Give Input & Output Values .
    Regards ,
    venkat p

  • Add element in dropdown list dynamically

    Hi All,
    I am facing a problem in adding item in a dropdown list dynamically.
    When i get dropdown list through IgetElementById get null.
    var list = document.getElementById("targetgroupname");
    here list comes as null. Now I've to fill this list. I am using below code -
    for(var j=0;j< com.length;j++){
    iist.options[j]= new Option(com[j],com[j]);
    But it is not working. My list is not getting filled with these values.
    I doubt due to var list -> null it does not allow to add element.
    But I am not getting any clue, how to initialize it.
    Please suggest, I am new to javascript.
    Thanks & Regards,
    Sneha.

    Hi,
    Thanks for the reply, yes the select box has that id - targetgroupname.
    actually there are 2 dropdown lists, Based on the selection of first dropdown list another list shd be filled.
    So I've written a script at "onchange" of first dropdown list. It works fine when a value gets changed at first dropdown list.
    In some cases I've to display a preselected value at first list ( which comes from previous page as parameter), in that cases there will be no onchange on first list, so I've called the script function manually after creating the first list,like below :
    <SCRIPT> checkSource();</SCRIPT>
    and in this case it does not work & I get a null when i try to read the 2nd list.
    But I am not sure why it is happening.. may be it is not loaded /created on page when i am calling it.
    If yes, what shd I do ?
    Thanks for your time.
    Regards,
    Sneha

  • Dynamically populating a dropdown list in a pdf form from a datasource

    Is there a way to populate a dropdown list in a pdf form from a datasource, specifically from an Access database table or query, using LiveCycle Designer. I am easily able to do this using cfselect in Coldfusion, however, cannot seem to figure it out for pdf forms. I am aware of the Show Dynamic Properties option enabled in LiveCycle Designer, and then binding to a datasource. However, this seems limited as I am only able to select single columns from Access (currently using an Access database) tables, and a unable to select from queries like I do using cfselect in Coldfusion forms. Is this something that must be done with Java scripting? If so, is there any other way? I know nothing about scripting. Thanks

    Derrick,
    There is a sample posted at
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_db_lookup_tip.pdf
    It was created for Designer 7.0 but it should function the same in later versions of Designer.
    Steve

  • Problem with dynamically loading the dropdown list from database

    Please help me,
    i am having a jsp page which contains a form
    with a textfield ,two dropdown list
    and a submit button
    when i select a list from first drop down, second drop down has to
    be loaded from the database dynamically according to the
    selected one in the first drop down.
    i gave onselect event for the first drop down and
    gave this one
    temp=first dropdown selected value
    self.location='currentfile+query='+temp;
    after this current page is reloading, but the already existing
    values in textfield and first selected value in drop down list is
    missing.
    how to solve this problem? and the rest of the problem. i mean
    loading the data into second drop down list.
    plz help me......

    in first <selcet> tag write Onchange and submit to the jsp then the values will return in second select box.

  • How to implement dropdown list in catalog definition

    hi all,
    I am using wc11g, I defined my taskflow in DefaultGroupSpaceCatalog.xml and defined input parameters for this taskflow, but how to implement a dropdown list function when customer want to select one value from multiple available options, just like when user edit my taskflow in composer, in the "display options" tab, when user want to change background item, there is a dropdown list shows available values:
    light
    medium
    dark
    How to implement this dropdown list for my own parameters?
    Best regards

    Is their a specific reason why you are using taskflows and not portlets?
    Because with portlets you can have an additional mode for doing the customization. You can create your own jspx page that represents that mode and then you can easily implement a dropdownlist or whatever form you want.
    Using taskflows, you don't have such features available as far as i know.
    Another solution would be to add a button in your taskflows that only renders when you are the admin. Otherwhise, the button does not show.
    That button can open a popup were you add a form with a dropdownlist and in the backing bean you can set the parameter yourself but i don't realy know the code needed for that because it is an input parameter of the taskflow, right?

  • Calculating dynamic values from dropdown lists

    Hi all, here's the noob question of the day
    I'm creating an invoice form in LiveCycle Designer and I'm totally stuck at tax calculations:
    for each product you're able to choose between two tax percentages from a dropdown list and, at the end of the form, I want to show a total amount of each tax.
    product
    qty
    unit price
    vat
    net price
    red shoes pack
    2
    20$
    4%
    40$
    black shoes pack
    1
    25$
    4%
    25$
    white umbrella
    1
    10$
    7%
    10$
    total net price
    75$
    + TAX 4%
    2.60$
    + TAX 7%
    0.70$
    Total
    78.30$
    How can I set the + TAX 4% and + TAX 7% fields to grab their respective product rows?
    Sorry for my bad english.. I hope you get the question!

    You woudl have to look at each row inside of a for loop and then determine if that row had 4% or 7% tax. Then you coudl keep a running total of the tax for you calcultions such that when the for loop ended you would have the 4 and 7% totals calculated.
    Make sense?
    Paul

  • Only one value shown in dropdown list of ISR form using pure ABAP

    Hi all,
      We are trying to create a Adobe form using ISR library controls. We want to populate a dropdown list with all the values from  the table T001 dynamically. We have implemented the BAdi QISR1 & populated the ADDITIONAL_DATA. The BAdi is executing & populating the value correctly.
      In the we have created a control using the ISR Dropdown & mapped to the Context BUKRS from the interface created. When we execute the form, only the first value is getting filled.
      Can anyone help us in this ??? Its very urgent....
    Thanx,
    Sivagami.R

    Hi,
    I am just giving the solution what I have done in my project. Hope this will help:
         DATA: BEGIN OF it_ccode OCCURS 0,
                   bukrs TYPE t001-bukrs,
                   butxt TYPE t001-butxt,
                     END OF it_ccode.
    DATA: wa_ccode like line of it_ccode.
    Select Company Code (bukrs) and Text (butxt) from table T001.
    SELECT bukrs butxt
    from t001
    into table it_ccode.
    LOOP AT it_t001.
        ADD 1 TO lv_index.
        ls_additional_data-fieldindex = lv_index.
        ls_additional_data-fieldname  = 'FIELDNAME_KEY'.
        ls_additional_data-fieldvalue = it_t001-bukrs.
        APPEND ls_additional_data TO additional_data.
        ls_additional_data-fieldname  = 'FIELDNAME_LABEL'.
        CONCATENATE it_t001-bukrs '-' it_t001-butxt
        INTO ls_additional_data-fieldvalue.
        APPEND ls_additional_data TO additional_data.
      ENDLOOP.
    And the form my fields binding is:
    $record.FIELDNAME.DATA[*].FIELD
    Try this out. Hope this will help.
    Regards,
    Amit

  • Dropdown list in WD-ABAP.

    hi gurus,
                I'm doing WD for ABAP and I'm trying to get contents into a dropdown list. I'm using DropDownListByKey. The contents come from a customizing table. I'm not sure where exactly I should add my coding: does it go into a supply function for my context attribute? Or in the method WDDOINIT? Basically, if you could point me towards some sample code, it would very user
    Thanks in Advance,
    Regards,
    Ravi.

    Hi,
         As per your suggestion,i implemented the following code in the doinit Method,
    but there is no value is populated in my dropdownlist box.
    I check the code by debugging, <b><i>i am not getting  any value in the following area
    ( ls_valueset-value = wa_kna1-kunnr.
       ls_valueset-text = wa_kna1-kunnr. )</i>   </b>
        kindly check the following code. 
           data: lt_valueset  type standard table of wdr_context_attr_value,
                   ls_valueset  type wdr_context_attr_value,
                 lr_node_info type ref to if_wd_context_node_info,
                 lr_node type ref to if_wd_context_node,
                 wa_kna1 type kna1,
                 lt_kna1 like table of wa_kna1.
          lr_node = wd_context->get_child_node( 'NODE_KNA1MOD' ).
          lr_node_info = lr_node->get_node_info( ).
          loop at lt_kna1 into wa_kna1.
             ls_valueset-value = wa_kna1-kunnr. "this will be the selected value
             ls_valueset-text = wa_kna1-kunnr.   "this will be the displayed value in the UI
              append ls_valueset to lt_valueset.
          endloop.
        lr_node_info->set_attribute_value_set(
                                exporting
                                  name       = 'KUNNR'
                                  value_set  = lt_valueset ).
    In the LAYOUT: i binded the selected key properties as kunnr.
       properties
             selectedkey = kunnr.
            kindly give me some suggestion,to come out of this problem.
    Thanks in advance,
    Regards,
    Ravi.

Maybe you are looking for