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

Similar Messages

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

  • 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

  • Is it possible to have a dropdown with a blank option

    Is it possible to have a dropdown with a blank option
    1) When desigining a form is it possible to have a dropdown with a blank option as the first option.
    2) Also if the field is a required field will the application prompt the user if the blank option is selected.

    1) If you are using any dynamic data from database tables then you can use below sample query:
    select  * from (Select ' ' QueueName, ' '  QueueValue from tabXYZ where  columnname = <provide some value that is not available in this  column>
    union
    Select columnname QueueName, columnname QueueValue from tabXYZ) s
    order by QueueValue
    2) Onsumbit of the form in ISF you need to capture the empty value(' ') for validation

  • Dynamically making fields editable or non editable according to ddl value.

    Hi All,
    In my case I have a drop down field having various values on ADOBE form.According to those values the remaining fields in the form should get visible or invisible accordingly. Can you please help me out in javascripting required in this case?
    I have tried scripting as given below but it is not working. I request you to please tell me whats the problem in this and what needs to be done to achieve this.
    For Example in case if i select "03 - Transfer" in the dropdown field named OPTION then I want to make New Personal Sub area field as visible and editable on the form so that user can enter data into it ELSE it should not be visible on the form.For this the scripting i wrote in javascript in the event CALCULATE for this field is as follows.
    if($record.OPTION.DATA.FIELD == "03 - Transfer")
    then
    this.access == "open"
    else
    this.presence = "invisible"
    endif
    But this is not working when I check the form on portal.Please let me know what I need to do inorder to achieve this functionality.
    I have wrote the similar code in CALCULATE event for each field on the form but the form not working according to requirement.
    Please provide me with information how to decide the event in which we should write the script?
    Please let me know if this functionality can be achieved by coding in F.M in ABAP?If yes how?
    Thanks in Advance.
    Sarang

    Hi Chintan,
                    Thanks for the reply. The scripting I used in my case is as follows.But this is not working.Please let me know what may the problem.
    In the dropdown in EXIT event I wrote the following javascript.
    if(this.rawValue == "01 - Promotion")
         DATA.MainSubform.Subform3.EFF_DATE.access = "open";
         DATA.MainSubform.Subform3.EFF_DATE.presence = "visible";
    and in the main subform I have wrote the following script as u told in the FORM READY event
    DATA.MainSubform.Subform3.EFF_DATE.access = "readOnly";
    DATA.MainSubform.Subform3.EFF_DATE.presence = "hidden";
    According to this script the at first when the form is opened the EFF_DATE field should be invisible and should only get visible when the user selects "01 - Promotion" from the drop down.
    Note - "01 -  Promotion" is one of the values from the drop down
    Also Please let me know what needs to be done to make the form dynamic.
    waiting for ur reply.
    Thanks in Advance,
    Sarang.

  • Adding a progress loader to a dynamic text field / scrollPane

    I have a dynamic text field which is loading images from an external html.  This text is named scrollPaneImage and is a child of a movieClip called scrollPaneContent.  I then load scrollPaneContent into a scroll pane named scrollPane
    When the user interacts with my swf different images are loaded into scrollPaneImage.  Since some of the images take a few seconds to load, I'd like there to be a progress loader displayed in the scrollpane.
    I have tried adding the progress event listner to the dynamic text, the movie clip and the scrollpane and cannot get it to respond or track the loading.
    scrollPaneContent.addEventListener(ProgressEvent.PROGRESS,reportProgress);
    function reportProgress(e:ProgressEvent):void {
        trace(e.bytesLoaded + " loaded out of " + e.bytesTotal);
         trace("LOADED");
    Can anyone suggest what I might be doing wrong or of another approach?
    thanks in advance,
    Josh

    Hi KGLAD.  Thanks for the response.  Yes my code is a little messy.  Here I have included everything and tried to do a little cleaning.  Is there enough code here for you to get an idea of how/when things are firing?
    import com.google.maps.LatLng;
    import com.google.maps.Map;
    import com.google.maps.MapEvent;
    import com.google.maps.MapType;
    import com.distriqt.gmaps.kml.utils.*;
    import com.greensock.*;
    import com.greensock.easing.*;
    import com.greensock.TweenLite;
    import flash.geom.Point;
    import com.greensock.plugins.*;
    TweenPlugin.activate([AutoAlphaPlugin]);
    import com.google.maps.controls.NavigationControl;
    import com.google.maps.controls.MapTypeControl;
    import com.google.maps.controls.OverviewMapControl;
    import com.google.maps.overlays.GroundOverlay;
    import com.google.maps.overlays.GroundOverlayOptions;
    import com.google.maps.LatLng;
    import com.google.maps.LatLngBounds;
    import com.google.maps.MapMouseEvent;
    import com.google.maps.controls.*;
    import com.google.maps.overlays.Marker;
    import com.google.maps.InfoWindowOptions;
    import com.google.maps.overlays.MarkerOptions;
    import com.anttikupila.utils.JPGSizeExtractor;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.net.URLLoader;
    import fl.controls.UIScrollBar;
    import flash.events.Event;
    import fl.events.ScrollEvent;
    import flash.sampler.NewObjectSample;
    [Embed(source="ICONS/PHOTO_BLACK.png")]var photoIcon:Class;
    [Embed(source="ICONS/BLOG_BLACK.png")]var blogIcon:Class;
    scrollPane
    // GMAP PARAMETERS
    var map:Map = new Map();
    map.key = "map key";
    //map.key = "api key";
    //define the size of the map extent....
    map.sensor = "false";
    map.setSize(new Point(stage.stageWidth, stage.stageHeight));
    map.addEventListener(MapEvent.MAP_READY, onMapReady);
    map.addEventListener(MapEvent.MAP_READY, createmarkers);
    map.addEventListener(MapEvent.MAP_READY, createMarkerArrays);
    map.addEventListener(MapEvent.MAP_READY, createPhotoPingers);
    this.addChild(map);
    map.setSize(new Point(stage.stageWidth, stage.stageHeight));
    //on map ready params
    function onMapReady(event:Event):void
    map.setCenter(new LatLng(48,-113.5), 8, MapType.PHYSICAL_MAP_TYPE);
    map.enableScrollWheelZoom();
    map.disableContinuousZoom();
    //Marker options for a photo piece
    var photoMarkerOptions:MarkerOptions = new MarkerOptions();
    photoMarkerOptions.icon = new photoIcon();
    photoMarkerOptions.hasShadow=false;
    //Marker options for a blog piece
    var blogMarkerOptions:MarkerOptions = new MarkerOptions();
    blogMarkerOptions.icon = new photoIcon();
    blogMarkerOptions.hasShadow=false;
    //load xml tester
    var pntloader:URLLoader = new URLLoader();
    var pntxml:XML = new XML();
    pntloader.addEventListener(Event.COMPLETE, loadpntXML);
    pntloader.load(new URLRequest("map_feed.xml"));
    // create an array of jpgs to index
    var JPGIndexArray:Array = new Array();
    //Create array that will be populated with points
    var pointsArray:Array = new Array();
    //Load the XML
    function loadpntXML(e:Event):void {
        pntxml=new XML(e.target.data);
        pntxml.ignoreWhite = true;
         for (var i:int = 0; i< pntxml.row.length(); i++){
         pointsArray[i]="mrk"+i;
         JPGIndexArray[i]="JPG"+i;
         //trace(pntxml);
    //Create the markers and add them to the map
    function createmarkers(event:Event):void
         for (var i:Number = 0; i < pntxml.row.length(); i++) {
         var markerOptions:MarkerOptions = new MarkerOptions();
          if (pntxml.row[i].TYPE=="PHOTO")
               markerOptions.icon = new photoIcon();
               markerOptions.tooltip = "Photo";
               markerOptions.hasShadow=false;
          else if(pntxml.row[i].TYPE=="BLOG")
               markerOptions.icon = new blogIcon();
               markerOptions.tooltip = "Blog Entry";
               markerOptions.hasShadow=false;
          else
               null     
          pointsArray[i] = new Marker(new LatLng(pntxml.row[i].LAT,pntxml.row[i].LONG),markerOptions);
         markerA.push(pointsArray[i]);
          map.addOverlay(pointsArray[i]);
          pointsArray[i].addEventListener(MapMouseEvent.CLICK,indexCalledMarkerRecord);
          pointsArray[i].addEventListener(MapMouseEvent.CLICK,scrollPanePopulate);
    // PING PHOTO DIMENSIONS BEFORE LOADING //
    var je : JPGSizeExtractor = new JPGSizeExtractor( );
    je.addEventListener( JPGSizeExtractor.PARSE_COMPLETE, jeLoadHandler );
    je.addEventListener( JPGSizeExtractor.PARSE_FAILED, jeParseFailed );
    function createPhotoPingers(event:Event):void{
         for (var k:Number=0; k <pntxml.row.length(); k++){
         JPGIndexArray[k]=new JPGSizeExtractor();
         JPGIndexArray[k].debug = false;
         JPGIndexArray[k].addEventListener(JPGSizeExtractor.PARSE_COMPLETE, jeLoadHandler );
         trace("madeit");
         pingPhotoUrls();
    function pingPhotoUrls():void
         for (var i:Number = 0; i < pntxml.row.length(); i++) {     
          var calledMarkerUrl=pntxml.row[i].URL_OF_CONTENT;
          JPGIndexArray[i].extractSize(calledMarkerUrl);     
    var JPG1=null;
    function jeLoadHandler(e:Event) : void {
         trace(e.currentTarget.width + "x" + e.currentTarget.height );
         imageWidths.push(e.currentTarget.width);
    function jeParseFailed( event : Event ) : void {
         trace( "Parse failed" );
    var imageWidths = new Array;
    // FUNCTIONS FOR INDEXING CALLED MARKERS//
    //Create blank array for use in indexing
    var markerA:Array=[];
    //VAR FOR USE IN INDEXING CALLED MARKER
    var pointindex=null;
    //INDEX CALLED MARKER POINT XML RECORD
    function indexCalledMarkerRecord(e:MapMouseEvent):void{
         pointindex=genIndexPos(markerA,Marker(e.currentTarget));
         //trace(pntxml.row[pointindex].DESC);
    //FUNCTION FOR INDEXING CALLED MARKER
    function genIndexPos(a:Array,e:Marker):uint{
         for(var i:uint=0;i<a.length;i++){
              if(a[i]==e){
                   return i;               
                   return null;
    //           SCROLLPANE FUNCTIONS              //
    this.addChild(scrollPane);
    scrollPane.setSize(255,300);
    scrollPane.x=-200;
    scrollPane.y=-200;
    scrollPane.alpha=0;
    scrollPaneContent.mouseEnabled=false;
    spHeader.closeBox.addEventListener(MouseEvent.CLICK, function(eMouseEvent):void
                                                                TweenLite.to(scrollPane, .5,{autoAlpha:0,overwrite:true});                                                            
    spHeader.forDrag.addEventListener(MouseEvent.MOUSE_DOWN, function (e:MouseEvent):void
              scrollPane.startDrag();          
    spHeader.forDrag.addEventListener(MouseEvent.MOUSE_UP, function (e:MouseEvent):void
              scrollPane.stopDrag();
    spHeader.forDrag.buttonMode=true;
    spHeader.forDrag.useHandCursor=true;
    spHeader.width=300;
    scrollPane.source = scrollPaneContent;
    scrollPaneContent.scrollPaneText.autoSize='left';
    scrollPaneContent.scrollPaneImage.autoSize='center';
    scrollPaneContent.scrollPaneImage.autoSize=TextFieldAutoSize.CENTER;
    scrollPaneContent.mouseEnabled=false;
    scrollPaneContent.scrollPaneText.condenseWhite = true;
    // Add listener.
    scrollPane.addEventListener(Event.COMPLETE, completeListener);
    scrollPaneContent.addEventListener(ProgressEvent.PROGRESS,reportProgress);
    function completeListener(event:Event):void {
    trace('Scrollpane content loaded');
    function reportProgress(e:ProgressEvent):void {
        trace(e.bytesLoaded + " loaded out of " + e.bytesTotal);
        trace("LOADED");
    function scrollPanePopulate(event:Event){     
         //show scroll pane
         scrollPane.x=33;
         scrollPane.y=33;
         TweenLite.to(scrollPane, .5,{autoAlpha:1,overwrite:true});
         TweenLite.to(spHeader, .5,{autoAlpha:1,overwrite:true});
         //create the temp variables
         var calledMarkerIndex=pntxml.row[pointindex].ID;
         var calledMarkerDate=pntxml.row[pointindex].DATE;
         var calledMarkerDescription=pntxml.row[pointindex].DESC;
         var calledMarkerContent=pntxml.row[pointindex].URL_OF_CONTENT;     
         var imgWidth=JPGIndexArray[pointindex].width;
         var imgHeight=JPGIndexArray[pointindex].height;
         scrollPaneContent.scrollPaneText.htmlText="<font size='12' color='#000000'>"+calledMarkerDescription;
         var imgBoxHeight=scrollPaneContent.scrollPaneImage.height;
        var txtHeight=scrollPaneContent.scrollPaneText.height;
        var contentHeight=(imgBoxHeight+txtHeight);
        scrollPane.setSize(300,(contentHeight+15));     
         //size the text box
         scrollPaneContent.scrollPaneText.width=270;
         //if image is wide or tall, scale accordingly and create a string that will be used
         if(imgWidth>=imgHeight){          
              var imgSource:String = "<img src="+"'"+calledMarkerContent+"'"+"width='"+250+"'"+"height='"+150+"'"+"/>";                    
              var calledImgHgh=160;          
         else
              var imgSource:String = "<img src="+"'"+calledMarkerContent+"'"+"width='"+110+"'"+"height='"+167+"'"+"/>";          
              var calledImgHgh=177;          
         //fill in the text
         scrollPaneContent.scrollPaneImage.htmlText=imgSource;
         //scrollPaneContent.scrollPaneText.htmlText="<font size='12' color='#000000'>"+calledMarkerDescription;     
         //pan the map to the called position
         map.panTo(pointsArray[calledMarkerIndex-1].getLatLng())
         //add the header to the SP and scale accordingly
         scrollPane.addChild(spHeader);
         spHeader.x=-1;
         spHeader.y=1;
         spHeader.width=299;
         if (txtHeight>=250){          
              scrollPane.setSize(300,275);          
              scrollPaneContent.scrollPaneText.htmlText="<font size='12' color='#000000'>"+calledMarkerDescription+"<br><br>";
         if (txtHeight<=5){
              scrollPane.setSize(300,200);
              scrollPaneContent.scrollPaneText.htmlText="<font size='12' color='#000000'>"+calledMarkerDescription;
         if (txtHeight>=5){
              scrollPane.setSize(300,275);
              scrollPaneContent.scrollPaneText.htmlText="<font size='12' color='#000000'>"+calledMarkerDescription+"<br><br>";
         // CREATE TEMP VARIABLES FOR POSITIONING AND PLACE DYNAMIC TEXT
         var scTextY=scrollPaneContent.scrollPaneText.y;
         var scImageY=scrollPaneContent.scrollPaneImage.y;
         var scTextHeight=scrollPaneContent.scrollPaneText.height;
         scrollPaneContent.scrollPaneText.y=scImageY+calledImgHgh;
         //update the scrollpane and reset the scrollbar
         scrollPane.update();
         scrollPane.verticalScrollPosition=(0);
         scrollPane.verticalScrollBar.height=270;
         scrollPane.verticalScrollBar.x=281;
         scrollPane.verticalScrollBar.y=3;
    spHeader.alpha=0;
    this.addChild(spHeader);
    var photoMarkersArray=new Array();
    var photoMarkersIndexArray=new Array();
    //CREATE ARRAY OF PHOTO MARKERS
    function createMarkerArrays(e:Event):void{
    for (var j:int=0; j<pntxml.row.(TYPE=="PHOTO").ID.length(); j++){
              var tempMarkerIndex=pntxml.row.(TYPE=="PHOTO").ID[j];
              var tempMarkerRef="mrk"+tempMarkerIndex;
              photoMarkersArray.push(tempMarkerRef);
              photoMarkersIndexArray.push(tempMarkerIndex);

  • Dynamic dropdown based on user selection of another dropdown on the same page

    hi all, ok, I have a table which contains use data, a name,
    and a userID. for the example lets say "Simon Bullen" and my userID
    is "999".
    on a form I have, there is a dropdown box, which is dynamic
    from this table, and allows me to select Simon Bullen, however, I
    have a hidden field on the form, which when the user selects "simon
    bullen" the hidden field populates with the appropiate U number
    from the same table.... no i thought this would do it:
    <cfquery name="userNumber" datasource="userList">
    SELECT userNumber FROM dbo.Users WHERE Name =
    <cfqueryparam value="#form.Name#">
    </cfquery>
    and then my dynamic form field (hidden) would reference to
    this query....
    but it doens't work, could somebody please enlighten me? I'm
    hoping its something silly
    Thanks in advance

    You could make the value of the option the UserID and the
    option display the name.
    If that isn't what you need, I think you'll need some
    javascript to populate your hidden field based on what is chosen in
    the select.
    I think you can modify this:
    http://www.javascriptkit.com/javatutors/selectcontent2.shtml
    ...to populate your hidden field instead of a new select
    list.
    If there's a way to do that without JS I'm not aware of it.
    A third possibility: look up the UserID (based on the name
    chosen) after the form is submitted then do with it whatever you
    need to.

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

  • Is it normal that the DataSource field is blank when opening a master data

    Is it normal that the DataSource field is blank when opening a master data which is also an InfoSouce in InfoSource page.
    Just locate an InfoSource which is also a master data or data target where next to which is a green triangle picture icon in InfoSource page, open it, the top part (Commnication Structure) is automatically expended.  Expend the lower part "Transfer_Structure/Transfer_Rules", find the DataSource field is blank.  This only occurs for an InfoSource which is also a master data which have more than two data loads (e.g., one is attibute, and the other is text load) or there are two InfoPackage loads for this master data.  We checked for master data with only one InfoPackage under it (e.g., only text load) and find it's OK that the datasource field is not blank when expending the lower section.
    Thanks

    Kevin
    It's not common. If you have three Data Sources like attributes, texts and hierarchy by default attribute data source will appear on the screen and for the rest of the things we need to do dropdown and select. This is how in general it appears.
    Thanks
    Sat

  • Using Webservice through RFC Func Mod Can I able to fill dropdown field

    Hi,
    I am going to develop offline interactive form using Webservice through RFC Function module.
    There are dropdown list fields in my adobe form. Then how can I able to fill these dropdown fields in my form, I mean how to bind the values to dropdown fields.
    Thanks & Regards,
    nspkumar.

    Hi,
    Option 1:
    If the form is designed in transaction SFP, which has a form interface (transaction SFI), then below solution will work:
    For example consider the data node name as 'COUNTRY' . Select drop down UI element and go to 'Object' properties tab. Select 'Binding' tab, on the top right hand side of this tab there is small icon, select the icon and enable the option 'Show Dynamic Properties'. Once this option is enabled in the 'Binding' tab you can click on the link 'Specify Item Values'. A popup will open, here specify the binding value as 
    $record.sap-vhlist.COUNTRY.item[*]
    Refer to link:
    [Drop down list binding|http://help.sap.com/erp2005_ehp_06/helpdata/en/43/7a667df4ad6fc9e10000000a1553f6/frameset.htm]
    Option 2:
    If the data connection is directly to the webservice then binding needs to be done similar to option 1 except one change. While binding the value in dynamic properties based on XML schema binding needs to be changed.
    As you can see in option 1, for dynamic property binding 
    $record.sap-vhlist.COUNTRY.item[*]
    , there is a value called sap-vhlist. This 'sap-vhlist' gets generated when form is designed in transaction SFP with form interface. So in your case if data connection is from webservice value sap-vhlist needs to changed to the value as per XML schema definition.
    Regards
    Srikanth KV

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

  • Dynamic mandatory field error message is not getting displayed in webui

    Hi,
    In Appointment if the importance is HIGH i made Location as mandatory.For this i enhanced BT126H_APPT/ApptDetails. In the get_p_location() method of BTACTIVITYYH i have written the code.
    Now the problem is Error message for this dynamic mandatory field is not getting displayed in webui.
    I debugged in DO_FINISH_INPUT error message is getting generated but it is not getting displayed in ui.
    Can anybody tell where the problem is?
    Thanks,
    Hari.

    Hi Hari,
    Really sorry do not know how to convert this nug file to text
    How ever quick solution for your problem would be just keep your validation in 'DO_VALIDATE_INPUT' method of the view controller.
    Means even if the User clicks on SAVE , Since it fails here , it would not allow you to go further.
    Thanks,
    Rajesh P

  • How do you grey out a radio button if a text field is blank in Adobe Acrobat XI Pro?

    How do you grey out a radio button if a text field is blank in Adobe Acrobat XI Pro?
    So this what I'm trying to do:
    (     )   |TEXT FIELD|
    (     )   |TEXT FIELD|
    (     )   |                  |
    (     )   |TEXT FIELD|
    I have a radio button: (     )
    and a text field: |TEXT FIELD|
    The third text field is blank, and I would like for the radio button next to it greyed out (user can't click on it) since the text field is blank. Is this possible to achieve? I'm assuming I'll have to use javascript, but what would the code be and would it be entered in the javascript editor for the text field or the radio button?
    Thanks in advance guys

    Hey, thanks, but it didn't work
    I have the text fields as read only. Could that be why it's not working? Should I make the fields not read only?
    Thanks,

  • ODS Key Fields allows blank values in Transformation

    Dear Experts,
    I have two layers:
    1. Datawarehouse layer (purpose is to represent exactly data at the backend)
    2. Consolidation Layer
    Scenario 1:
    In Datawarehouse layer, the fiscal variant is a key field in ODS and I have two other key fields i.e. combine to form a composite key.
    When I load the data from PSA to this ODS, I have a record which contains blank value for the fiscal variant. It successfully loads into the Datawarehouse ODS.
    Sceanrio 2:
    In the consolidation layer, i have 4 key fields out of which fiscal variant is one of them. Now when I load the data from the datawarehouse ods to consolidated ods, it throws an error saying:
    Diagnosis
         An exception fiscvarnt_missing was raised while executin
         module RST_TOBJ_TO_DERIVED_TOBJ .
    System Response
         Processing the corresponding record has been terminated.
    The transformation mapping for the fiscal varaint in both sceanarios is 1:1 mapping with the rule type 'Time Characteristic'.
    My questions is:
    1. Why different behaviour during scenario 1 and sceanario 2
    2. Solution to the above issue
    Thanks
    Jain

    Thanks J.S.
    Yes the format selected in the field for the datasource is 'Internal'.
    When loading the data from R3>PSA>ODSX(Datawarehouse Layer), I have no problems even when the field is blank.
    When loading from ODSX-->ODSY(Consolidated Layer) the empty (blank) field for that records throws error.
    Any ideas?
    Jain

  • Dynamic Text Field is not displaying foreign characters... HELP!

    I have a dynamic text field that is not displaying foreign characters properly. They appear as boxes.
    Here's what I've tried.
    Under properties for the text field, I clicked on the embed characters button. In there, I pasted all the special characters I would need and clicked okay. Shouldn't this be enough for the text to display properly? What am I missing? Please help...

    More info: I'm noticing that in the actual dynamic text field in my .FLA file, if I type a foreign character like é, it pops up as a block. My family font is set to New Caledonia... is it possible that New Caledonia doesn't have those particular glyphs? The thing that doesn't make sense to me though is, last year when I made this card, it worked fine with New Caledonia... Any help is greatly appreciated!!

Maybe you are looking for

  • G-drive mini and mobile don't mount

    For some reason the G-Drive mini and the G-Drive mobile bus powered drives do not mount on my Power Mac properly. I connect them directly to my Firewire 800 port and they always act up or freeze up. I plug other bus powered portable firewire drives (

  • Itune download never start &''itunessetup is not a valid win32 application"

    ok so i have tried downloading itunes 64 bit using IE8. didn't work downloaded it using chrome: worked after a few tries but then "itunessetup is not a valid win32 application" i have read every single article on both problems and nothing i do will h

  • Error in accounting entries in depot process

    Hello all 1. At the time of stock transfer to depots, excise entries are correctly generated and cenvat sales clearing account is getting debited. 2. At the time of billing from depot to the end customer, sales (revenue account) is wrongly credited w

  • Do I need to purchase a converter when I use my MBP and Mac mini in AUS?

    Hi all, I have no idea if I need to purchase a separate voltage converter for the MBP and the newly purchased Mac mini. The geniuses from Apple store claims that it is built-in, so all I have to do is do get an adapter kit to swap with the removable

  • Certificate with PSE type SystemPSE has been invalid for 9 days

    Hi, I am seeing the above message in my ERP system transaction SM21 along with Validity of certificate from list with PSE type >SystemPSE< ends in 5 days message. I have seen several notes and SDN threads on this and have replaced the PSE etc.  Howev