Number of options selected in multiple selection

Hi,
I have a multiple selection, how can i get the number of options selected from this multiple selection?
So that i can change CHART width accordingly?
For example, if i choose one option, chart width = 150
if i choose two options, chart width = 300
thanks for the reply.
wcy

Hi
If your using standard charts then I gues the easy way would be to have multiple charts and make them conditional on INSTR(:P_ITEM, ':') + 1, this would give you the number of items in the string generated by the multi-select list.
If you are building XML in PL/SQL then you could do this dynamically in one chart.
You could also try having hidden item defined as INSTR(:P_ITEM, ':') + 1 and then use the &P_HIDDEN_ITEM. substitution in the chart width field. I have no idea if this would work but you could give it a try.
Cheers
Ben
http://www.munkyben.wordpress.com
Don't forget to mark replies helpful or correct ;)

Similar Messages

  • How to disable the SELECT-OPTINS multiple selection screen's Ranges options

    Hi this is sekhar,
                      I have used the Select-options: statement with 'No-Interval' option. Now I need to restrict the user not to enter the values in the Ranges column of multiple selection screen. How can I do it....

    You can also refer this code as below : CHECK OUT SELECT OPTION sel_1_0.
    *& Report  ZTESTREP
    REPORT  ztestrep.
    Include type pool SSCR
    TYPE-POOLS sscr.
    Define the object to be passed to the RESTRICTION parameter
    DATA restrict TYPE sscr_restrict.
    Auxiliary objects for filling RESTRICT
    DATA opt_list TYPE sscr_opt_list.
    DATA ***      TYPE sscr_***.
    Define the selection screen objects
    First block: 3 SELECT-OPTIONS
    SELECTION-SCREEN BEGIN OF BLOCK block_0 WITH FRAME TITLE text-bl0.
    SELECT-OPTIONS sel_0_0 FOR sy-tvar0.
    SELECT-OPTIONS sel_0_1 FOR sy-tvar1.
    SELECT-OPTIONS sel_0_2 FOR sy-tvar2.
    SELECT-OPTIONS sel_0_3 FOR sy-tvar3.
    SELECTION-SCREEN END   OF BLOCK block_0.
    Second block: 2 SELECT-OPTIONS
    SELECTION-SCREEN BEGIN OF BLOCK block_1 WITH FRAME TITLE text-bl1.
    SELECT-OPTIONS sel_1_0 FOR sy-subrc.
    SELECT-OPTIONS sel_1_1 FOR sy-repid.
    SELECTION-SCREEN END   OF BLOCK block_1.
    INITIALIZATION.
    Define the option list
    ALL: All options allowed
      MOVE 'ALL'        TO opt_list-name.
      MOVE 'X' TO: opt_list-options-bt,
                   opt_list-options-cp,
                   opt_list-options-eq,
                   opt_list-options-ge,
                   opt_list-options-gt,
                   opt_list-options-le,
                   opt_list-options-lt,
                   opt_list-options-nb,
                   opt_list-options-ne,
                   opt_list-options-np.
      APPEND opt_list TO restrict-opt_list_tab.
    NOPATTERN: CP and NP not allowed
      CLEAR opt_list.
      MOVE 'NOPATTERN'  TO opt_list-name.
      MOVE 'X' TO: opt_list-options-bt,
                   opt_list-options-eq,
                   opt_list-options-ge,
                   opt_list-options-gt,
                   opt_list-options-le,
                   opt_list-options-lt,
                   opt_list-options-nb,
                   opt_list-options-ne.
      APPEND opt_list TO restrict-opt_list_tab.
    NOINTERVLS: BT and NB not allowed
      CLEAR opt_list.
      MOVE 'NOINTERVLS' TO opt_list-name.
      MOVE 'X' TO: opt_list-options-cp,
                   opt_list-options-eq,
                   opt_list-options-ge,
                   opt_list-options-gt,
                   opt_list-options-le,
                   opt_list-options-lt,
                   opt_list-options-ne,
                   opt_list-options-np.
      APPEND opt_list TO restrict-opt_list_tab.
    EQ_AND_CP: only EQ and CP allowed
      CLEAR opt_list.
      MOVE 'EQ_AND_CP'  TO opt_list-name.
      MOVE 'X' TO: opt_list-options-cp,
                   opt_list-options-eq.
      APPEND opt_list TO restrict-opt_list_tab.
    JUST_EQ: Only EQ allowed
      CLEAR opt_list.
      MOVE 'JUST_EQ' TO opt_list-name.
      MOVE 'X' TO opt_list-options-eq.
      APPEND opt_list TO restrict-opt_list_tab.
    Assign selection screen objects to option list and sign
    KIND = 'A': applies to all SELECT-OPTIONS
      MOVE: 'A'          TO ***-kind,
            '*'          TO ***-sg_main,
            'NOPATTERN'  TO ***-op_main,
            'NOINTERVLS' TO ***-op_addy.
      APPEND *** TO restrict-***_tab.
    KIND = 'B': applies to all SELECT-OPTIONS in block BLOCK_0,
                that is, SEL_0_0, SEL_0_1, SEL_0_2
      CLEAR ***.
      MOVE: 'B'          TO ***-kind,
            'BLOCK_0'    TO ***-name,
            'I'          TO ***-sg_main,
            '*'          TO ***-sg_addy,
            'NOINTERVLS' TO ***-op_main.
      APPEND *** TO restrict-***_tab.
    KIND = 'S': applies to SELECT-OPTION SEL-0-2
      CLEAR ***.
      MOVE: 'S'          TO ***-kind,
            'SEL_0_2'    TO ***-name,
            'I'          TO ***-sg_main,
            '*'          TO ***-sg_addy,
            'EQ_AND_CP'  TO ***-op_main,
            'ALL'        TO ***-op_addy.
      APPEND *** TO restrict-***_tab.
    KIND = 'S': Applies to SELECT-OPTION SEL_0_3
      CLEAR ***.
      MOVE: 'S'        TO ***-kind,
            'SEL_0_3'  TO ***-name,
            'I'        TO ***-sg_main,
            'N'        TO ***-sg_addy,
            'JUST_EQ'  TO ***-op_main.
      APPEND *** TO restrict-***_tab.
    Call function module
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
           EXPORTING
                 restriction                = restrict
              DB                          = ' '
           EXCEPTIONS
                 too_late                   = 1
                 repeated                   = 2
                 not_during_submit          = 3
                db_call_after_report_call  = 4
                selopt_without_options     = 5
                 selopt_without_signs       = 6
                 invalid_sign               = 7
                report_call_after_db_error = 8
                  empty_option_list          = 9
                 invalid_kind               = 10
                 repeated_kind_a            = 11
                 OTHERS                     = 12.

  • Select-Option F4 Help Multiple Selection

    Hi
    I have wriiten the code to provide custom F4 help for a field using F4IF_INT_TABLE_VALUE_REQUEST' and then updating the values back to screen using Function Module DYNP_VALUES_UPDATE.
    It is working fine when the F4 is used on the main screen, But when i click on the multiple selection button and press F4, i do get the F4 values list, but selected value is not getting passed back to the field.
    I guess the issue is the field name changes in the multiple section option, Please suggest how can i fix it.
    *&      Form  update_date_bATCH
          Updating the sel_screen with the retrieved values
    FORM update_date_batch USING pt_filename pt_fieldvalue.
    Rundate
      st_dyn_fields-fieldname  = pt_filename.
      st_dyn_fields-fieldvalue = pt_fieldvalue.
      APPEND st_dyn_fields TO it_dyn_fields.
    Function Module to update the screen with the values retrieved
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname               = sy-repid
          dynumb               = sy-dynnr
        TABLES
          dynpfields           = it_dyn_fields
        EXCEPTIONS
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          OTHERS               = 8.
      IF sy-subrc <> 0.
        MESSAGE i006(zffi).
      ENDIF.
    ENDFORM.                    " update_new_date_time

    You have added the F4 to a select-option for areport and would like to get the F4 values back into the select-option, when the user selects multiple values?
    If this is the case you have to fill the internal table behind the select-option and this will have to based on waht the user selected.
    The first value will go on to the screen the way you have done it.
    If this is what you want to do?
    Rene

  • How can i display Value in Report which i select from Multiple select list

    Dear All,
    i am using multiple select List in form with report page.
    When i create new Entry with select Multiple value in Multiple Select List then in report Value display me in below format
    my SQL Query are
    select NAME D, CODE R from  COUNTRY_MAS WHERE ACTIVE_FLG ='Y' order by NAME
    AS:AI:AG:AM these are return value .i want to display NAME in report .
    How can i do this ?
    Thanks
    Edited by: Vedant on Apr 25, 2012 11:14 PM

    Short answer, use the apex_util.string_to_table to convert to a table; then you can either iterate through the table to generate a string of names, or accomplish the same with a bulk operation.
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDFEEJD
    Encapsulate all this within a pl/sql function.

  • Trying to retrieve the editValue of a list box selection with multiple selections

    I have a requirement to display the text and the value of a multiple choice list box but as soon as there are multiple selections the value displayed is the rawValue.
    My code is something like this:
    verifSubTaskDescID.addItem(this.editValue);
    verifSubTaskDesc.addItem(this.rawValue);
    When "this" which is a list box with ["a","first"],["b","second"] is set to a or b it works perfectly, displaying "a" in the ID and "first" in the Desc as follows:
    a          first
    OR
    b          second
    but when I select both this list looks like this:
    first          first
    second     second
    Any ideas on how to preserve the letters without making the code too complex or hard to maintain??
    Thanks!!!

    Hi,
    you can use a for loop to get all selected values from a choice list.
    This could look like this.
    This sample script goes to the exie event of the choice list.
    It refers to the dataNode which holds the multiple values.
    The for loop the then extracts the selected values and their associated display items.
    var r = ""
    for i = 0 upto $.dataNode.nodes.length - 1 do
              r = Concat(r, $.dataNode.nodes.item(i).value, " ", $.getDisplayItem(i + 1) )
    endfor
    Textfield1 = r

  • Set focus on item that selected in multiple-selection list box field in infopath

    Hi
    I have  multiple-selection list box field in infopath that have for example 40 items. (I customize sharepoint list with infopath),then
     publish infopath form in to sharepoint list. users want to add new item,when they selected or checked each item in multiple selection list box, after that automatically control focus on first item, but I want to focus remain on that item
    I was selected. Why this happen?! I also set postback settings to “never” in multiple-selection list box properties. But didn’t work.
    Thanks.

    Hi,
    According to your post, my understanding is that you wanted  to find several columns based on user selection of checkboxes in one of the Multiple-selection List Box.
    I recommend to customize the form to concatenate values from choice field (with multiple values) into single line text box, and then hide the fields based on the text box value.
    We can follow the steps as following:
    Add a text box control(filed 3) on the form to hold the value selection in the multiple selection list box.
    Set the default value for the text box control as
    substring-after(eval(eval(Value, 'concat(., ";")'), ".."), ";")
    (you need to change the ‘Value’ in the formula to your multiple selection list box name: filed1).
    Add the conditional formatting on the flied: flied 3 does not contain value (you need to change the ‘Value’ in the formula to your multiple selection list box value.).
    In addition, you can add Formatting action to hide the text box control.
    Here are the result screenshots for you to take a look at:
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Selection Screen - multiple selection screens!!

    Hi All,
      There is one requirement where in I want my first selection screen to have 7 radio buttons and on selection of each one , there should be specific selection screens displayed. I know that one way to solve this is create multiple programs and call the program on each selection. But is there a way to do it in the same program. Kindly advice.
    Thanks & Regards,
    Sowmya

    Hi,
    Instead of different screens you can display the fields on the same screen based on the radio button selection...
    Check this example..
    PARAMETERS: P_RAD1 TYPE XFELD RADIOBUTTON GROUP G1 USER-COMMAND USR
                                  DEFAULT 'X',
                P_RAD2 TYPE XFELD RADIOBUTTON GROUP G1.
    <b>* SCREEN 1.</b>
    PARAMETERS: P_MATNR TYPE MATNR MODIF ID M1,
                P_KUNNR TYPE KUNNR MODIF ID M1.
    <b>* SCREEN 2.</b>
    PARAMETERS: P_LIFNR TYPE LIFNR MODIF ID M2,
                P_EBELN TYPE EBELN MODIF ID M2.
    AT SELECTION-SCREEN OUTPUT.
    IF P_RAD1 = 'X'.
    <b>* INVISIBLE THE OTHER SCREEN FIELDS.</b>
      LOOP AT SCREEN.
        IF SCREEN-GROUP1 = 'M2'.
          SCREEN-INVISIBLE = '1'.
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDIF.
    IF P_RAD2 = 'X'.
    <b>* INVISIBLE THE OTHER SCREEN FIELDS.</b>
      LOOP AT SCREEN.
        IF SCREEN-GROUP1 = 'M1'.
          SCREEN-INVISIBLE = '1'.
          SCREEN-INPUT = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDIF.
    Please let me know if you have any questions..
    Thanks,
    Naren

  • Multiple select list selected options

    Hello ;
    how can i get the selected options of my multiple selected List
    Thankyou

    Multiple select list is a concatenated double quote delimited string
    value_1:value_2:value_3
    Where do you (how do you) want to "get" the selected options? You want to use
    the selected value where?
    I have couple of demonstrations on how to handle multi-select lists:
    http://htmldb.oracle.com/pls/otn/f?p=31517:84
    http://htmldb.oracle.com/pls/otn/f?p=31517:87
    Denes Kubicek

  • Restrict no. of entries in the multiple selection of DOCNUM of EDID4 tab

    Hi,
    Is it possible to restrict number of entries in the multiple selection of DOCNUM of EDID4 table.
    i.e., Select the content button on se11 for EDID4 table. We can see the selection screen of the table. Press the multiple selection button of 'DOCNUM', we get a popup. Is it possible to restrict the no. of docnum entry to 500. If i enter more that 500 entries, it should popup a message.
      Please share your ideas. I am working on 4.6c.
      Points will be rewarded.
    Thank you.
    Regards,
    Ramesh

    Hi Atish,
       Thanks for your reply.  I checked for BAdis. But I couldnt find. Is there any other ways of doing this?
    User is trying to import the docnum values from presentation server file using the 'Import from text file' icon on multiple selection popup. As the no. of docnum were 4500, during the execution of this process, other process trying to connect to oracle is going for short dump with message 'Run-time error (Oracle error code: ORA-4031)'.  So user wanted to restrict it to 500.
    Hope my explanation is clear.
    Regards,
    Ramesh

  • Multiple select list in Safari 8.1 is broken again

    Multiple select list is broken again in iOS 8.0.* and 8.1 Safari.
    Few temp solutions can be found here until apple fixes this issue again.
    Multiple Select box does not retain selected choice
    Multiple Select on Safari - iPhone iOS 7

    Reinstalling OS X Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall OS X: Select Reinstall OS X and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Also see:
    Reinstall OS X Without Erasing the Drive
    OS X Yosemite- Reinstall OS X
    OS X Mavericks- Reinstall OS X
    OS X Mountain Lion- Reinstall OS X
    OS X Lion- Reinstall Mac OS X
         Note: You will need an active Internet connection. I suggest using Ethernet
                     if possible because it is three times faster than wireless.

  • Multiple Selection for Tables

    HI Team, When I try to select the multiple selection for field Material in table Mara, the To value is not displayed
    e.g in table mara if i select the material option from A* to Z*, all the materials are displayed from A until x but no of the materials are displayed starting with Z. I have found this as standard functionality in SAP and happens for all fields with multple selection in tables. can you guys advise if there is an OSS note for this?
    Thanks,
    Sunny

    Hai Sunny,
    Please check Do you have material staring with Z
    and check is there any
    Maximum No. of Hits restriction.
    Till you get SAP notes
    Create a query in SQVI for only ine table and
    MARA and tick mark the selection b fields and fields to be displayed in the report.
    Now in the report selection screen you will get TO option as well it will list all the Z materials.
    Regards,
    Mani

  • Select MULTIPLE default values for a multiple selection list box based on another field in Infopath 2010

    Hello there - Before I explain my issue, I would like to point out that I have reviewed some other discussions on selecting default values for multiple selection listbox. But my issue is specific and different, and not answered by any of the discussions
    I visited.
    I have a multiple selection list box (say for example all countries in the world as values), and I would like to pre-select or setup multiple default values (say five countries) based on some criteria that I query from MS SQL database table.
    I know we can go to Data | Default Values option to setup one or many default values for multiple selection list box. When I enter the default values manually this works. I also right click the field under the Multiple-Selection List Box group, then select
    Add another Value Below and set the Default Value for this field to setup multiple default values.
    However, if I reference a field (either an infopath field or a field from SQL database) I am not able to setup multiple default values. Infopath automatically selects the last field I selected for all instances and in the end I am able to see only one
    default value selected instead of many. How to fix this problem? Why would infopath allow multiple default values when we enter it manually but not when we reference some fields?
    Please let me know if you need more info. Appreciate your help.
    Thanks!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Multiple Selection on Selection Screen

    Hello Friends,
    Iam having a selection screen where I can enter a single value or range of values directly into the select-option fields or I can click on Multiple Selection button and enter the single value or Range of values. And whatever I enter in the Multiple selection that is stored in table s_lifnr (because I enter vendor details).
    Now, my question is.....Is there any Function Module or any BAPI to get or read all the values of this table into another internal table because I want to use them in another BAPI where I need to pass the range of vendor codes to get list of line items.
    So if I could make up an internal table which contains all the vendor codes selected from multiple selection with options like (=,>,<,<=,>=)in single value and (BT, I, E)in Range I can use this table in that BAPI.
    Any kind of help is appreciated..
    Thanks in Advance..
    Regards,
    Raju....

    Usually, you will want to select the vendors from the database.
    data: ilfa1 type table of lfa1 with header line.
    select-options: s_lifnr for lfa1-lifnr.
    select * into table ilfa1 from lfa1
              where lifnr in s_lifnr.
    loop at ilfa1.
    * do something with all selected vendors.
    endloop.
    Regards,
    Rich Heilman

  • Checked some items of multiple-selection list box when form loaded in infopath

    Hi
    I customize sharepoint list with infopath. I have multiple-selection list box and want to checked some items of that automatically when form loaded. how can do this?
    Thanks.

    Hi,
    According to your description, my understanding is that you want to pre-select some items in the Multiple-Selection List Box.
    I recommend to follow the steps below to achieve this goal:
    Click Default Values under Data tab in InfoPath, expand the dataFields and navigate to the Multiple-Selection List Box field.
    Set the Default Value of the Multiple-Selection List Box field.
    Right click the field under the Multiple-Selection List Box group, then select Add another Value Below and set the Default Value for this field.
    Repeat step3 based on the number of the items that you want to be pre-selected.
    More information are provided in the link below:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Multiple Selection List Box-- Data Display

    I want to build a form which reports all of the multiple selections made by users from a list box. When I test the form, only the first selection is reported in the dataset. How do I configure the form so that when data is compiled, each of the selections from the list box is reported in sequence?

    LiveCycle Designer forms do not support multiple selections for a listbox. If you want that feature, you will have to use the Listbox and select the "multiple selection" option, the Cmbobox will not work, in Acrobat forms. You will also have process the selection array, it is not a single value.

Maybe you are looking for

  • Team Planner -- Customization

    We recently upgraded to 2010 professional, and I was pleased to see the team planner view, which was something I was attempting to do in 2007.  We are using MS Project 2010 Professional more for resource management than project management.  In fact,

  • When I try to open a .jpeg in Bridge CC2014, I get the error message cannot find Photoshop CS6.

    I have associated my .jpegs with Photoshop CC2014. I had to do this manually. Now, every other program opens them in Photoshop, except Adobe Bridge CC 2014. If I try to Open a .jpeg (or any other file associated with Photoshop) Photoshop from bridge,

  • Putting together a Power Mac

    I was wondering if anyone had any information (links) on how to assemble or build a power mac. Im considering purchasing the parts, but I wand to know what I'm getting into. My limited search so far has come up with only the specs. Any help would be

  • Customer & vendor balance transfer to Profit centre

    Hi Experts this is Geetareddy . pls could any body help to me abt how customer & vendor balance transfer to Profit centre thanks get points Geeta

  • Library Unorganized

    My library randomly changed the order in which my songs were (alphabetically). It always listed artists with with symbols (such as +44), then numbers 0-9, and then A-Z. I opened iTunes this morning and it had changed the order to A-Z, THEN symbols an