Syncronizing Three Dynamic List boxes

I have three list boxes which are populated by cfquerys. If
the first one changes the other two must change.
If the second changes the third one has to change and the
first one stay the same.
I submit the form to inself each time the the boxes are
clicked. I'm using javascript to set the action to the same page
each time. I have it working if I change the first list box but not
when I change the second list box. Thanks in advance.
Here is the code for the first, second and third list box and
the java script.
<td><select name="site"
onchange="submitForm('selected');">
<cfoutput query="qGetMarketSites">
<option value="#qGetMarketSites.site#"
<cfif form.site eq #qGetMarketSites.site#>
selected
</cfif>
>#qGetMarketSites.market#
</option>
</cfoutput>
</select>
</td>
<td><select name="city" size="1" onchange="
<cfset form.prevSite=form.site/>;
submitForm('selected');">
<cfoutput query="qGetCitys">
<option value="#qGetCitys.city#"
<cfif form.city eq #qGetCitys.city#>
selected
</cfif>
>#qGetCitys.city#
</option>
</cfoutput>
</select>
</td>
<td><select name="npanxx" size="1"
onchange="submitForm('selected');">
<cfoutput query="qGetNPANXXS">
<option value="#qGetNPANXXS.npanxx#"
<cfif form.npanxx eq #qGetNPANXXS.npanxx#>
selected
</cfif>>#qGetNPANXXS.npanxx#
</option>
</cfoutput>
</select>
</td>
<script type="text/JavaScript">
function submitForm(submitFrom)
if (submitFrom == 'selected')
alert(document.form.site.value);
alert(document.form.prevSite.value);
document.form.action="getAssignment2.cfm";
form.submit();
else
_CF_checkform(document.form);
if (_CF_error_exists == false)
if (document.form.port_Indicator[1].checked)
if (document.form.foreign_DN.value == " ")
alert('Foreign DN must be populated');
else
document.form.action="selectInventory.cfm";
form.submit();
else
document.form.action="selectInventory.cfm";
form.submit();
//-->
</script>

hai,
here is the sample code.
write it in onchange of list1.
var a1=document.form.list1.selectedIndex;
for(i=0;i<document.form.list1.length;i++)
if(i!=a1)
document.form.list2.options=new Option(document.form.list1.options[i],document.form.list1.options[i],false,false);
else
i--;
i think this may help u out.
regards,
ravi

Similar Messages

  • Surveys - dynamic list box option

    Hi,
    How can I control the entries for the answer category "Dynamic list box with single selection"?
    Thanks,
    Susana Messias

    Hello Susana,
    To maintain dynamic values for a specific answer, select your survey in the Survey Suite and go to the maintenance of survey attributes (CTRL+F12). Under the tab 'Technical settings', you can maintain the 'Callback to PBO' function module, which allows you to modify the survey at runtime. (The function module you specify here is called by the survey tool runtime environment at PBO.)
    As an example, you can have a look at the function module 'CRM_SVY_EXAMPLE_DYNAMIC_PBO', which contains a section to set answer options at runtime. Of course, you would have to program your own logic to meet your specific requirements for setting the values.
    I hope this helps.
    Kind regards,
    Kristoff

  • How to use dynamic list box in survey builder?

    Hello,
    Could someone give me a little bit of thread? How to use dynamic list box in survey builder?

    Hi Liu,
    Dynamic combo boxes::A combo box is dynamic if it references a document property for which a value set is defined in the configuration (System Administration ® System Configuration ® Content Management ® Global Services ® Property Metadata ® Properties ® Parameter Allowed Values).
    At runtime (when you open the creation form) the system reads these values from the configuration and displays them in the dropdown list.
    If you link a combo box for which list entries already exist to a document property with a value set, the system asks whether you want to delete the list entries. it is recommend that you accept this suggestion and delete the list entries from the XML Forms Builder. Otherwise inconsistencies could arise between the entries in the XML Forms Builder and the value set in the configuration. This can cause errors when saving.
    Also you may Refer the Link for Further help:
    http://help.sap.com/saphelp_crm50/helpdata/en/29/c40d3d2a83752de10000000a114084/frameset.htm
    http://help.sap.com/saphelp_crm50/helpdata/en/00/9e7f41969e1809e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_crm50/helpdata/en/a7/5a874174a8050de10000000a1550b0/frameset.htm
    Hope it Answers your Queries..
    Thanks and Regards,
    RK.

  • "Dynamic List Box with Single Selection" Survey Suite in CRM 6.0

    Hi
    I am using CRM 6.0. There in Survey Suite there are 2 answering options "Dynamic List Box with Single Selection" & "Dynamic List Box with Multiple Selection". I am able to make out, how we can assign values to this. I have seen example "Example_Dynamic_survey" also.
    I believe we have to use programming for populating this. But how do we have to carry that out.
    Thanx and Regards
    Hitesh

    Hi Hitesh,
    There is no need of programming for populating values for Answer category 'List Box with Single Selection' or 'List Box with Multiple Selection'. You have to follow the following steps to populate values for those:
    - In the Answer Category select List Box with Single Selection from drop down list
    - Then on left hand side tree, right click on Answer and select Insert Answer Option (Answer->Insert Answer Option)
    - Then on right side, provide Text for the answer (value)
    - To add more values, repeat the process Answer->Insert Answer Option and providing text for those answers in the right side.
    Similarly you can populate values for 'List Box with Multiple Selection' also.
    This has to be done in the transaction CRM_SURVEY_SUITE.
    Hope this is clear to you
    regards
    Srikantan

  • Display selected items in dynamic list box

    I need to display the selected items in a dynamic list box -
    this worked great - but now client wants multiple selected. I do
    have the items comma delimited in single field (but I can change
    that if I need to) - so how do I make those items display as
    selected in list. I'm using asp and standard dreamweaver list based
    on a recordset.

    There is a better approach. I faced a similar problem and put all the logic in a Javascript function. I modified my code to suit your needs.
    My HTML will have the following.
    <body onLoad="javascript:initLanguages();">
      <form name="languageForm">
        <select size="1" name="languagesList">
        </select>
      </form>
    </body>I created a Javascript function
    <script language="Javascript">
      //-- put all your languages here in a Javascript Array if they are fixed.
      //-- If you get the langauges from a Java object (dynamic or configurable), generate the Javascript in that object and insert a scriptlet in the HTML that plugs in the generated Javascript into this HTML. If so, take care of the quotes and double quotes. They are tricky !!!
      var languageArray = new Array("Fran?ais", "English", "Espanol", "Deutsch", "Italiano");
      function initLanguages ()
        var listCounter = 0;
        for (var ind=0; languageArray != null && ind < languageArray.length; ++ind)
          var obj = eval("new Option" + languageArray[ind]);
          eval("document.languagesForm.languagesList.options[listCounter]=" + "new Option" + languageArray[ind]);
          if(document.languagesForm.languagesList.options[listCounter].value == "<%= selectedLanguage %>")
            document.languagesForm.languagesList.options[listCounter].selected = true;
          listCounter += 1;
    </script>
    selectedLanguage is something you get in the Java code
    <%
      selectedLanguage = myObj.getSelectedLanguage();
    %>

  • Populating a Dynamic List Box in CRM Survey

    Hi All,
    I am currently creating a CRM Survey and am trying to use the 'Dynamic List Box with Single/Multiple Selection' options, but cannot see how i can populate these lists. I get the following error message when selecting the 'Insert Answer Option:
    'Dynamic list boxes' cannot contain statistical answer options'
    I have tried this through both Survey Suite and UI, but cannot go any further. Can anyone point me to where i can populate this list? Sounds like possible a backend table, but i cannot find which one.
    Many Thanks
    Indi

    Would anyone be able to help please?
    Thanks
    Indi

  • Open a tabbed panel from a dynamic list box

    Hi all,
    I have Spry tabbed panelks working fine on my site, "click on button and open selected panel", great.
    Is it possible to have a list box populated from an SQL table and when an item in the list box is selected open the appropiate panel.
    The SQL table has three feilds, RecordID, Description, TabID.
    Example:
    RecordID
    Description
    TabID
    1
    USA
    0
    2
    United Kingdom
    0
    3
    France
    1
    4
    Spain
    1
    From a select list I select France "TabID 1", I would ike this selection to open the Tabbed panle which holds info about France.
    Select list code:
    <code><form id="form1" name="form1" method="post" action="">
                        <select name="select" class="searchbox" id="select" onchange="TabbedPanels1.showPanel('dontarget')">
    >
                          <option value=" ">Please select your airline...</option>
                          <?php
    do { 
    ?>
                          <option value="<?php echo $row_checkin_airlines['TabPanel']?>"><?php echo $row_checkin_airlines['AirlineName']?></option>
                          <?php
    } while ($row_checkin_airlines = mysql_fetch_assoc($checkin_airlines));
      $rows = mysql_num_rows($checkin_airlines);
      if($rows > 0) {
          mysql_data_seek($checkin_airlines, 0);
       $row_checkin_airlines = mysql_fetch_assoc($checkin_airlines);
    ?>
                        </select>
                      </form>
    </code>
    Tabbed Panle code:
    <code>
    <div id="TabbedPanels1" class="VTabbedPanels">
        <ul class="TabbedPanelsTabGroup">
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/one_world_button.png" width="192" height="124" border="0" /></li>
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/star_alliance_button.png" width="192" height="124" border="0" /></li>
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/sky_team_button.png" alt="" width="192" height="124" border="0" /></li>
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/others_button.png" width="192" height="124" border="0" /></li>
          <li class="TabbedPanelsTab" tabindex="0"><img src="images/no_online_checkin_button.png" width="192" height="124" border="0" /></li>
        </ul>
        <div class="TabbedPanelsContentGroup">
          <div class="TabbedPanelsContent">
         // followed by the pabel content
    </code>
    Many thanks for any help you can provide.
    Best regards,
    Dereck

    Have a look at the following
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet">
    </head>
    <body>
    <select name="myChoice" onchange="TabbedPanels1.showPanel(Number(this.value));">
        <option value='-1'>Please choose...</option>
        <option value='0'>USA</option>
        <option value='0'>UK</option>
        <option value='1'>France</option>
        <option value='1'>Spain</option>
    </select>
    <hr>
    <div id="TabbedPanels1" class="VTabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div class="TabbedPanelsContent">Content 1</div>
        <div class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    <script src="SpryAssets/SpryTabbedPanels.js"></script>
    <script>var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");</script>
    </body>
    </html>
    Gramps

  • JSP (no java code), taglibs and dynamic list boxes

    Hi,
    Can anyone recommend a few examples of JSPs using Tag Libraries to represent a dynamic dropdown box in a form? We are trying to learn how to incorporate tag libs into our pages so we have no code on the JSPs. We currently have a JSP that uses dynamic dropdowns, but the all the code is in the JSP. Most examples we find use either static data or just output data into a table with taglibs. But our pages use many dropdowns, inputs, etc... for updates and inserts. We are using JSPs, servlets, and tags which will get data from EJB's (stateless and entity). (We are also using WEblogic Server 7.0 if that makes any difference) If you know of some good examples or tutorials that show how to accomplish this, it would GREATLY help us out!!
    Thanks!

    Check out Struts, they have an HTML taglib that does exactly what your talking about. http://jakarta.apache.org/struts

  • Dynamic list box

    how to execute queries with the selected item in list box ? I
    want to have an sql queiry that will generate when someone selects
    an item in the list box. I know this is done in the where clause.
    But my skills in javascript are not that good. Can this be done in
    dreamweaver? If so do they have instructions on how to do it? Or
    can someone give me an example on how this can be done?
    thanks in advance

    ok... :) You don't need skills in javascript for this. SQL
    and a server side language will do just fine.
    What is your working server side language? PHP, ASP,
    ColdFusion, JSP...?
    Regards

  • Dynamic List Boxes

    I have 2 listboxes. The second I want to be populated depending on the selection of the first (connecting to an access backend). I know I need to use the onchange event in javascript, does anyone have a code example of how this is done?

    hai,
    here is the sample code.
    write it in onchange of list1.
    var a1=document.form.list1.selectedIndex;
    for(i=0;i<document.form.list1.length;i++)
    if(i!=a1)
    document.form.list2.options=new Option(document.form.list1.options[i],document.form.list1.options[i],false,false);
    else
    i--;
    i think this may help u out.
    regards,
    ravi

  • Flash Lite 2 component:XML List Box Lite for Dynamic Flash Lite 2 application

    XML ListBox Lite is the Flash Lite UI component lets you
    create XML driven dynamic lists for your Flash Lite 2 mobile
    applications!
    XML ListBox Lite is a Flash component for Flash Lite 2.0
    application development for mobile phones. Creating a lightweight
    dynamic list box for Flash Lite application becomes as easy as a
    snap using this component. Now no more the Flash Lite application
    developers need to be worried about creating dynamically populated
    list box that will work on nearly every symbian series 60 models
    which support Flash Lite 2.0.
    XML ListBox Lite comes handy when you plan to create a
    dynamic list which is populated with the data sourced from a simple
    XML file , such creating a play list for your Flash Lite MP3 Player
    application, creating a list for a shopping catalogue etc.
    XML ListBoxLite is a complete solutions for creating
    customized xml driven dynamic lists in Flash Lite 2 mobile
    application development.
    The basic features of the component are:
    Create Unlimited Number of Tabs: XML ListBoxLite can populate
    any number of tabs and provides proper visualization and navigation
    of these tabs.
    Fully Functional Scrollbars: The scrollbars position ratio is
    auto adjusted by the number of tabs that appear in the list, which
    gives the users whether any tabs are left in the list to scroll.
    Display Tabs as per needs: This list component allows you to
    display any number of tabs from the range of 8, 4, 2 and 1, at any
    instance. This serves the need for example when you have more text
    to display you can choose 4 or 2 tabs so that you need not
    compromise on the content side.
    Customize the Look and Feel: You can set any color as
    parameters for different elements of this list component so that it
    will fit your application seamlessly.
    Virtually zero time to implement: This component does not
    require any extra programming in FlashLite 2.0 Action script to
    display your contents. Just update the xml list and it is ready for
    use.
    Lightweight and User friendly: XMLListBoxLite offers you
    great glossy look and advanced features within just 17 KB . The
    user experience is also magnetic.
    More details at:
    http://esspl.com/flashcomponents/xmllistboxlitehome.asp

    Hello there,
    I am have a similar kind of problem. I am trying to run a video on Pocket PC (WM5) using video.play() method on FlashLite 2.1. It works fine in Device Central and my Nokia mobile (symbian OS with default FlashLite 2.1). Video is obviously embedded in FlashLite 2.1 and was originally in *.3gp format.
    Can you please help me where I am going wrong or what am I missing ?
    As ever,
    Vinayak Kadam

  • Showing RSS feed in Dynamic Text box (with hyperlink)

    Hi all -
    I am currently trying to pull RSS data into a project for my first time and am trying to get 3 (potentially 4) boxes filled with rss data that will be updated. So far, I am going with Actionscript 3. So far I have the code below, but it puts data in a listbox. What is the easiest way to put the data in three dynamic text boxes inside a movie clip, so I have one for the title, one for description and one for link (shown as 'read more' text but a link using the url from the rss value)?
    I am really banging my head against the wall on this one and want to get it sorted asap, so any help would be GREATLY appreciated! I have also attached an image to show what I am trying to do:
    I also want to know if it's possible to show rss values only if they exist. For example, my xml feed currently only has 3 items that change, and i will be assigning these to boxes, but is it possible to display a fourth if it exists, and if it doesn't it just shows the first?
    My code so far:
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, onLoaded);
    var xml:XML;
    function onLoaded(e:Event):void
        xml = new XML(e.target.data);
        var il:XMLList = xml.channel.item.description};
        trace(il[1]);
             lb.addItem({data:il.description.text()
                                label:il.title.text()}):
    loader.load(new URLRequest("http://www.rssfeedhere.xml"));

    you would create a movieclip (exported for actionscript and class = rssItem) with 3 textfields and the display shown in your message and use something like:
    var loader:URLLoader = new URLLoader();
    loader.addEventListener(Event.COMPLETE, onLoaded);
    var xml:XML;
    function onLoaded(e:Event):void
        xml = new XML(e.target.data);
        var il:XMLList = xml.channel.item.description};
        for(var i:uint=0;i<il.length();i++){
            var mc:rssItem = new rssItem();
            addChild(mc);
            mc.x = 300*i%2;
            mc.y = 300*Math.floor(i/2);
            mc.titleTF.text = il[i].title.text();
            mc.descriptionTF.text = il[i].description.text();
            mc.readmoreTF.text = ?
    loader.load(new URLRequest(http://www.rssfeedhere.xml));

  • Problem in using the list box

    hi,
    i have developed a dynamic list box, in html using java script.i have taken two list boxes. the values of second list box depends on the value selected in the first list box. after selection i was moving to the next page,then after i was moving back to original page, then the value of the second list box is changing.so how to retain the value of the second list box.
    Help ASAP,
    thank you,bbye

    Either store it in the session scope, or pass it as a (hidden?) parameter along the request.

  • Display symetrical list box

    Hi
    all
    I have a value in list box like this.Its dynamic list box .it means im facthing all value of list box from database.
    partnumber/purchaseorder/workorder
    mel 2005=>555555=>PA720
    KDM-1087=>89898=>PA711
    assembly2005=>454543=>PA718
    1=>786=>PA721
    i would like to display it in tabular symmetrical format.
    can anybody tell me how can i achieve this.

    Say u r getting the vales in a resultset rs...
    use it as..
    <input type="listbox" name="ss" value="<%=rs.getString("PartNumber")%>=><%=rs.getString(purchaseorder")%>=><%=rs.getString("workorder")%>">

  • Display symmetrical LIST box

    Hi
    all
    I have a value in list box like this.Its dynamic list box .it means im facthing all value of list box from database.
    partnumber/purchaseorder/workorder
    mel 2005=>555555=>PA720
    KDM-1087=>89898=>PA711
    assembly2005=>454543=>PA718
    1=>786=>PA721
    i would like to display it like this.We can say in table kind of format.
    mel 2005     =>555555     =>PA720
    KDM-1087     =>89898          =>PA711
    assembly2005     =>454543     =>PA718
    1          =>786          =>PA721
    can anybody tell me how can i achieve this.
    thanx
    sanjay

    Say u r getting the vales in a resultset rs...
    use it as..
    <input type="listbox" name="ss" value="<%=rs.getString("PartNumber")%>=><%=rs.getString(purchaseorder")%>=><%=rs.getString("workorder")%>">

Maybe you are looking for

  • Return Order

    Hi guru's In my case-->Return orders"X"and "Y" both generated credit memos based on the quantity of the return order, even though the post goods issue quantity was less.  The credit memos had to be cancelled and the quantities in the return orders ch

  • [SOLVED] Makepkg was unable to build lib32-portaudio.

    Okay so i dusted off my old PS2 the other day and decided i wanted to play some old games for nostalgic sake when i came to realize it is still broken. So i looked for a decent emulator and found PCSX2. Now, i had some missing dependencies that neede

  • Impresion por PDF: agrupar

    Buenos días, ¿sabéis si es posible que al imprimir por PDF (Ventas/Impresión de documentos) varias facturas el programa sólo cree un PDF que las contenga todas? A nivel estándard genera un fichero PDF por factura. Gracias

  • Put In Perspective

    Hi, Occassionally, someone here points out that the 'horror stories' posted here are a very small percentage of Infinity installs...my experience supports that! I'm in the third week since Infinity installation and it's been stable and consistent at

  • How to get patches to official/mainline arch linux kernel?

    Hi, I'm maintainer of compcache PKGBUILD (compcache is ~ compressed virtual swap disk). For proper work it needs to apply some patches to kernel.... I know there is an alternative to create another PKGBUILD for a custom kernel, but this seems to me a