List box display depand upon another list selection

hi all
i m trying to generate a listbox depanding upon the selection of first list box. like if i select option 1 in first listbox it should display a database table in other list box, if 2nd then display other db table & so on.
is it possible.
plz give some suggestion or code
regards

in the list box selection event call submit function [\b]and pass the value to DB which queries against that value and populates the required list box.

Similar Messages

  • List Box display to synchroniz​e with Scroll bar.

    I will like to know if anyone here can help to amend or advise on the attached VI in order to allow the List Box display to synchronize with the Scroll bar.
    As the VI is in run mode, i would like to see 9.CD, 10.Troja, 11. Red... and so on to be displayed as it is being executed.
    Thanks.
    Attachments:
    try.vi ‏13 KB

    Hi Gelb,
    Glad to hear you've got it working
    I realised afterwards that my code will not work correctly if the last line is partially hidden, ie the list box does not display an exact number of lines. So I've added a +1 after the array size function to correct this, see attached vi.
    You'll notice that I read the NumRows property of the listbox - I've done this so that if you decide to change the listbox height the code will still work without you having to go in and change anything. In your code you would have to change the constant (currently a 7) before the comparison primative to the new height. Also, in my new vi I've assumed the listbox height isn't going to change during the time it gets populated so I've move the NumRows property out of the for loop and read it only once - saves a bit of time
    Using a for loop with auto indexing rather than a while loop also means that I don't need to index the input array every time or worry about when the loop will stop.
    Hope this all helps
    Dave
    Message Edited by DavidU on 06-26-2008 08:59 AM
    Attachments:
    Scroll Listbox 2.vi ‏15 KB

  • How do you get different check box fields to display based upon a list box selection?

    I am a relative newbie with LifeCycle Designer ES using v.8.2.1 to create interactive forms to replace manual hardcopies.  I am working on a form that has a few pull down list boxes.  I want different check box fields to display based upon the selection of an item from one of the pull down lists.
    Any guidance on the best way to accomplish this would be greatly appreciated.

    Hi,
    Here is a sample with script in the change event of the dropdown. You may want to clear previous checkbox choices once the subform is hidden.
    It is good to group objects in a subform - that way you only need to hide the subform and not each object in turn.
    Good luck,
    Niall

  • Limit List-box displayed entries

    Hi.
    This is the story:
    I have created a Dialog scren and defined a field (let's call it FieldA) based on db field (e.g. PA0001-PERSG).
    Now since the db field has Check-table, FieldA has F4 functionality attached.
    Since I don't fancy the F4 functioanality (it takes too long to come up and a lot of resources) I changed FieldA type to "Listbox".
    Now all the values that would appear in the F4 screen are showing as a List-box (AKA Drop-down or Combo-box).
    So far so good, but the problem is this:
    I don't want all the possible entries in my List-box, just a few.
    I know how to control it in the F4 but not as a List-box.
    Any ideas anyone?
    Regards.
    Ayal.

    Hi....
      Why should u r not trying this...
    In the PAI event of that screen...
    > FIELD F1 MODULE create_dropdown_box.
    And in that module....
    >MODULE create_dropdown_box INPUT.
    >
    >  TYPE-POOLS : vrm.
    >
    >
    > DATA : BEGIN OF f1_info OCCURS 0 ,
    >               f1_ac(20) ,
    >         END OF f1_info .
    >
    >  DATA : vid TYPE vrm_id.
    >  DATA : itab1  TYPE vrm_values,
    >              itab_1 TYPE vrm_value .
    >
    >  REFRESH f1_info.
    >
    >    f1_info-f1_ac = 'ENTRY1' .
    >    APPEND f1_info .
    >
    >     f1_info-f1_ac = 'ENTRY2' .
    >    APPEND f1_info .
    >
    >     f1_info-f1_ac = 'ENTRY3' .
    >    APPEND f1_info .
    >
    >   vid = 'F1'.
    >
    >  LOOP AT f1_info.
    >    itab_1-key  = f1_info-f1_ac .
    >    itab_1-text = f1_info-f1_ac .
    >    APPEND itab_1 TO itab1.
    >  ENDLOOP.
    >
    >
    >  CALL FUNCTION 'VRM_SET_VALUES'
    >    EXPORTING
    >      id                    = 'F1'
    >      values                = itab1
    >  EXCEPTIONS
    >    ID_ILLEGAL_NAME       = 1
    >   OTHERS                = 2
    >            .
    >  IF sy-subrc <> 0.
    >  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    >          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    >   ENDIF.
    >
    >  REFRESH itab1.
    >
    > ENDMODULE.                 " create_dropdown_box  INPUT
    Here actually iam used hard coding.. for entries..its good for less than 5 or 6 entries...
    You can modify code according to ur requirement...
    and get back to me if u want any clarification on this...
    Thanks,
    Naveen.I
    Edited by: Naveen Inuganti on Jul 1, 2008 11:16 AM

  • How to auto populate data from one list in SharePoint 2007 into another list based on a key value?

    Hi,
    As a part of new requirement in my project I am supposd to work on SharePoint 2007. I have one List (BCExtract - Main list) with all data related to an Application (like ID, name, app manager RTO etc).
    I have created another list which has form to be filled by a user (with details about his/her applications). My requirement is that when the user enters AIT ID then the page should refresh (probably after hitting enter) and other details like Application
    name, RTO etc which is present in another list gets auto populated depending on the AIT ID (unique column) entered so reduce the burden on the user.
    Please suggest me how this can be done. I do not have permission for obtaining SharePoint Designer and I do not know JQuery. Infopath is ok but if this can be done through SharePoint 2007 alone then it would be great.
    Thanks....

    Hello,
    You can either use jquery/jaavscript or infopath form to achieve this. There is no default way to do this.
    I would suggest jquery because you can put script in newform/editfor.aspx page using content editor webpart. Refer this link for jquery:
    To get value from list:
    http://social.technet.microsoft.com/Forums/en-US/ac47fe2a-ccb6-4f5b-b274-703aecc6cb0a/get-list-items-in-sharepoint-2010-by-using-jquery
    http://www.robertkuzma.com/2010/08/read-list-items-using-sharepoint-web-services-and-jquery/
    To set value in column:
    http://paulgalvinsoldblog.wordpress.com/2009/06/13/quick-and-easy-use-jquery-to-set-a-text-field%E2%80%99s-value-on-a-sharepoint-form/
    http://spservices.codeplex.com/discussions/468729
    If you use infopath form, then you need to create two data connection to get data from both lists. Later you can set value in fields based on selection using rule. This can be possible without code.
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Displaying list box field in PDF

    I have exported to an interactive PDF which contains radio buttons, text fields, combo boxes and list boxes. This form is to be viewed on an iPhone 5 in Adobe Reader. All the form objects work except for the combo/list boxes. They appear and a selection can be made but the selection is not displayed in the box. I have tried to enlarge the box, thinking it was too small to display the text.
    I have tested it on an Ipad 3 and an android phone and it doesnt work but it does work on a desktop. The reader app is up-to-date on all devices. This is how it displays (sorry about the quality). The option within the list box are "nothing" ie space, Y and N. Before a selection is made the arrow is displayed but after a selection is made the box is blank.
    Can someone please tell me if there is a compatibility issue or a work around for this problem.
    Thanks!
    Gemma

    One more thing: There is a workaround for those who own Acrobat for Windows or Mac. You should be able to open forms with this problem in Acrobat, modify the default values in these fields, return the default values in those fields to their desired state and then resave the document from Acrobat (windows or mac). This forces Acrobat to save the fields in a way that the mobile Readers can properly display and edit. While we absolutely should fix the bug to properly display fields created by InDesign, this workaround may be useful for others so I am posting it here.

  • Multiple-Selection List Box Values in Multiple Columns

    I am using InfoPath 2010 with SharePoint 2013. I have a form with a multiple-selection list box which has A LOT of choices. Instead of displaying all the choices in one column, is it possible to display the values of my list box in several
    columns? 

    Hi Andrea,
    I agree with Brij, one multiple-selection list box is associated with one list field, we cannot use the one multiple selection list box value for other multiple selection list boxes, we need to create multiple choices for each multiple-selection list box
    control in InfoPath form.
    Thanks
    Daniel Yang
    TechNet Community Support

  • Select multiple items from a list box as values for a parameter of crystal report and Oracle procedure

    -  I have a  Product list box (asp.net) used as multiple selected values for  a parameter. 
    - The Product ID is defined in the Oracle procedure as NUMBER data type. 
    -  In my crystal report, I have a parameter field allow multiple values as p_product_id type as Number.  This is the code in my Record Selection Formula for the report:
    ({?p_product_id}[1] = -1 OR {Procedure_name.product_id} in {p_product_id})
    -  In C#, this is my code
    List<decimal?> productUnit = new List<decimal?>();
    int counter = 0;
    decimal prod;
    for (int i = 0; i < lstProducts.Items.Count; i++)
                  if (lstProducts.Items[i].Selected)
                                if (decimal.TryParse(lstProduct.Items[i].Value, out prod))
                                    productUnit.Add((decimal?)prod);                              
                                    counter++;
           if (counter == 0)
                       productUnit.Add(-1);                      
    ReportingDAO rDataFactory = new ReportingDAO();
    retVal = rDataFactory.GetProductReport(productUnit);
    public CrystalDecisions.CrystalReports.Engine.ReportDocument GetProductReport(List<decimal?> productUnit)
              CrystalDecisions.CrystalReports.Engine.ReportDocument retVal = new rptProductDownload();
              ReportLogon rptLog = new ReportLogon();
             rptLog.Logon(retVal, "RPT_PRODUCT_DOWNLOAD");
             retVal.SetParameterValue("p_product_id", productUnit); 
    I keep having the "Value does not fall within the expected range" when I debug.  My question is, is the data type I used for procedure/Crystal report/ and C# correct ?  I always have problem with the data type.  Any help would be
    appreciated
    Thank you

    Hi progGirl,
    Thank you for your post, but Microsoft doesn't provide support for CrystalReport now. Please post your question in SAP official site here:
    http://forums.sdn.sap.com/forum.jspa?forumID=313
    Thank you for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Selected value in dropdown list box

    hi forums,
      how to capture the selected value in drop down list box and how it will link with the table.
    layout:
        <htmlb:dropdownListBox  id = "d1%>"
                                nameOfKeyColumn = "vbeln"
                              nameOfValueColumn = "vbeln"
                             table       = "<%=it_sales%>" />
    in dropdown list box,how do i capture the selected values.
    OnInitialization:
    Select vbeln from vbak
      into corresponding fields of table it_sales.
    regards,
    ravi.

    hi Ravikiran,
       In button even,we r mension the event_type = 'click'.
    but in dropdownListBox what is the event_type.
    i tryed like this.
    DATA : EVENT TYPE REF TO CL_HTMLB_EVENT.
    ***this is for button************
    *event = CL_HTMLB_MANAGER=>get_event( RUNTIME->SERVER->REQUEST ).
    *IF event->NAME = 'button' AND event->event_TYPE = 'click'.
    DATA : button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
    button_event ?= event.
    *ENDIF.
    *********this is for dropdownListBox**********
      event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
      IF event->name = 'dropdownListBox' AND event-         >event_type = 'selection'.
           DATA :  dd_listbox_event TYPE REF TO CL_HTMLB_EVENT_SELECTION.
           dd_listbox_event ?= event.
    CASE EVENT->ID.
    when 'id1'.
    CALL METHOD REQUEST->GET_FORM_FIELD
          EXPORTING
            NAME  = 'id1'
          RECEIVING
            VALUE = SEL.
    WHEN 'myButton'.
       CALL METHOD REQUEST->GET_FORM_FIELD
         EXPORTING
           NAME  = 'id1'
         RECEIVING
           VALUE = SEL.
    ENDCASE.
    endif.
    with regards,
    ravi.

  • 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")%>">

  • Multiple Selections in List Box

    Hello all. I am new to the Adobe Family and especially PDF designing, so please bear with me. I have gone through the Help section, and did searches on here to find an answer but have not had luck. I need to make a list box that the user chooses multiple choices. As in some forms that have if you hold down the CTRL button you can choose multiple choices. During my searches I keep finding coding lines. I'm not sure how to do coding at all, I'm using the Designer 7 template forms where I can choose the icon, and then go over to Object, Value, etc. Is what I want to do even possible with Designer 7? If so, how can I make this work. If not, what program would I need to use? Thank you in advance for your help!

    When I look at either a list box or a drop-down list and look at the "Field" tab I do not see a "Allow Multiple Selection" checkbox. I am using designer version 7.0.041126.0. Is it not supported in this version or am I missing something.
    Thanks

  • Filtering values in a dropdown list box

    Hello Team
    In the BSP application CRM_IC, we want a drop down list box to be filled based on the entry selected from another dropdown list box. We have all the entries for the second drop down box in ABAP internal table .However, we do not want a server round trip to happend in doing so. Thus we have used the attribute 'Onclientselect' and we are trying to call a java script function call on this event to filter this ABAP internal table . In this function, we would like to fill the contents of the second dropdown list box after reading the contents of the first dropdown list box. Please advice us as to how this can be achieved. Basically, we observed that ABAP server side script is not executed in the java function.
    Thanks
    Rony

    Rony,
    I have used the following technique to synchronize the
    contents of two drop down list boxes.
    <b>Scenario:</b>
    The selection in listbox ddlbxSystemEquipNum, which I
    will call "A", determines the contents of listbox
    ddlbxModuleEquipNum, which I will call "B".
    I use a JavaScript array to shadow the ABAP internal
    table containing the possible values for listbox B.
    When the page is initially displayed, listbox B is
    populated from the ABAP internal table.
    When a new selection is made in listbox A, I use the
    onClientSelect event to call a JavaScript function,
    updateModuleList(), to update the contents of listbox B
    from the JavaScript shadow array based on the selected
    value in listbox A.
    <b>Code Excerpts:</b>
    <u>Declare the JavaScript shadow array and listbox B update function</u>
    <script language="javascript" type="text/javascript">
        var moduleArray = new Array();
        function updateModuleList() {
            var selSystem = frmNrg1100.ddlbxSystemEquipNum;
            var selModule = frmNrg1100.ddlbxModuleEquipNum;
            // Get selected system equipment number
            var selected_system =
                    selSystem.options[selSystem.selectedIndex].value;
            // Clear module select options
            selModule.options.length = 0;
            // Add module select options for the selected system
            var j = 0;
            for (var k = 0; k < moduleArray.length; k++) {
                if ( (selected_system == moduleArray[k].system) ||
                                         moduleArray[k].system == "") {
                    selModule.options[j++] = new Option(moduleArray[k].text,
                                   moduleArray[k].value,
                                   moduleArray[k].selected) ;
    </script>
    <u>Specify the onClientSelect event handler on list box A</u>
    <htmlb:dropdownListBox
        id = "ddlbxSystemEquipNum"
        width      = "400"
        onClientSelect = "updateModuleList()"
    <u>ABAP and JavaScript to populate internal table and shadow array of possible values for listbox B</u>
    <%
    loop...
            wa_module_options-system   = wa_customer_tool-equipment_num_t.
            wa_module_options-text     = tool_list_text.
            wa_module_options-value    = wa_customer_tool-equipment_num_m.
            wa_module_options-selected = selected.
            append wa_module_options to module_options.
    %>
    <script language="javascript" type="text/javascript">
        // Add all possible Module select options to a JavaScript array of objects
        moduleArray[moduleArray.length] = {  system:"<%=wa_module_options-system %>",
                                               text:"<%=wa_module_options-text %>",
                                              value:"<%=wa_module_options-value %>",
                                           selected:"<%=wa_module_options-selected %>" } ;
    </script>
    <%
    endloop.
    %>
    Hope this helps.
    Regards,
    Shawn

  • Is there a way to fix ipod touch screen display problem with song list?

    I was wondering if anybody has had this problem? I have an ipod touch 64gig 5th gen for probably about 2 years. I hardly use it because I have it as a back up ipod until primary one dies. This is the first time I came across this problem. Upon turning on device, the first artist/song list I choose displays correctly. Once I start choosing any other artist/song list afterwards, the display for the 1st artist/song list re-appears. If the song list is only a single song to 3-4 songs it will display correctly. Any other song list I choose that consist more than 5 songs, the first artist/song list re-appears on screen like the display is messed up.
    For example: Upon turning on device, I choose Aaliyah with a list of 9 songs displaying.
    Upon trying to select a different artist and song, for example I choose Nachtmar with a  list of 20 songs.
    The Aaliyah with the list of 9 songs re appears in place of the song list I am attempting to choose. The songs play and it works, but the display is incorrect. Why is it doing this? Does anybody have this problem? I have tried resetting and it has currently been updated. I have came across this problem just very recently a couple of days ago. I have had a couple of hard resets requiring to erase all data in the past and I don't want to go that way again because I have about 3,500 songs. I have never experience this problem before in the past. I just want it to display the current list of songs. It's inconvenient having to type in every song while playing in the car instead of being able to easily pick an individual song.

    I have this problem too and it drives me crazy. When I view my ipod, I don't want to see a list of the first 8 songs in my ipod library. I just want to see the current song playing. It's like the ipod display goes into some type of "sleep" mode while your music plays,and the display defaults to show the first few songs in your ipod touch library, even though none of those songs are currently being played. I have to take the time to either flip the ipod over a couple of times in order for that list to disappear just to see the current song playing.
    This is an example of what I see on my display after the current song begins playing. These are the first songs in my ipod library. To get rid of this view, I have to either shake the ipod or flip it over a couple of times and the current song is now displayed, allowing you to see the current song, also allowing you access to the arrows to either fast forward or playback/reverse. On the display, the songs are in a grid or table format (unable to show that here).
    Acoustic Soul
    Aaliyah
    Adventers on the Wheels
    Adventures in Paradise
    After Tonight
    Will Downing

  • How to change color of list box highlighting in Acrobat 9 Pro?

    When you create a list box in Acrobat 9 Pro you select the default value.  That default value displays on the form in a highlighted color.  Does anyone know how to change the color of the highlight or ideally make it no color?  Thanks.

    When you create a list box in Acrobat 9 Pro you select the default value.  That default value displays on the form in a highlighted color.  Does anyone know how to change the color of the highlight or ideally make it no color?  Thanks.

Maybe you are looking for

  • USB 6009 Signals Readings

    Hello, I'm using USB 6009 to read signals from PMT and other equipment for experiments and I have a couple of questions: 1. Is it possible to read a signal with out DAQ assist? I've looked around the forums and haven't seen any relevant material. 2.

  • C9058A-002 Duplexer - Looking for another model of printer to use it on

    Now that my OfficeJet J6450 is no longer operational, I was wondering if anyone knows of any other current models of all-in-one type printers that the C9058A-002 Duplexer (that came with the J6450) could be used on. I've tried researching it with no

  • Printer to www connection failure.

    Hi I am having a problem connecting my printer to the www for device updates and to send ink status to hp connected. It has been working fine and now it fails. It has had no changesd made to either the router settings network as a whole or the printe

  • This is a windows issue that people cant seem to help me with

    I am a iMac owner but I have a Windows desktop I am trying to reformat for business use. When I go to reformat it after awhile I get 'serenum.sys is corrupted press any key to continue' then it all fails and I have to restart. can anyone help me out

  • How to get name of person from user id

    Gurus, I am working on an extractor based on FM and in one of the tables we have the user information saved in the form of SAP ID. What is the best way to get the name of the person from the user id either in the ECC or on the BW side? Thanks. Thanks