Dynamic dropdown in Acrobat?

Small business owner. Trying to create dynamic dropdowns in pdf that I open and fill with an ipad for on-site estimates. I know nothing about java, but I need a dropdown box that repopulates after a different one has a value selected: ie, Box one is material for a deck and box two is a color selection.  How can I make this happen? I found this link which is virtually identical to what I want minus the label changes. (http://jsfiddle.net/e9XvP/) How can I incorporate this into a PDF?

Small business owner. Trying to create dynamic dropdowns in pdf that I open and fill with an ipad for on-site estimates. I know nothing about java, but I need a dropdown box that repopulates after a different one has a value selected: ie, Box one is material for a deck and box two is a color selection.  How can I make this happen? I found this link which is virtually identical to what I want minus the label changes. (http://jsfiddle.net/e9XvP/) How can I incorporate this into a PDF?

Similar Messages

  • Can I create a custom-scripted dynamic stamp in Acrobat Standard or do I have to buy Acrobat Pro?

    I am researching options for the company I work for to take it's invoicing system paperless and I need to know if I can create a custom-scripted dynamic stamp in Acrobat Standard or is that possible only in Acrobat Pro?

    You can create a custom dynamic stamp in Std. and Pro. and you can use the dynamic stamp in Reader as well. Here is an infographic on Creating a Custom Dynamic Stamp in Acrobat XI.

  • Dynamic stamps with Acrobat Pro X

    Help needed!
    How to create own dynamic stamps with Acrobat Pro X, without any knowledge of programming.
    It was very easy with the program used before (Nuance); unfortunally it's not possible to export from Nuance to Acrobat.
    Thanks in advance
    vtosi

    It can't be done without using a script, and not a very simple one, either.
    There are detailed tutorials about how to do it, for example here:
    http://acrobatusers.com/tutorials
    If you're interested in someone to create the stamp (and all the required
    scripts) for you, feel free to contact me by PM or at [email protected] .

  • 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.

  • Search issue with dynamic dropdown array - PHP

    I'm currently trying to set up a search with a couple of
    dynamic dropdowns, basically to search for cars - so the parent
    list is car make, and the child is car model.
    I've gotten as far as a page with the dynamic array working,
    but not the search :
    dynamic array
    working
    (Ignore the cars and vans radio buttons)
    For testing there's an Audi A3 and and Audi A6, but this
    search doesn't work.
    The select code looks like :
    <select name="Model">
    <option value="" <?php if (!(strcmp("",
    $row_rsModels['Model']))) {echo "selected=\"selected\"";}
    ?>>Select a Model</option>
    </select>
    And the array code looks like :
    <?php
    if ($row_rsModels) {
    echo "<SC" . "RIPT>\n";
    echo "var WAJA = new Array();\n";
    $oldmainid = 0;
    $newmainid = $row_rsModels["Make"];
    if ($oldmainid == $newmainid) {
    $oldmainid = "";
    $n = 0;
    while ($row_rsModels) {
    if ($oldmainid != $newmainid) {
    echo "WAJA[".$n."] = new Array();\n";
    echo "WAJA[".$n."][0] = '".WA_DD_Replace($newmainid)."';\n";
    $m = 1;
    echo "WAJA[".$n."][".$m."] = new Array();\n";
    echo "WAJA[".$n."][".$m."][0] =
    "."'".WA_DD_Replace($row_rsModels["ModelID"])."'".";\n";
    echo "WAJA[".$n."][".$m."][1] =
    "."'".WA_DD_Replace($row_rsModels["Model"])."'".";\n";
    $m++;
    if ($oldmainid == 0) {
    $oldmainid = $newmainid;
    $oldmainid = $newmainid;
    $row_rsModels = mysql_fetch_assoc($rsModels);
    if ($row_rsModels) {
    $newmainid = $row_rsModels["Make"];
    if ($oldmainid != $newmainid) {
    $n++;
    echo "var rsModels_WAJA = WAJA;\n";
    echo "WAJA = null;\n";
    echo "</SC" . "RIPT>\n";
    function WA_DD_Replace($startStr) {
    $startStr = str_replace("'", "|WA|", $startStr);
    $startStr = str_replace("\\", "\\\\", $startStr);
    $startStr = preg_replace("/[\r\n]{1,}/", " ", $startStr);
    return $startStr;
    ?>
    ..to try and find the root of the problem, I've gotten as far
    as a similar page, without the dynamic
    array, with the child dropdown populated dynaically from the
    recordset :
    search working
    This seems to work exactly as advertised - all the car models
    are listed from the recordset, and if
    you search for Audi and A3, then it gets returned correctly.
    The select code here looks like :
    <select name="Model" id="Model">
    <option value="">Select a Model</option>
    <?php
    do {
    ?>
    <option value="<?php echo
    $row_rsModels['Model']?>"><?php echo
    $row_rsModels['Model']?
    ></option>
    <?php
    } while ($row_rsModels = mysql_fetch_assoc($rsModels));
    $rows = mysql_num_rows($rsModels);
    if($rows > 0) {
    mysql_data_seek($rsModels, 0);
    $row_rsModels = mysql_fetch_assoc($rsModels);
    ?>
    </select>
    ..so I guess the search is set up OK, but the issue is with
    how to pass the model from the select code generated by the dynamic
    array correctly....
    Its presumably because the option value is empty :
    <option value="" <?php if (!(strcmp("",
    $row_rsModels['Model']))) {echo "selected=\"selected\"";}
    ?>>Select a Model</option>
    So I've been trying various possibilities with no joy, such
    as :
    <?php if (!(strcmp("", $row_rsModels['Model']))) {echo
    "selected=\"selected\"";} ?>
    but without success.
    Even then, I'd have though if the value was empty, "", then
    it would return all results, rather than no results....?
    hope that makes some sense, and someone can shed some
    light...
    Cheers.

    Thomas Jung wrote:>
    > >
    Chris Paine wrote:
    > > That's a shame!
    > >
    > > Does this mean that using a drop down by index in an ALV is limited to having the same dropdown in every row of the table (it would certainly seem that this is the case).
    > >
    > > Cheers,
    > >
    > > Chris
    >
    > I would assume so as I can't think of a way around the subnode limitation. The system will actually allow you to have a subnode and everything works fine until you sort the ALV - then you get a short dump.
    >
    > I suppose you would have to fall back to using a regular table in this case.
    But how come the class documentation says its possible.
    Functionality
    Using class CL_SALV_WD_UIE_DROPDOWN_BY_IDX, you make all the settings for the UI element index-based dropdown list box, from which the user can select from a range of values.
    *You use the index-based dropdown list box if the dropdown list boxes in each cell of the column are to contain different entries.*
    You use the key-based dropdown list box if the dropdown list boxes in each cell of the column are to contain the same entries.
    To specify the entries in the dropdown list boxes, the context of your application requires an attribute for which the data type satisfies the following requirements:
    The attribute is a table
    The structure of this table contains at least one KEY column and a VALUE column.
    Note
    We recommend that you use the type WDY_KEY_VALUE_TABLE here.

  • Making a dynamic stamp in Acrobat 10

    I tried to follow the instructions for making a dynamic stamp in Acrobat 9 for use in Acrobat 10, but my stamp is static, not dynamic. The date and time stayed the same as when I made it. What is the trick to make this happen. It's very frustrating that it is so hard to make a dynamic stamp. Thank for any assistance anyone can provide.

    I've not done that, but here are some links which may help you:
    http://forum.planetpdf.com/wb/default.asp?action=9&read=64312&fid=134

  • Need Value and labed different for a dynamic Dropdown in an ADF page

    Hi,
    We have an ADF page with a drop down.
    This is populated dynamically.
    We have created using the below code.
    Issue: what we need is that each value the Label set should be different.
    Code : presently hard coded
    In the Java file for the page we had the following code:
    ===========================================================
    String haircolor;
    SelectItem[] haircolorSelectItems;
    ArrayList haircolorlist = new ArrayList();
    public PatientAdvSearch() {
    haircolorlist.add(new SelectItem("Black"));
    haircolorlist.add(new SelectItem("Blonde"));
    haircolorlist.add(new SelectItem("Red"));
    haircolorlist.add(new SelectItem("Others"));
    haircolorlist.add(new SelectItem("Grey"));
    SelectItem[] haircolors = (SelectItem[]) haircolorlist.toArray(new SelectItem[0]);
    haircolorSelectItems = haircolors;
    public void setHaircolor(String haircolor) { this.haircolor = haircolor; }
    public String gethaircolor() { return haircolor; }
    public SelectItem[] getHaircolorSelectItems() {
    return haircolorSelectItems;
    ===========================================================
    And the JSPX will have the following code.
    <af:selectOneChoice binding="#{backing_PatientAdvSearch.selectOneChoicerace11}"
    id="selectOneChoicerace11"
    unselectedLabel="&lt;Select>">
    <f:selectItems value="#{backing_PatientAdvSearch.haircolorSelectItems}" />
    </af:selectOneChoice>
    ===========================================================
    This populates both Lable and Value for the Select Item with one value.
    We need two different value.
    How do we go ahead with that.
    Thanks

    Yes.. actually i am also facing the same prob...
    i need value and label to be different for dynamic dropdown.
    Please help in case any one has faced the same issue.

  • Building a dynamic dialog in Acrobat with Javascript

    I am attempting to figure out how to build dynamic dialogs within Acrobat using Javascript.
    I am attempting to write a generalized PDF page splitter.  The user selects a PDF document, and then the script analyzes the open document and determines that there are N pages in the document.  I am going to run through the document and make each page its own PDF.  Each page will be considered a certain kind of page, for example, Cover, Article, Ad, etc.  and the type of page it is will affect the naming convention I use when making the new, one-page file.  For example, let's say that pages 36, 37 and 38 are page, ad and article, respectively.  Then the names I will be using for each output file will be as follows:
    P12345Pg_036.pdf
    P12345Ad_037.pdf
    P12345Ar_038.pdf
    But there is no way for my code to actually look at a given page and decide that it is page, article, ad, or one of four cover types, etc.  So I want to build a dialog that looks something like this (assume a O is meant to be a radio button):
    Page          Pagetype
    1                  O Page      O Inner cover Front         O  Outer cover Front     O Ad           O   Article
    2             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    3             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    4             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    N             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    Beacuse each document varies in length, that means the dialog will need to be dynamic.
    I have looked at the Acrobat API and determined that defining a dialog looks something like this:
    var DialogABC = {
                                       initialize: function(dialog){},
                                       commit : function(dialog){},
                                       description:{}
    app.execDialog(DialogABC)
    What I do not know how to do is create the dialog specification on the fly.  Do I treat it as a string or is there some other way of making this happen?  How can I make a dynamic description that allows for a variable number of rows?
    Please let me know if you have any thoughts.  A good reference or example would serve just as well.
    TIA!
    John

    There are two approaches to this:
    1. Treating the dialog object as a literal object
    2. Treating it as a string
    If you treat it as a literal object you can manipulate it like any other object. Each function can be defined separately, and the items in the various arrays can be added or removed as you please.
    If you treat it as a string then you can construce that string in a dynamic way, using loops or if-conditions, as you please, and then use the eval() command to convert it to an object when done.
    Both approaches are quite complex and require a lot of scripting experience to implement correctly.

  • Print form with dynamic dropdown

    Dear all,
    I have a form (xdp) with dynamic dropdown inside. (i.e. The value list is empty in design time)
    And I have a problem that the print out (via the sendToPrinter service) will have the data value (e.g. EN) instead of the display value (e.g. English) for all the dynamic dropdown.
    Would like to know if there are any solution beside mapping all the values from data value to display value before print?
    Thanks in advance
    Regards
    Bill

    I'm also seeking the better solution instead of
    a) creating 2 field - one for capture data, one for printing (and it doesn't work using LC ES server component)
    b) creating 2 templates - one for capture data, one for printing (maintenance overhead)
    Ideally & logically, this should be achieve by using one field since it has already come with the presence & relevant attribute.
    Anyway, the main problem, why dropdown data is printed instead of display value?
    The user doesn't even know what's the technical data behind the dropdown screen value he/she selected.
    From user point of view, nobody wants to see the technical data printed instead of the display value...

  • 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
    >>>
    >>>
    >>>
    >>
    >>
    >
    >

  • Building dynamic dialogs for Acrobat.

    I am attempting to figure out how to build dynamic dialogs within Acrobat using Javascript.
    I am attempting to write a generalized PDF page splitter.  The user selects a PDF document, and then the script analyzes the open document and determines that there are N pages in the document.  I am going to run through the document and make each page its own PDF.  Each page will be considered a certain kind of page, for example, Cover, Article, Ad, etc.  and the type of page it is will affect the naming convention I use when making the new, one-page file.  For example, let's say that pages 36, 37 and 38 are page, ad and article, respectively.  Then the names I will be using for each output file will be as follows:
    P12345Pg_036.pdf
    P12345Ad_037.pdf
    P12345Ar_038.pdf
    But there is no way for my code to actually look at a given page and decide that it is page, article, ad, or one of four cover types, etc.  So I want to build a dialog that looks something like this (assume a O is meant to be a radio button):
    Page          Pagetype
    1                  O Page      O Inner cover Front         O  Outer cover Front     O Ad           O   Article
    2             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    3             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    4             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    N             
    O Page 
    O Inner cover Front    
    O  Outer cover Front
    O Ad      
    O   Article
    This means a dynamic dialog.
    I have looked at the Acrobat API and determined that defining a dialog looks something like this:
    var DialogABC = {
                                       initialize: function(dialog){},
                                       commit : function(dialog){},
                                       description:{}
    app.execDialog(DialogABC)
    What I do not know how to do is create the dialog specification on the fly.  Do I treat it as a string or is there some other way of making this happen?  HOw can I make a dynamic description that allows for a variable number of rows?
    Please let me know if you have any thoughts.  A good reference or example would serve just as well.
    TIA!
    John

    Use this code to get all components of internal table.
    Then build fieldcatlog.
    DATA: tab_return type abap_compdescr_tab,
              components like line of tab_return.
    perform get_int_table_fields using    <fs_it> changing  tab_return.
    loop at tab_return into components.
      wa_fldcat-fieldname  = components-name.               "Field Name
      wa_fldcat-scrtext_m  = components-name.              "Column Heading
      wa_fldcat-inttype    = components-type_kind.     "Data Type
      wa_fldcat-intlen      = components-length.          "Data Lenght
      wa_fldcat-decimals = components-decimals.     "Data Decimal Places
    append wa_fldcat to it_fldcat.
    endloop.
    form get_int_table_fields  using    t_data type any table
                                changing t_return type abap_compdescr_tab.
       data:
       oref_table type ref to cl_abap_tabledescr,
       oref_struc type ref to cl_abap_structdescr,
       oref_error type ref to cx_root,
       text type string.
    *Get the description of data object type
       try.
           oref_table ?=
           cl_abap_tabledescr=>describe_by_data( t_data ).
         catch cx_root into oref_error.
           text = oref_error->get_text( ).
           write: / text.
           exit.
       endtry.
    *Get the line type
       try.
           oref_struc ?= oref_table->get_table_line_type( ).
         catch cx_root into oref_error.
           text = oref_error->get_text( ).
           write: / text.
           exit.
       endtry.
       append lines of oref_struc->components to t_return.
    endform.
    Regards
    Sreekanth

  • Create a dynamic dropdown field in Adobe Acrobat Pro XI

    Hello all. I am trying to create a field in one of my forms using Adobe Acrobat Pro XI. I have a dropdown list of "main" items, and based on what is selected in that list, I want a second dropdown list to give different choices. I have searched and searched and have javascript that I thought might work, but maybe I am have a mistake or I am placing the javascript in the wrong place, becasue it is not working. I know very, very little about javascript, so any help would be so much appreciated.
    I am using Adobe Acrobat Pro XI. I added a "new field", and selected "dropdown". The field name is ProvType. The dropdown options are:
         Inpatient
         Outpatient
         Physician
    I have the "Commit selected value immediately" selected.The field is not validated. The format is "none." There are no actions or calculations associated with it.
    I then created another dropbox, and named it SubProvType. Under Actions, I selected the trigger as Mouse Up, and then selected the Action "Run a JavaScript." I selected the add button, and typed this in the JavaScript editor:
    switch (ProvType.rawValue)
        case "Inpatient":
            this.setItems("Hospice,Hospital,Nursing Facility");
            break;
        case "Outpatient":
            this.setItems("Adult Day Center,Home,Other");
            break;    
        case "Physician":
            this.setItems("Surgeon,Family Practice,Neurologist");
            break;    
    What I want to happen is:
    If "Inpatient" is selected, I want the following options to be available in the second dropdown box "SubProvType":
         Hospice
         Hospital
         Nursing Facility
    If "Outpatient" is selected, I want the following options to be available in the second dropdown box "SubProvType":
         Adult Day Center
         Home
         Other
    If "Physician" is selected, I want the following options to be available in the second dropdown box "SubProvType":
         Surgeon
         Family Practice
         Neurologist
    However.... when I close the form editing and try to select a different option in the ProvType field, the SubProvType field remains blank and there are no options available. There are also no errors.
    I must be missing something, but I have no idea where to start. Thank you in advance for any help anyone can provide.

    dbettis2.... Please understand that everything I am about to tell you is ONLY thanks to the help I received from Gilad D. I don't know if this will help you or not, but I want to try and pass it forward.
    If what you are looking to do is have two dropdown fields, and the second one (concentration) be a list determined by what was chosen in the first one (newMajor) then this will work, if you are using Adobe Acrobat Pro.
    Create a dropdown field and name it newMajor. In the "options" tab. Make sure that you enter all of the items that you want in that list AND that they match the javascript (or this will not work.)
    In this case, I believe you want the initial list to be:
    - Select One -
    BA - Communication (BACOMM)
    BA - History (BAHIST)
    BBA - Business Administration (BBA-BADM)
    After you create the dropdown field and enter all of the options, go to the Validate tab, chose "run custom validation script", then copy and paste the following:
    switch (event.value) {
        case "- Select One -":
            this.getField("Concentration").setItems(["-----"]);
            break;
        case "BA - Communication (BACOMM)":
            this.getField("Concentration").setItems(["- Select One -","None","Mass Communication (MCO1)","Theatre (THEA)","Communication Studies (MC02)"]);
            break;
        case "BA - History (BAHIST)":
            this.getField("Concentration").setItems(["- Select One -","None","Teacher Certification (HIS1)"]);
            break;
        case "BBA - Business Administration (BBA-BADM)":
            this.getField("Concentration").setItems(["- Select One -","None","Supply Chain Management (SCM)","Hospitality Management (HSMG)"]);
            break;
    Then create a second dropdown field, and name it Concentration. Nothing further needs to be done with the second dropdown field (as far as entering options or any javascript.)
    It should work. I have created a form using this code and field structure, and it is working. I hope this helps you, if in fact this is what you were trying to do. (I do not know how to attach a file to this post or I would send you the PDF that I made so you could see the fields. If you message me, I can send it to you.)

  • Dynamic Dropdown Field is blank

    I am using LiveCycle Designer 8.05<br /><br />And I am trying to create a dropdown form populated dynamically I guess from an .xml file.(Unless there is a better method)<br /><br />Basically I need to be able to have people update the contents of dropdown field but they wont have access to do it directly in designer<br />So I want them just to be able to update the .xml data.<br /><br />So I had this for the .xml<br /><br />___CODE___<br /><br /><?xml version = "1.0" encoding = "UTF-8"?><br /><br /><vehicles<br />    xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"<br />    xsi:noNamespaceSchemaLocation = "rank.xsd"<br />   ><br />       <nickname>E1</nickname><br />       <nickname>E2</nickname><br />       <nickname>E3</nickname><br /></vehicles><br /><br />___END_CODE___<br /><br />This is the .xsd schema<br /><br />___CODE___<br /><br /><?xml version = "1.0" encoding = "UTF-8"?><br /><br /><xsd:schema<br />   xmlns:xsd = "http://www.w3.org/2001/XMLSchema"<br />   ><br />    <xsd:element name = "vehicles"><br />     <xsd:complexType><br />      <xsd:sequence><br />       <xsd:element name = "nickname" <br />                    type = "xsd:string"<br />                    maxOccurs = "unbounded"/><br />      </xsd:sequence><br />     </xsd:complexType><br />    </xsd:element><br /></xsd:schema><br /><br />___END_CODE___<br /><br />I have Show Dynamic Properties On<br /><br />I add a dropdown box<br />I go to the binding tab<br />Click Default Binding<br />Select XML Schema<br />Select the.xsd  file from above<br />Click Embed<br />Click Finish<br /><br />Click specify item values<br />In the dynamic properties it says<br />Binding:<br />Items $record.nickname[*]<br />Item Text  the only option is a dollar sign<br />Item Value  the only option is  adollar sign<br /><br />I click OK<br /><br />Save it as a dynamic xml form <br />Open it and the dropdown is blank.<br /><br />I feel like I have tried a thousand different variations but nothing works<br />I either end up with a blank dropdown or the dropdown gets converted to a text field and it is blank.<br /><br />Could anyone shed some light on my problem?<br />Thanks

    Hi guys,
    I don't think, that it is possible to change the values of the dropdown by changing only the xml-file.
    I found another solution:
    1. open the form in Acrobat Pro
    2. select in the menu bar Form->Manage Form Data->Import Data
    3. choose your current xml-file
    4. save the form
    Now the values are available.
    To change the values, you have to repeat these 4 steps with a new xml-file.
    regards
    Martin

  • Autopopulate Dynamic Dropdown Field LC Designer

    I am trying to autopopulate dynamically created dropdown fields within another section of a form.
    Here is what I am trying to do:
    I have a report (home inspection) that is also an estimate for repairs.  I have several section of the report that have a button to add additional items (e.g. Kitchen, Living Room, ect).  The button dynamically adds new items for each area (e.g. Kitchen, Living Room, ect). Code is below, what I want to do is have all of the dynamically created items appear in the estimate section of the report but am not able to figure out the best way to do this.  Basically, all of the items that appear in the report also need to be in the estimate and I need to figure out a way to have the items duplicated from the report to the estimate.  Any help would be greatly appreciated.  Thank you
    <subform name="GoExterior" w="203.2mm" layout="tb">
    <draw name="GoExteriorTextHead" w="64.834mm" h="7.62mm">
    <ui>
    <textEdit/>
    </ui>
    <value>
    <text>General Observations - Exterior</text>
    </value>
    <font size="14pt" typeface="Myriad Pro" baselineShift="0pt"/>
    <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
    <para spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
    </draw>
    <subform w="203.2mm" name="ItemsSubFormCrawlSpace" layout="tb">
    <draw name="Text3" w="29.2864mm" h="5.2331mm">
    <ui>
    <textEdit/>
    </ui>
    <value>
    <text>Crawl Space</text>
    </value>
    <font size="12pt" typeface="Myriad Pro" baselineShift="0pt" weight="bold" posture="italic" underline="1"/>
    <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
    <para spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
    </draw>
    <subform name="DropdownGOCrawl" w="203.2mm" layout="tb">
    <occur max="-1"/>
    <subform w="203.2mm" name="DDCrawl">
    <keep intact="none"/>
    <field name="DropDownCrawl" w="171.45mm" h="9mm">
    <ui>
    <choiceList textEntry="1">
    <border presence="hidden"/>
    <margin/>
    </choiceList>
    </ui>
    <font typeface="Myriad Pro" weight="bold" size="11pt"/>
    <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
    <para vAlign="middle"/>
    <caption reserve="25mm">
    <para vAlign="middle"/>
    <value>
    <text>Item:</text>
    </value>
    </caption>
    <items save="1">
    <text>Debris was observed at crawl space.</text>
    <text>This structure lacks proper and adequate earthquake retrofitting hardware.</text>
    <text>Anchor bolts at exposed sill plate framing structure are loose and inadequate.</text>
    <text>Existing sewer line is not secured or strapped at crawl space.</text>
    <text>All insulations at crawl space must be faced and secured utilizing wires or staples.</text>
    <text>Sub-floors must have R-19 insulation properly installed.</text>
    <text>Crawl space areas must have minimum 18” overhead clearance.</text>
    <text>There was only one crawl space access panel to the rear addition.  We were unable to inspect the main original crawl space due to lack of access.  We highly recommend providing one access panel for the original structure.</text>
    </items>
    <bind match="none"/>
    </field>
    <subform w="28.575mm" name="DropdownAddGOexterior" relevant="-print" x="174.625mm">
    <field h="6mm" name="AddDropdownGOExterior" w="28.575mm" relevant="-print">
    <ui>
    <button highlight="inverted"/>
    </ui>
    <font typeface="Arial"/>
    <caption>
    <value>
    <text>Add Comment</text>
    </value>
    <para hAlign="center" vAlign="middle"/>
    </caption>
    <border hand="right">
    <edge stroke="raised"/>
    <fill>
    <color value="212,208,200"/>
    </fill>
    <corner/>
    </border>
    <bind match="none"/>
    <event name="event__click" activity="click">
    <script contentType="application/x-javascript">//+ GENERATED - DO NOT EDIT (ID:182C1B80-8D7F-46A2-B893-6A7B250C972E CRC:1996671831)
    //+ Type: Action
    //+ Result1: AddInstance("$Node2")
    //+ Node2: form1[0].Report[0].GoExterior[0].ItemsSubFormCrawlSpace[0].DropdownGOCrawl[0].CommentFiel d[0]
    //+ Node1: form1[0].Report[0].GoExterior[0].ItemsSubFormCrawlSpace[0].DropdownGOCrawl[0].DDCrawl[0]. DropdownAddGOexterior[0].AddDropdownGOExterior[0]
    //+ Condition1: Button("$Node1","click")
    //+ ActionName: AddDropdownGOExterior.click
    this.resolveNode('DropdownGOCrawl._CommentField').addInstance(1);
    if (xfa.host.version &lt; 8) {
    xfa.form.recalculate(1);
    /* This button will Add one instance of the repeating subform or table row.
       sSubformSOM: SOM expression of the repeating subform or table row.
       bCalc:  
    Flag - true if the new instance might be referenced by other calculations, otherwise false.
       message:
    The error message displayed.
       These variables must be assigned for this script to run correctly.
       Replace &lt;value&gt; with the correct value.
    var sSubformSOM = "&lt;value&gt;";
    // Example: var sSubformSOM = "xfa.form.form1.Subform1";
    var bCalc = true;
    // Example: var bCalc = false;
    var message = "You have reached the maximum number of items allowed.";
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 10.0.2.20120224.1.869952.867557 - Subform_Instance_Controls_Add.xfo
    // Build the SOM expression of the Instance Manager using the 'underscore' syntax.
    var oSubform = xfa.resolveNode(sSubformSOM);
    // Evaluate the SOM expression.
    var sParentSOM = oSubform.parent.somExpression; 
    // Get the parent SOM expression.
    var sManagerSOM = sParentSOM + "._" + oSubform.name; // Build the SOM expression of the Instance Manager.
    var oManager = xfa.resolveNode(sManagerSOM);
    // Evaluate the SOM expression.
     var nMaxCount = oManager.occur.max;
    // Get the maximum number of subform occurrences allowed.
    var nSubCount = oManager.count;
    // Get the current number of instances.
    // Proceed if the maximum number of subform occurrences has not been reached.
    if ((nMaxCount == "-1") || (nSubCount &lt; nMaxCount)) {
    // Invoke the Instance Manager.
    var oNewInstance = oManager.addInstance(1);
    // Fire the form calculations.
    if (bCalc == true) {
    // Execute all the form calculations.
    xfa.form.recalculate(1);
    } else {
    xfa.host.messageBox(message,"Add Item", 3);
    // END OF DO NOT MODIFY
    </script>
    </event>
    <assist>
    <toolTip>Add an item</toolTip>
    </assist>
    </field>
    <margin topInset="2.54mm" bottomInset="2.54mm"/>
    <?templateDesigner expand 0?></subform>
    <occur max="-1"/>
    <?templateDesigner expand 0?></subform>
    <subform w="203.2mm" name="CommentField" layout="tb">
    <field name="CommentFieldCrawl" minH="8.453mm" w="203.2mm">
    <ui>
    <textEdit multiLine="1">
    <border presence="hidden"/>
    <margin/>
    </textEdit>
    </ui>
    <font typeface="Myriad Pro" weight="bold" size="11pt"/>
    <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
    <para vAlign="middle"/>
    <caption reserve="25mm">
    <para vAlign="middle"/>
    <value>
    <text>Comment:</text>
    </value>
    </caption>
    <bind match="none"/>
    </field>
    <occur min="0" max="-1"/>
    <?templateDesigner expand 1?></subform>
    <?templateDesigner expand 1?></subform>
    <margin topInset="2.54mm"/>
    <?templateDesigner expand 0?></subform>
    <subform w="28.575mm" h="11.218mm" name="DropdownAddGOexterior" relevant="-print">
    <field h="6mm" name="AddDropdownGOExterior" w="28.575mm" y="0.138mm" relevant="-print">
    <ui>
    <button highlight="inverted"/>
    </ui>
    <font typeface="Arial"/>
    <caption>
    <value>
    <text>Add Item</text>
    </value>
    <para hAlign="center" vAlign="middle"/>
    </caption>
    <border hand="right">
    <edge stroke="raised"/>
    <fill>
    <color value="212,208,200"/>
    </fill>
    <corner/>
    </border>
    <bind match="none"/>
    <event name="event__click" activity="click">
    <script contentType="application/x-javascript">//+ GENERATED - DO NOT EDIT (ID:85B19E00-052E-47D6-A49E-4675131292BE CRC:2010014197)
    //+ Type: Action
    //+ Result1: AddInstance("$Node2")
    //+ Node2: form1[0].Report[0].GoExterior[0].ItemsSubFormCrawlSpace[0].DropdownGOCrawl[0]
    //+ Node1: form1[0].Report[0].GoExterior[0].DropdownAddGOexterior[0].AddDropdownGOExterior[0]
    //+ Condition1: Button("$Node1","click")
    //+ ActionName: AddDropdownGOExterior.click
    this.resolveNode('ItemsSubFormCrawlSpace._DropdownGOCrawl').addInstance(1);
    if (xfa.host.version &lt; 8) {
    xfa.form.recalculate(1);
    /* This button will Add one instance of the repeating subform or table row.
       sSubformSOM: SOM expression of the repeating subform or table row.
       bCalc:  
    Flag - true if the new instance might be referenced by other calculations, otherwise false.
       message:
    The error message displayed.
       These variables must be assigned for this script to run correctly.
       Replace &lt;value&gt; with the correct value.
    var sSubformSOM = "&lt;value&gt;";
    // Example: var sSubformSOM = "xfa.form.form1.Subform1";
    var bCalc = true;
    // Example: var bCalc = false;
    var message = "You have reached the maximum number of items allowed.";
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 10.0.2.20120224.1.869952.867557 - Subform_Instance_Controls_Add.xfo
    // Build the SOM expression of the Instance Manager using the 'underscore' syntax.
    var oSubform = xfa.resolveNode(sSubformSOM);
    // Evaluate the SOM expression.
    var sParentSOM = oSubform.parent.somExpression; 
    // Get the parent SOM expression.
    var sManagerSOM = sParentSOM + "._" + oSubform.name; // Build the SOM expression of the Instance Manager.
    var oManager = xfa.resolveNode(sManagerSOM);
    // Evaluate the SOM expression.
     var nMaxCount = oManager.occur.max;
    // Get the maximum number of subform occurrences allowed.
    var nSubCount = oManager.count;
    // Get the current number of instances.
    // Proceed if the maximum number of subform occurrences has not been reached.
    if ((nMaxCount == "-1") || (nSubCount &lt; nMaxCount)) {
    // Invoke the Instance Manager.
    var oNewInstance = oManager.addInstance(1);
    // Fire the form calculations.
    if (bCalc == true) {
    // Execute all the form calculations.
    xfa.form.recalculate(1);
    } else {
    xfa.host.messageBox(message,"Add Item", 3);
    // END OF DO NOT MODIFY
    </script>
    </event>
    <assist>
    <toolTip>Add an item</toolTip>
    </assist>
    </field>
    <margin topInset="2.54mm" bottomInset="2.54mm"/>
    <?templateDesigner expand 0?></subform>
    <subform w="203.2mm" name="ItemsSubFormDoorsWindows" layout="tb">
    <draw name="Text3" w="1.471014in" h="5.2331mm">
    <ui>
    <textEdit/>
    </ui>
    <value>
    <text>Doors and Windows</text>
    </value>
    <font size="12pt" typeface="Myriad Pro" baselineShift="0pt" weight="bold" posture="italic" underline="1"/>
    <margin topInset="0.5mm" bottomInset="0.5mm" leftInset="0.5mm" rightInset="0.5mm"/>
    <para spaceAbove="0pt" spaceBelow="0pt" textIndent="0pt" marginLeft="0pt" marginRight="0pt"/>
    </draw>
    <subform name="DropdownGODoors" w="203.2mm" layout="tb">
    <occur max="-1"/>
    <subform w="203.2mm" name="DDCommentBtnDoors">
    <keep intact="none"/>
    <occur max="-1"/>
    <field name="DropDownDroors" w="171.45mm" h="9mm" y="0mm">
    <ui>
    <choiceList textEntry="1">
    <border presence="hidden"/>
    <margin/>
    </choiceList>
    </ui>
    <font typeface="Myriad Pro" weight="bold" size="11pt"/>
    <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
    <para vAlign="middle"/>
    <caption reserve="25mm">
    <para vAlign="middle"/>
    <value>
    <text>Item:</text>
    </value>
    </caption>
    <items save="1">
    <text>Some windows are original single glazed windows which do not operate properly.  Some have been replaced by wooden windows which are not installed properly.</text>
    <text>Existing wooden patio doors are installed with the hinges exposed at exterior which will allow easy access to intruders.  It also does not allow any space for screen doors at exterior.  Special roll in screen doors should be ordered at interior or reverse the</text>
    <text>Out of plumb windows were observed around the dwelling.  Some windows are plumb on one side and out of plumb on the other side.  We believe it is caused by a combination of sloppy workmanship and structural movements.  Since we were unable to access the cra</text>
    <text>We did not perform a wet test at windows due to lack of permission.</text>
    <text>Window and door trims at siding connections are not installed properly.</text>
    <text>Most wooden windows sustain water damage and are inoperable.</text>
    <text>Broken windows were observed at this dwelling.</text>
    <text>Interior use doors were utilized at exterior.</text>
    <text>Rear door to the laundry area is installed with hinges exposed at exterior which will allow easy access to intruders. </text>
    <text>Missing screens were observed at existing windows.</text>
    </items>
    </field>
    <subform w="203.2mm" name="DropdownAddGOexterior" relevant="-print" y="0mm">
    <field h="6mm" name="AddDropdownGOExterior" w="28.575mm" relevant="-print" x="174.625mm" y="0mm">
    <ui>
    <button highlight="inverted"/>
    </ui>
    <font typeface="Arial"/>
    <caption>
    <value>
    <text>Add Comment</text>
    </value>
    <para hAlign="center" vAlign="middle"/>
    </caption>
    <border hand="right">
    <edge stroke="raised"/>
    <fill>
    <color value="212,208,200"/>
    </fill>
    <corner/>
    </border>
    <bind match="none"/>
    <event name="event__click" activity="click">
    <script contentType="application/x-javascript">//+ GENERATED - DO NOT EDIT (ID:DA5FCB9C-4F98-4657-9C14-49E032341848 CRC:3943787667)
    //+ Type: Action
    //+ Result1: AddInstance("$Node2")
    //+ Node2: form1[0].Report[0].GoExterior[0].ItemsSubFormDoorsWindows[0].DropdownGODoors[0].CommentFi eld[0]
    //+ Node1: form1[0].Report[0].GoExterior[0].ItemsSubFormDoorsWindows[0].DropdownGODoors[0].DDComment BtnDoors[0].DropdownAddGOexterior[0].AddDropdownGOExterior[0]
    //+ Condition1: Button("$Node1","click")
    //+ ActionName: AddDropdownGOExterior.click
    this.resolveNode('DropdownGODoors._CommentField').addInstance(1);
    if (xfa.host.version &lt; 8) {
    xfa.form.recalculate(1);
    /* This button will Add one instance of the repeating subform or table row.
       sSubformSOM: SOM expression of the repeating subform or table row.
       bCalc:  
    Flag - true if the new instance might be referenced by other calculations, otherwise false.
       message:
    The error message displayed.
       These variables must be assigned for this script to run correctly.
       Replace &lt;value&gt; with the correct value.
    var sSubformSOM = "&lt;value&gt;";
    // Example: var sSubformSOM = "xfa.form.form1.Subform1";
    var bCalc = true;
    // Example: var bCalc = false;
    var message = "You have reached the maximum number of items allowed.";
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 10.0.2.20120224.1.869952.867557 - Subform_Instance_Controls_Add.xfo
    // Build the SOM expression of the Instance Manager using the 'underscore' syntax.
    var oSubform = xfa.resolveNode(sSubformSOM);
    // Evaluate the SOM expression.
    var sParentSOM = oSubform.parent.somExpression; 
    // Get the parent SOM expression.
    var sManagerSOM = sParentSOM + "._" + oSubform.name; // Build the SOM expression of the Instance Manager.
    var oManager = xfa.resolveNode(sManagerSOM);
    // Evaluate the SOM expression.
     var nMaxCount = oManager.occur.max;
    // Get the maximum number of subform occurrences allowed.
    var nSubCount = oManager.count;
    // Get the current number of instances.
    // Proceed if the maximum number of subform occurrences has not been reached.
    if ((nMaxCount == "-1") || (nSubCount &lt; nMaxCount)) {
    // Invoke the Instance Manager.
    var oNewInstance = oManager.addInstance(1);
    // Fire the form calculations.
    if (bCalc == true) {
    // Execute all the form calculations.
    xfa.form.recalculate(1);
    } else {
    xfa.host.messageBox(message,"Add Item", 3);
    // END OF DO NOT MODIFY
    </script>
    </event>
    <assist>
    <toolTip>Add an item</toolTip>
    </assist>
    </field>
    <margin topInset="2.54mm" bottomInset="2.54mm"/>
    <?templateDesigner expand 0?></subform>
    <?templateDesigner expand 1?></subform>
    <subform w="203.2mm" name="CommentField" layout="tb">
    <field name="CommentField" minH="8.453mm" w="203.2mm">
    <ui>
    <textEdit multiLine="1">
    <border presence="hidden"/>
    <margin/>
    </textEdit>
    </ui>
    <font typeface="Myriad Pro" weight="bold" size="11pt"/>
    <margin topInset="1mm" bottomInset="1mm" leftInset="1mm" rightInset="1mm"/>
    <para vAlign="middle"/>
    <caption reserve="25mm">
    <para vAlign="middle"/>
    <value>
    <text>Comment</text>
    </value>
    </caption>
    </field>
    <occur max="-1" min="0"/>
    <?templateDesigner expand 0?></subform>
    <?templateDesigner expand 1?></subform>
    <?templateDesigner expand 0?></subform>
    <subform w="28.575mm" h="11.218mm" name="DropdownAddGOexterior" relevant="-print">
    <field h="6mm" name="AddDropdownGOExterior" w="28.575mm" y="0.138mm" relevant="-print">
    <ui>
    <button highlight="inverted"/>
    </ui>
    <font typeface="Arial"/>
    <caption>
    <value>
    <text>Add Item</text>
    </value>
    <para hAlign="center" vAlign="middle"/>
    </caption>
    <border hand="right">
    <edge stroke="raised"/>
    <fill>
    <color value="212,208,200"/>
    </fill>
    <corner/>
    </border>
    <bind match="none"/>
    <event name="event__click" activity="click">
    <script contentType="application/x-javascript">//+ GENERATED - DO NOT EDIT (ID:23EFDB6C-2F4B-4F54-A6AC-CD20621C6CE2 CRC:1796082201)
    //+ Type: Action
    //+ Result1: AddInstance("$Node2")
    //+ Node2: form1[0].Report[0].GoExterior[0].ItemsSubFormDoorsWindows[0].DropdownGODoors[0]
    //+ Node1: form1[0].Report[0].GoExterior[0].DropdownAddGOexterior[1].AddDropdownGOExterior[0]
    //+ Condition1: Button("$Node1","click")
    //+ ActionName: AddDropdownGOExterior.click
    this.resolveNode('ItemsSubFormDoorsWindows._DropdownGODoors').addInstance(1);
    if (xfa.host.version &lt; 8) {
    xfa.form.recalculate(1);
    /* This button will Add one instance of the repeating subform or table row.
       sSubformSOM: SOM expression of the repeating subform or table row.
       bCalc:  
    Flag - true if the new instance might be referenced by other calculations, otherwise false.
       message:
    The error message displayed.
       These variables must be assigned for this script to run correctly.
       Replace &lt;value&gt; with the correct value.
    var sSubformSOM = "&lt;value&gt;";
    // Example: var sSubformSOM = "xfa.form.form1.Subform1";
    var bCalc = true;
    // Example: var bCalc = false;
    var message = "You have reached the maximum number of items allowed.";
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - 10.0.2.20120224.1.869952.867557 - Subform_Instance_Controls_Add.xfo
    // Build the SOM expression of the Instance Manager using the 'underscore' syntax.
    var oSubform = xfa.resolveNode(sSubformSOM);
    // Evaluate the SOM expression.
    var sParentSOM = oSubform.parent.somExpression; 
    // Get the parent SOM expression.
    var sManagerSOM = sParentSOM + "._" + oSubform.name; // Build the SOM expression of the Instance Manager.
    var oManager = xfa.resolveNode(sManagerSOM);
    // Evaluate the SOM expression.
     var nMaxCount = oManager.occur.max;
    // Get the maximum number of subform occurrences allowed.
    var nSubCount = oManager.count;
    // Get the current number of instances.
    // Proceed if the maximum number of subform occurrences has not been reached.
    if ((nMaxCount == "-1") || (nSubCount &lt; nMaxCount)) {
    // Invoke the Instance Manager.
    var oNewInstance = oManager.addInstance(1);
    // Fire the form calculations.
    if (bCalc == true) {
    // Execute all the form calculations.
    xfa.form.recalculate(1);
    } else {
    xfa.host.messageBox(message,"Add Item", 3);
    // END OF DO NOT MODIFY
    </script>
    </event>
    <assist>
    <toolTip>Add an item</toolTip>
    </assist>
    </field>
    <margin topInset="2.54mm" bottomInset="2.54mm"/>
    <?templateDesigner expand 0?></subform>
    <subform w="203.2mm" name="ItemsSubFormDriveWay" layout="tb">
    <draw name="Text3" w="29.2864mm" h="5.2331mm">
    <ui>
    <textEdit/>
    </ui>
    <value>

    Hi guys,
    I don't think, that it is possible to change the values of the dropdown by changing only the xml-file.
    I found another solution:
    1. open the form in Acrobat Pro
    2. select in the menu bar Form->Manage Form Data->Import Data
    3. choose your current xml-file
    4. save the form
    Now the values are available.
    To change the values, you have to repeat these 4 steps with a new xml-file.
    regards
    Martin

  • Mail values from dynamic dropdown

    Hi all,
    need your help to solve a problem.
    With LCD, I create a form with a dropdown listbox and a send button.
    If I maintain the values directly in LCD, everything works fine. The mail contains an XML with the chosen value.
    I've also find out, how to read the value dynamically from an XML.
    But when I do both, the XML contains the entire list instead of the selected value.
    Does anybody have a solution?
    Thanks and regards
    Martin

    Hi
    This should provide you the clue.
    Eg;
    *// Call the function module to send mail notification
          CALL FUNCTION 'ZHR_EMAIL_SEND_NOTIFCATION' IN BACKGROUND TASK AS SEPARATE UNIT
            EXPORTING
              im_pernr = ipspar-pernr
              im_massn = ipspar-massn
              im_massg = ipspar-massg
              im_begda = ipspar-begda
              im_endda = ipspar-endda.
    In this example, the preparation and sending the mail is done in the FM which is called in SEPERATE UNIT (different logical unit of work), so that, dynamic actions and mail sending are seperated and work in different space.
    Regards
    Raj

Maybe you are looking for

  • How to change price of item using salesorder create bapi

    hi all,      As per requirement i have to change price of the item while i am creating sales order using sales order create bapi. kindly tell me the process or if possible any sample program.       thanks in advance thanks, pavan Message was edited b

  • IPhoto 9.4.3 no longer available in the App Store?

    My wife has an older MacBook running 10.7.5. It is still running great, but it is too old to update to 10.9 Mavericks. I would like to buy the newest possible version of iPhoto that will run on 10.7.5. I believe this is iPhoto 9.4.3. But the only iPh

  • Sending content in an html page via email as body

    Hi I am really in need of a prompt help for sending a web page which contains some html content as an email body. I really have no clue about this. I have tried searching in google but could not find any thing in java. I have everything ready for sen

  • And my Next problem is...

    One problem after another! Oh well I'm getting better. Today's problem is that I'd like the frame to change once a variable reaches a certain amount! So for example, If a fish controlled by the arrow keys collects 25 pieces of food, the frame will ch

  • USB port not functional at startup

    This is 100% reproducible. I plug my 23" Apple Cinema monitor into my new 2.8GHz MacBook Pro. I use a display to DVI connector for the monitor and plug the USB from the monitor into one of the USB ports on the mac. I have a third party mouse and keyb