How do I populate a list box

I am using the drag a drop to create a list box. I would like to put my values in the list box. All the tutorials I've seen seem not to address the issue of drag and drop listboxes (where the list box is initialized automatically). Drag and drop list boxes are already populated with default values. I want to place my values in the list box. The generated code is uneditable and this is contributing to my problems.
Thanks

SizzlinJones wrote:
I have coded Swing several years back. I have migrated to other technologies since. I have assignment to create a Messaging application using Linda and eXist database. I really wanted to spend my time dealing with this distributed architecture rather than on GUI issues. I guess I'll just work on the GUI last if time permits.That's probably best. Get a prototype working, then interface it with a GUI at the end.

Similar Messages

  • How to populate a list box linked to selection in combo box?

    Hi All,
    I am a beginner in Xcelsius. I am having problem on how to populate a list box based on the selection on my combo box.
    I have a combo box and a list box.  The combo box value consist of Countries. Values are:
    Singapore
    Indonesia
    Thailand
    When I select, for i.e. Indonesia, I want to populate the list box with all the Postal Code of Indonesia. When I select Thailand, i want to do the same.
    Can anyone shed some lights on how to achieve this?
    My spreadsheet data is as follow
    Country         Postal Code
    Singapore     680123
    Singapore     680124
    Singapore     680125
    Indonesia     155123
    Indonesia     155124
    Indonesia     155125
    Indonesia     155126
    Thailand       333123
    Many Thanks,
    Harianto

    Hi,
    I am detailing the complete steps below:
    In the combobox select the entire range of Country while seeing the records from the Combobox, Xcelsius will automatically show the unique values in the selection.
    After that in the "Data Insertion" section for Combobox select the "Insertion Type" as "Filtered Rows" (please click on the question mark beside this option and it will show how the selection works).
    In the source select the postal code, in the destination select the range which will be used as a data source for the list box.
    This will resolve the concern. Please remember to select the question mark beside the "Insertion Type" option, it explains the working in specific details.
    Best of luck.
    Regards,
    Gourav

  • How do I use a drop-down list to populate a list box

    I'm using livecycle 8:
    I basically have a drop down list with many selections available. I want the function to be when they select from the drop-down the choice they made appears in a list box next to the drop-down box. If they choose to add additional selections from the drop-down list they will add to the list field as well. If anyone has seen one of those on-line job application sites where you have a list of qualities on the left and you can select them and they populate to a list on the right, That is basically what I want.
    I'm not too familiar with adobe quite yet and if you can break the process down as much as possible I would greatly appreciate it.

    Here are my two drop down lists. As you can see I build the second list dynamically based off the value of the year. I want to be able to assign my year to the value I select in this first drop down. How do I do that?? I only want to show games for the year I select. I currently have the year hardcoded to "2009" as you see below. How can i change that to be assigned to the JavaScript value i extract from the first select box?
    <select name="season">
    <option value='2009' selected>2009</option>
    <option value='2008'>2008</option>
    </select>
    <select name="gameselect">
    <%
    try
    String year = "2009";
    String connectionURL = "jdbc:mysql://localhost:3306/ElmwoodExpos";
    Class.forName("com.mysql.jdbc.Driver");
    Connection con = DriverManager.getConnection(connectionURL, "root", "thejedster");
    String sql = "SELECT GameId, GameDescription FROM Games WHERE Year = " + year;
    Statement s = con.createStatement();
    s.executeQuery(sql);
    ResultSet rs = s.getResultSet();
    while(rs.next())
    %>
    <option value="1"><% out.print(rs.getString("GameDescription"));%></option>
    <%
    catch(Exception e)
    %>
    </select>
    Thanks,
    Jed

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

  • How to set  width of List Box

    Hi,
    How do we set the width of List Box created dynamically. By default it sizes to the maximum length of the value populated in it.
    I need to maintain consistency in the width and trying to set the width.
    Any pointers are appreciated.
    Thanks,
    Naresh

    It seems to to be sized to the length of the largest value in the list, and disrupts formatting. This is the standard HTML behaviour. The only method available to you is to truncate the values being passed to the poplist. Investigation is underway to determine the impact, on UI and Translation issues, of having the framework truncate automatically.

  • How to move up the List Box for para. values in the "Edit Values" window?

    Hi,
    I am using Crystal Reprots 11.
    I create 10 subreports, and each subreport contains a Parameters Field.
    The 10 subreports are put in 10 footer sections in increasing order, i.e. subreport1, subreport2, subreport3, ..., subreport10.
    When I use "Print Preview" to take a look at the whole report, CR prompts a "Edit Values" window for selecting parameter values.
    Maybe because I created subreport3 & subreport4 after I completed other subreports, the List Box with the values required to select for subreport3 & subreport4 were located at the bottom of the "Edit Values" window.
    How to move List Box with the values required to select for subreport3 & subreport4 up to the proper location (based on the order of subreports) in the "Edit Values" window?
    Thank you in adavance.

    Hi,
    Yes, that is true. The subreport parameters are prompted in the order you insert the subreport.
    The only way to fix this is to save subreports from 5 through 10 (Right-click subreport > select Save Subreport as) first.
    So, now all you have is Subreports 1, 2 and 3. Go ahead and add the Subreports from 5 to 10 in order and the prompts should be in order too.
    -Abhilash

  • How to show value in list box on screen.

    Hey,
    I'm trying to write a little program to select a value from a listbox on a screen... 
    Filling the listbox, no problem.  But showing the value on screen, and using the selected value isn't working...
    So when i select a value, directly after the listbox 'closes', the selected value disappears...
    I read already different threads regarding this topic, but i don't see a solution :(.
    Below you find the code.  Anyone sees where the problem is?
    Screen number = 300.
    PROCESS BEFORE OUTPUT.
      MODULE status_0300.
      Module init_dropdown_box.
    PROCESS AFTER INPUT.
      MODULE user_command_0300.
    REPORT  ztesttom2                     .
    TABLES: zbadgelinks.
    TYPE-POOLS vrm.
    DATA values TYPE vrm_values WITH HEADER LINE.
    data: name type vrm_id.
    DATA  ok_code LIKE sy-ucomm.
    DATA save_ok LIKE sy-ucomm.
    DATA  init.
    DATA it_badgelinks LIKE zbadgelinks OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
      SELECT * FROM zbadgelinks INTO TABLE it_badgelinks.
      CALL SCREEN 300.
    *&      Module  status_0300  OUTPUT
    *       text
    module status_0300 output.
      SET PF-STATUS 'ST_0300'.
      SET TITLEBAR 'TB_0300'.
    endmodule.                 " status_0300  OUTPUT
    MODULE init_dropdown_box output.
      IF init is initial.
        name = 'LB_SEL_PC'.
        loop at it_badgelinks.
          values-text = it_badgelinks-description.
          values-key = it_badgelinks-id.
          append values.
        endloop.
        CALL FUNCTION 'VRM_SET_VALUES'
             EXPORTING
                  id              = name
                  values          = values[]
             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.
    endif.
    init = 'X'.
    ENDMODULE.
    *&      Module  user_command_0300  INPUT
    *       text
    module user_command_0300 input.
      CASE OK_CODE.
        WHEN 'BACK'. LEAVE TO SCREEN 0.
        WHEN 'EXIT'. LEAVE TO SCREEN 0.
        WHEN 'CANC'. LEAVE TO SCREEN 0.
        WHEN 'CB_CANCEL'. leave to screen 0.
        WHEN 'CB_OK'.
          READ TABLE it_badgelinks WITh KEY ID = it_badgelinks-id.
          IF SY-SUBRC = 0.
            MESSAGE I398(00) WITH 'ID:          ' it_badgelinks-id
                                  'Description: ' it_badgelinks-description.
          ENDIF.
        WHEN 'SEL_PC'.
          CALL FUNCTION 'VRM_GET_VALUES'
            EXPORTING
              id                 = name
            IMPORTING
              VALUES             = values[]
            EXCEPTIONS
              ID_NOT_FOUND       = 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.
      ENDCASE.
    endmodule.                 " user_command_0300  INPUT
    Thanks in advance,
    Kind Regards,
    Tom

    Hi,
    Please check the below modified code of yours.
    Now the value is retained in the list box.
    REPORT  ztest_cert.
    TABLES: t511t.
    TYPE-POOLS vrm.
    DATA: lb_sel_pc(80).
    DATA values TYPE vrm_values WITH HEADER LINE.
    DATA: name TYPE vrm_id.
    DATA  ok_code LIKE sy-ucomm.
    DATA save_ok LIKE sy-ucomm.
    DATA  init.
    DATA it_t511t  LIKE t511t  OCCURS 0 WITH HEADER LINE.
    START-OF-SELECTION.
      SELECT * FROM t511t  INTO TABLE it_t511t WHERE sprsl = 'EN'.
      CALL SCREEN 300.
    *&      Module  status_0300  OUTPUT
          text
    MODULE status_0300 OUTPUT.
      SET PF-STATUS 'ST_0300'.
      SET TITLEBAR 'TB_0300'.
    ENDMODULE.                 " status_0300  OUTPUT
    MODULE init_dropdown_box OUTPUT
    MODULE init_dropdown_box OUTPUT.
      IF init IS INITIAL.
        name = 'LB_SEL_PC'.
        LOOP AT it_t511t.
          values-text = it_t511t-kotxt.
          values-key = it_t511t-konst.
          APPEND values.
        ENDLOOP.
        CALL FUNCTION 'VRM_SET_VALUES'
          EXPORTING
            id              = name
            values          = values[]
          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.
      ELSEIF init = 'X'.
      <b>  lb_sel_pc = values-text.</b>
      ENDIF.
      init = 'X'.
    ENDMODULE.                    "init_dropdown_box OUTPUT
    *&      Module  user_command_0300  INPUT
          text
    MODULE user_command_0300 INPUT.
    data: l_code like values-key.
      CASE ok_code.
        WHEN 'BACK'. LEAVE TO SCREEN 0.
        WHEN 'EXIT'. LEAVE TO SCREEN 0.
        WHEN 'CANC'. LEAVE TO SCREEN 0.
        WHEN 'CB_CANCEL'. LEAVE TO SCREEN 0.
        WHEN 'CB_OK'.
          clear: it_t511t.
         lb_sel_pc = l_code.
          READ TABLE it_t511t WITH KEY konst = lb_sel_pc.
          IF sy-subrc = 0.
            CLEAR values.
            values-key = it_t511t-konst.
            values-text = it_t511t-kotxt.
            MESSAGE i398(00) WITH 'ID:          ' it_t511t-konst
                                  'Description: ' it_t511t-kotxt.
          ENDIF.
        WHEN 'SEL_PC'.
          CALL FUNCTION 'VRM_GET_VALUES'
            EXPORTING
              id                 = name
           IMPORTING
             VALUES             = values[]
            EXCEPTIONS
              id_not_found       = 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.
          ELSE.
    <b>        l_code = lb_sel_pc.
            READ TABLE it_t511t WITH KEY konst = lb_sel_pc.
            CLEAR values.
            values-key = it_t511t-konst.
            values-text = it_t511t-kotxt</b>.
          ENDIF.
      ENDCASE.
    ENDMODULE.                 " user_command_0300  INPUT
    Thanks & Regards
    Praba

  • How to create an editable List box

    Hi,
    Can any body help me out in creating an editable list box, I mean the options should be editable in the listbox. Thanks in advance.

    I mean, you have dropdown list box with some options.
    They will not be editable in the normal scenario. I want one of the options to be editable, similar to a textbox , when selected.
    Is that possible in JSF? If any one could help with Javascript also, its fine for me.

  • How to add record in List Box in Screen Painter(SE51) ?

    I am not able to add record in List box in Screen Painter using se51 Transaction code.
    Regards,
    Nirav Desai

    Dear All,
        I found the solution.
    If you are facing same problem , follow the bellow steps.
    1. Declare in report.
    TYPE-POOLS: VRM.
    DATA: NAME TYPE VRM_ID,
    LIST TYPE VRM_VALUES,
    VALUE LIKE LINE OF LIST.
    2. IN PBO Event.
    clear: list.
    NAME = 'TXT_PERIOD'.    " your screen field name
    VALUE-KEY = '1'.
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST.
    VALUE-KEY = '2'.
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    VALUE-KEY = '3'.
    VALUE-TEXT = 'LINE 3'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING ID = NAME VALUES = LIST.
    Regards,
    Nirav Desai

  • How to add Tabs and List Boxes in Webi Report in Reporting Area(Not Report Filters & Input Controls)

    Hi All,
    I have a requirement to use some components called List Box and Tabs in my WebI report for presenting the information by dynamic dimension and measure selection using list box and segregate information by using Tabs as in below image.
    Image was prepared in MSPaint not executable webi report.
    Is it possible to integrate the list box and tabs into Report Zone in BO Webi? as show in below image?
    Thanks in Advance
    Muralidhar Reddy N

    Hello Muralidhar Reddy,
    The exact tool for your requirement is SAP BO Dashboard or SAP BO Design studio. WebI is a tool for ad-hoc reporting tool and we have limited functionalities to make dashboards using webI. You can have all those chart options in WebI and you can use Input controls or drill filters for restricting data. But you cannot have these selection components in reporting area. Tabs as shown in above post, you can have in bottom of the report.
    find below a good example of dashboard using WebI
    http://blog.davidg.com.au/2011/04/webi-as-dashboard.html
    hope it helps
    Regards,
    Nikhil Joy

  • How to prevent multi-column list box showing an extra column

    I am using a multi-column list box to display data and to allow the user to enter new values. More columns are used than are actually displayed within the bounds of the listbox control. Using an event structure the user is able to scroll left and right along the columns of the list box to select the appropriate field. I am using the 'Edit Position' property to highlight the particular field that the user is selecting. This technique works well and the listbox scrolls left and right to display the selected fields correctly.
    If the listbox has, say, 10 columns with only 5 being visible within the displayed width, then I clamp the Edit Position to a maximum column value of 9 to prevent the list box from continuing to scroll right into unused columns. This works fine, except that when the user scrolls to the 10th column, the listbox control always shows a blank 11th column. The 11th column cannot be selected. It would appear that this is default behaviour for the listbox control in that an additional column is always displayed relative to the Edit Position. In my particular application it is untidy to have this blank column appearing. I have tried a workaround by programmatically writing to the 'TopLeft' property of the listbox. This partially works by ensuring that the blank 11th column is never displayed, however, despite the Edit Position being correct to select the 10th column, the field in the 10th column is no longer highlighted and the user cannot enter a new value.
    Does anyone know of a method for preventing the blank additional column from appearing?

    Ok - I have attached an example which demonstrates the issue. This is produced with LV 2012. Open the project and then the 'Multi column listbox.vi'. Run the vi and use the right/left arrows to move between cells in the listbox. Observe that unused (unwanted) columns are always displayed to the right.
    Thanks for any help..
    Attachments:
    Test Multi column listbox.zip ‏62 KB

  • How do I populate one Combo box based on input from another

    Hi,
    I have a dynamic Combo box populated from a database. Now I want to use the onChanged event to dynamically populate a second combo box on the same page.
    Any ideas on how to do this?
    Robert
    [email protected]

    Here is an example:
    let us consider it not coming from the database:
    <html>
    <head>
    <title>New Page 1</title>
    <script>
    function popSub()
    var n = 1;
    var mainValue;
    mainValue = document.test.main.options[document.test.main.selectedIndex].value ;
    if (mainValue=="Age" )
                        document.test.sub.options[n].value = 'below18';
                        document.test.sub.options[n].text = 'Below 18';
                        n =     n + 1;
    if (mainValue=="Age" )
                        document.test.sub.options[n].value = 'over18';
                        document.test.sub.options[n].text = 'Over 18';
                        n =     n + 1;
    if (mainValue=="Sex" )
                        document.test.sub.options[n].value = 'male';
                        document.test.sub.options[n].text = 'Male';
                        n =     n + 1;
    if (mainValue=="Sex" )
                        document.test.sub.options[n].value = 'female';
                        document.test.sub.options[n].text = 'Female';
                        n =     n + 1;
    </script>
    </head>
    <body>
    <form method="POST" name="test">
    <p><select size="1" name="main" onClick="popSub()">
    <option value="Age">Age</option>
    <option value="Sex">Sex</option>
    <option selected>select one</option>
    </select></p>
    <p><select size="1" name="sub">
    <option value=""></option>
    <option value=""></option>
    <option value=""></option>
    </select></p>
    <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
    </form>
    </body>
    </html>
    If it coming from the database then you have to write the javascript function in jsp as follows:
    out.println('<script language="JavaScript">');
    out.println('function popSub()');
    out.println('{');
    out.println('var n = 1;');
    out.println('var mainValue;');
    out.println('mainValue = document.test.main.options[document.test.main.selectedIndex].value ;');
    // start one for loop from 1 to record count
    out.println('if (mainValue=="' + valuefrom the resultset + '")');
    out.println('{');
    out.println("document.test.sub.options[n].value = '" + value from the result set +"';");
    out.println("document.test.sub.options[n].text = '"+value from the result set+"';");
    out.println('n=n+1;');
    out.println('}');
    // end of the for loop
    finish the javascript function using out.println

  • How does a multiple-select list box record its value?

    I assumed that the value of a MSLB would be based on all the values selected, similar to SharePoint column?
    I have a MSLB with 15 choices and I want to hide a section if 2 of the MSLB options are not selected. I have tried a rule on the section using
    MSLB Doesn't Contain "AUD-Public Co"  OR
    MSLB Doesn't Contain "AUD-Public Accountable"  THEN  HIDE.
    This doesn't work, if I change it to Is Equal To, it works but it is in reverse to what I want. If I change it to Is Not Equal To, it doesn't work at all, it stays hidden all the time.
    I created a Text box to be set when the MSLB is checked and it only displays the most recent selection and doesn't clear when all items in the MSLB are cleared. I read a few other postings that were trying to concat into a textbox but this is still only
    showing the last selected item.
    I just want to hide the section if 2 of the MSLB are NOT checked. I am hoping I don't have write a rule using Is Equal To for every option?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

    My next question would be, if I promote this field to a column in a SP Doc Lib, how will it be displayed. We are hoping it would be the same as multi select choice field on a regular SP list so we can filter by any of the values?
    Or perhaps there is a better way to accomplish this?
    Stunpals - Disclaimer: This posting is provided "AS IS" with no warranties.

  • How can I place a "List box" on a report?

    XI31 SP3
    Similar to input controls,  however, I want to be able to show a webi report as a dashboard within infoview (dashboard tab),  but I need a "list/combo" box for user interaction.
    Is there a way to do this?

    Hi Michael,
    Left panel input controls cannot yet be inserted into WebI report, but WebI allow to use report elements as input controls.
    You can therefore insert a table in your report, and use it as a selection list : you just need to insert and design a vertical or horizontal table from a single dimension, and use it as an input control : select the table and start report element input control wizard from the contextual menu command called Define as input control....
    BTW, You can also use this feature on charts.
    Hope that helps,
    David.

  • How do i populate a dropdown box in jsp?

    Can someone write some code that takes 15 string values (passed to the jsp in the URL) and puts them in a dropdown select box (or combo box i think they're called).
    I've trawlled around looking on the forums but I cant get my code to work the way I need it to.
    Cheers

    I'll assume that the values are passed in as parameters named param0, param1 etc:
    <select name="mySelect">
    <%
    for(int idx = 0; ; idx++)
      String param = request.getParameter("param" + idx);
      // We've run out of parameters
      if(param == null)
        break;
    %>
      <option value="<%= idx %>"><%= param %></option>
    <%
    %>
    </select>This will generate some HTML along the lines of:
    <select name="mySelect">
      <option value="0">Value 0</option>
      <option value="1">Value 1</option>
      <option value="2">Value 2</option>
    </select>If your values contain HTML markup (<, >, etc.) it won't work so well but that's easily fixed.
    Hopefully it won't be too hard to change this to meet your requirement.
    Hope this helps.

Maybe you are looking for