How to read selected item of the dropdown listbox in dialog prgmming

hello to all,
i need one help.In dialog programming how to read the selected value of the dropdown listbox created in se51. the values are appering in listbox by using FM 'VRM_SET_VALUES' .and function code is also assigned to lisbox .but how to read that one particular value selected by user form the dropdown list.
thanks.

hello mate
Try this following  logic and code  u will getting the answer
Here this example  :  
                  Let Name of the LIST BOX BE  :  LT
Code :
Data Declaration :
  I_NATIO TYPE VRM_VALUES,
  W_NATIO LIKE LINE OF I_NATIO
data: begin of itab occurs 0,
LT(10)  type c,    
end of itab.
**This query to data retrival
select  x1 x2 into table itab form tbl .
loop at itab.
w_natio-key = itab-LT.
w_natio-text = itab-LT.
append w_natio into i_natio.
clear w_natio.
endloop.
**This code  for setting values in the list box
CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
      ID     = 'LT'
      VALUES = I_NATIO.
**This code getting the valu form the list box
  CALL FUNCTION 'VRM_GET_VALUES'
    EXPORTING
      ID     = 'LT'
    IMPORTING
      VALUES = I_NATIO.
**simply to print the values selected
write : i_natio-lt.
I hope this will help u out.
Anand

Similar Messages

  • How to read selected item value from DropDownList?

    Hi,
    The DropDownList component has a selectedItem property that is supposed to return a ListBase.
    But what I want is just the "String" that is supposed to be the selected Item in the DropDownList.
    How can I read this value?
    thanks
    -Malena

    Thank, yes, I realized that right after I posted my question -:)
    I casted the selectedItem property to String and voila.
    Best
    -Malena

  • Shuttle: How to reference selected items on the right side

    This seems so easy so why am I struggling so much.
    I have a simple shuttle:
    1 Adam
    2 Baker
    3 Charlie
    4 Delta
    5 Echo
    6 Foxtrot
    Select Name D, UserID R from UserTable
    The values are stored in a VARCHAR2 field MULTI_USER (for example 1:2:4:6)
    When I want to get the names back from the selected item, how do I reference the colon-separated items?
    For example:
    Select Name from UserTable
    where UserID in (select MULTI_USER from MULTI_USER where MULTI_USER_ID = 1)
    should return:
    Adam
    Baker
    Delta
    Foxtrot
    Why is this so difficult for me to figure out?
    Thank you in advance

    Hi,
    This might help
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_item.htm#sthref908
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How do I delete items in the autofill pop up dialog box?

    I have been looking for a way to delete the information in the dialog box that pops up when filling in the subject line of emails, or performing web searches, that saves earlier entries for re-use. It is annoying to me and I'd love to turn off this function if possible.
    Any ideas or suggestions?
    I can't seem to find where this function is controlled from.
    Thank you-
    Power Mac G4   Mac OS X (10.3.9)   Airport extreme

    Thank you Kappy,
    That worked. I had never opened the edit function of the Other Forms listing before. I appreciate your help. Problem solved.
    Jim
    If you are referring to the function Safari it is
    controlled in Safari's preferences. I'm not aware of
    any such autofill in Mail except for the addressee.
    That is controlled in Mail's preferences (Composing
    icon in toolbar.) Mail also fills in addressee
    information from its Previous Recipients database.
    You can view and edit it by selecting it from the
    Window menu in Mail's menubar.

  • How to find out the selected item in the lsit

    Hi all,
    How to find out the selected item in the list,can any please post some examples which easy to understand,because iam not a good programmer

    This sample program uses a checkbox as selection,  you could also use a HOTSPOT.
    report zrich_0002 no standard page heading.
    data: imara type table of mara with header line.
    data: check_box(1) type c,  
       report_lines type i.
    start-of-selection.
    * Create the gui status with BACK button in standard place
    * and a READ button in the application toolbar
      set pf-status 'CHECK'. 
    select * into corresponding fields of table imara           from mara up to 100 rows.
    loop at imara.   
    write:/ check_box as checkbox, imara-matnr, imara-matkl.  
    hide imara-matnr. 
    endloop.
      report_lines  = sy-linno - 1.
    top-of-page. 
    write: 'List of materials'.  uline.
    top-of-page during line-selection.  write:  'Material.....'.  uline.
    at user-command. 
    case sy-ucomm.  
    when 'READ'.   
      check_box = space.    
    set pf-status 'CHECK' excluding 'READ'.
          do report_lines times.       
    read line sy-index field value check_box.    
       if check_box = 'X'.        
    write:/  'You have selected material',
    imara-matnr.       
    endif.   
      enddo. 
    endcase.
    Regards,
    Rich Heilman

  • Get the selected item in a dropdown

    please how can in get the selected item in a dropdown ?
    I am using t"his.selectedIndex" but it gives me just de index of the previous selected item, I am using the CHANGE event with javascript

    I found the solution with xpa.event.newText

  • How to read which item in a listbox is currently selected?

    Is it possible to read which item in a listbox is currently selected?
    I know how to tell what item in the list was double-clicked. I'd like to be able to click (once) on an item in the listbox and then use buttons on the front panel to affect the item(and list). For example, click on an item in the list and then click an "insert" button to add an item to the list before the selected one.
    I'd like to be able to do this with both regular and multicolumn listboxes.

    The value of the listbox is just a number for which row is currently selected. If you setup your listbox for 0 or more items or 1 or more items, then the value of the listbox is an array of I32 numbers showing which rows are selected. Use a property node to get the Item Names property (an array of the list items) and you can use the value(s) to index into the array. I have included a VI that I use to move items up and down in the list as well as delete items. Feed it the array of item names and the index for the line you want to move/delete. Then take the output and feed it back into a property node of item names.
    I hope this helps.
    Rob
    Attachments:
    Sequence_Element_Move.vi ‏37 KB

  • How do you delete items from the reading list?

    How do you delete items from the reading list?

    I'm trying to mark your reply as "solved my problem", but I can't see where to mark it. I tried to mark it in the email that came to me with your answer, but it went to a screen that said NOT FOUND. Help?

  • How do i delete items from the reading list

    how di i delete items from the reading list

    Swipe your finger across the item in the list and a delete button will pop up.

  • How to show all items in the reading list? I think this option has been removed in Safari Version 7.0.2

    How to show all items in the reading list? I think this option has been removed in Safari Version 7.0.2

    Thanks. That solved it. I had my doubts since I wasn't concerned about my lost bookmarks. I was concerned about the broken functionality. In any event, restoring from a backup solved both the functionality and the lost bookmarks. I appreciate the response!

  • How to directly get the selected value in the dropdown

    Hi Experts
        Now, in POV, i want to directly get the selected value in the dropdown. Because, the program doesn't enter the PAI before POV part. Therefore, the corresponding variable of dropdown doesn't store the selected value. That's reason why i want to find a way to directly get the selected value in the dropdown. is there any function module to do this?

    you can use INITIALIZATION event which triggers first before any other events..
    and u can use VRM_SET_VALUES to populate the values in the list
    DATA : v TYPE vrm_values.
    DATA : vw LIKE LINE OF v.
    INITIALIZATION.
      vw-key = '1'.
      vw-text = 'ABC'.
      APPEND vw TO v.
      vw-key = '2'.
      vw-text = 'DEF'.
      APPEND vw TO v.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = 'A'
          values          = v.
    PARAMETERS : a TYPE c VISIBLE LENGTH 10 AS LISTBOX.

  • How to change the selection background color of the selected item in the popup menu of the choice box ?

    How to change the selection background color of the selected item in the popup menu of the choice box ?
    By defaut, the selection background color likes "blue", but if I want it to be "yellow" for example, how should I do ?
    Thanks

    The id is applied by (I think) the skin class of the ChoiceBox. You don't need to define it.
    You have to apply the css in an external style sheet. You can apply the external style sheet to any parent of your choice box, or to the scene (the most usual way to do it).
    Example:
    import java.util.ArrayList;
    import java.util.List;
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class ChoiceBoxTest extends Application {
      @Override
      public void start(Stage primaryStage) throws Exception {
        primaryStage.setTitle("Example 2");
        final ChoiceBox<String> choiceBox = new ChoiceBox<>();
        List<String> tempResult = new ArrayList<String>();
        for (int i = 0; i < 10; i++) {
          tempResult.add("Item " + i);
        choiceBox.getItems().setAll(tempResult);
        VBox root = new VBox();
        root.getChildren().add(choiceBox);
        final Scene scene = new Scene(root, 300, 250);
        scene.getStylesheets().add("choiceBox.css");
        primaryStage.setScene(scene);
        primaryStage.show();   
      public static void main(String[] args) {
        launch(args);
    choiceBox.css:
    @CHARSET "UTF-8";
    #choice-box-menu-item:focused  {
    -fx-background-color: yellow ;
    #choice-box-menu-item .label {
    -fx-text-fill: black ;
    Message was edited by: James_D

  • How do you remove items from the assets panel that are duplicated?

    How do you remove items from the assets panel that are duplicated?

    If you add an item to a slideshow, you'll usually see 2 entries for that image in the assets panel - one represents the thumbnail, and the other represents the larger 'hero' image.
    It sounds like you may have added the same image to your slideshow twice. You can select one of the hero images or thumbnail images in your slideshow and use the delete key to remove it. Then the extra 2 entries in the assets panel should disappear.

  • Getting the value of the selected items of the shuttle

    Hi Steve,
    How to get the selected items of the shuttle in the backing Bean upon clicking submit button?
    Regards,
    Gareth

    Check the ADF Developer Guide and the SRDemo
    application for a sample of using the shuttle
    http://download.oracle.com/docs/html/B25947_01/web_com
    plex008.htm#CEGHACEDHow to get the values from leading list. I have a pop-up with selectManyShuttle. The leading list values are retreived from from emailTable and there is no default values in the trailing List. When I click ok in the popup, the selectedValues is null.
    here is my code:
    <af:form>
    <af:selectOneChoice label="" valuePassThru="true" valueChangeListener="#{backingpsEmailUserContact.refreshSelectedList}" id="usercontactid" autoSubmit="true">
    <af:selectItem label="User" value="user"/>
    <af:selectItem label="Contact" value="contact"/>
    </af:selectOneChoice>
    <af:panelHorizontal valign="bottom" partialTriggers="usercontactid">
    <af:selectManyShuttle
    trailingHeader="Chosen"
    leadingHeader="Email"
    trailingDescShown="true"
    leadingDescShown="true"
    size="10"
    value="#{backingpsEmailUserContact.selectedValues}" >
    <f:selectItems value="#{backingpsEmailUserContact.allItems}"/>
    </af:selectManyShuttle>
    <af:commandButton text="Ok" action="#{backingpsEmailUserContact.cmdOk}" id="cmdOkid" partialSubmit="true"/>
    </af:panelHorizontal>
    </af:form>
    backingBean method
    public void cmdOk(){
    Object selectedList = this.getSelectedValues();
    // for (int i = 0; i < selectedList.size();i++){
    // System.out.println((String)selectedList.get(i));
    }

  • 6.1 Print Templates - auto select items in the print dialog popup

    In the slide deck I have about 6.1 it says the following:
    •Print Templates
    –Print templates can now be used to auto select items in the
    print dialog popup. By default, the out of the box template
    selects the current specification
    Unfortunately I haven't been able to find how to do this in the EP documentation. Could someone point me in the right direction on how to do this?

    Download Extensibility Pack 2.6. It was just released. Take a look at page 11 in the Print Extensibility Guide. It should have the info you need. If not let me know.
    Here is the link for the downloads:
    https://support.oracle.com/CSP/ui/flash.html#tab=PatchHomePage(page=PatchHomePage&id=h1j503ev())

Maybe you are looking for

  • Unable to retrieve system object

    An exception occurred while processing a request for : iView : pcd:portal_content/com.sap.pct/specialist/com.sap.pct.crm/com.sap.pct.crm.roles/com.sap.pct.crm.salesrepresentative/com.sap.pct.crm.sal.sales/com.sap.pct.crm.ord.orders Component Name : c

  • Invalid Object State

    Hej All We have a problem with our Q server. There is not possible to log on to any repository. When we use what ever user ID (can be dummy) we got information: "Invalid Object State". There is no passwd on server. Our system is 7.1 SP6, and of cours

  • How to assign static ip address to the server having solaris 10. i.e. nge0

    hi, how to assign static ip address to the server having solaris 10. i.e. nge0 i.e. 192.168.3.125 ipshold be persistantt across reboots. what steps do i need to follow to put all information including gateway,netmask etc..Also i want to integrate one

  • Remaining moments/collections in the iOS 7 Photos app

    I just installed iOS 7 on my iPhone 4S and iPad mini. Does anyone know if there is a way to rename the "miments" or "collections" in the Photos app? I like how it's organized, but I wish that the album of pictures from my uncle's wedding could be nam

  • Bilder extrahieren

    Hi, mit einem PDF-Formular werden Daten bei Kunden abgerufen. Dabei können von den Kunden auch Bilder eingebunden werden ("Bildfeld" im LiveCycle Designer). Das ausgefüllte Formular wird per Email zurückgesandt, wobei dann natürlich nur die reinen Da