Map Drop down to Context node with value and ID

I want to map a drop down to dynamic data.  I have a table that is populated at runtime after a BAPI call.  The structure is the same as if you used a simple type. i.e. Value and ID.

Hi Gordon,
Try out this
ISimpleTypeModifiable myType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("MonthName");
//Set allowed values for this data type
IModifiableSimpleValueSet values=myType.getSVServices().getModifiableSimpleValueSet();
values.put("0","January");
values.put("1","February");
values.put("2","March");
values.put("3","April");
values.put("4","May");
values.put("5","June");
values.put("6","July");
values.put("7","August");
values.put("8","September");
values.put("9","October");
values.put("10","November");
values.put("11","December");
where MonthName is a value attribute of type string.
Regards
Sid

Similar Messages

  • How to add a Picklist/Drop down in a page with values (Without Personaliz)

    hi,
    i am very very new to OAF ....please help me out on the below requirement....
    Please suggest me how to add a pick list/drop down field to a page, with some values. (without personalization)
    And the second one is when ever i'll chose a value from the drop down the page will reload and display a message on the page.(messages are different for the different values)
    Thanks
    Prakash

    Prakash
    As mentioned by Anil you can use the above link for new poplist generation through extension. As far as reloading the page in that case you need to make use of PPR for that item.Do refer dev guide for more details
    You can use below code for creating poplist in processRequest of your extended controller
    OAMessageChoiceBean mcb = (OAMessageChoiceBean) createWebBean(pageContext, MESSAGE_CHOICE_BEAN);
    mcb.setPickListViewUsageName("TestVO");
    mcb.setListValueAttribute("LookupCode");
    mcb.setListDisplayAttribute("Meaning" );
    mcb.setID("test");
    mcib.setFireActionForSubmit ("event1",null,null,false, false);//This is event that cause reload of pageYou can handle the event in pfr method
      if("event1".equals(pageContext.getParameter("event")))
    }Thanks
    AJ

  • How to show first parameter value in drop down list as a default value dynamically in ssrs report?

    Hi,
    in my ssrs report i have two parameters, accounts and Manager ,there is a cascading between the accounts parameter and manager parameter, as per the cascading we will get managers names based on the account we selected in the accounts parameter,
    my requirement is the first name in the mangers drop down list  has to get selected as default value.
    please help me with this, it is an urgent requirement.
    Thanks in advance,
    Naveen

    Hi NaveenMSBI,
    According to your description, you want to use cascading parameters in the report, if the accounts are selected when you preview the report, the first manager name will be selected from drop down list as the default value. If so, there can be two scenarios:
    • If manager is single-valued parameter, we can get Available Values and Default Values from the same query as below. Then when the accounts are selected, the first manager name will be selected as default value.
    SELECT managerName FROM table_name WHERE accounts IN (@accounts)
    • If manager is multi-valued parameter, we need to use different query for Available Values and Default Values. In this case, please refer to Patrick’s solution.
    For more information about Adding Cascading Parameters, please refer to the following document:
    http://technet.microsoft.com/en-us/library/aa337498(v=sql.105).aspx
    If you have any questions, please feel free to let me know.
    Best Regards,
    Wendy Fu

  • Drop down list in Table Control - Value disappeared after pressing ENTER

    Dear Gurus,
    I have a problem in one of my development where I used a table control in which one field is a drop down list.
    I used VRM_SET_VALUES and VRM_GET_VALUES for populating the values from the programand not use any domain level value table for that field.
    My problem is when I select one value from this list , and pressing enter , the value get disappeared. But if I use a domain for this field with value table then everything working properly.
    My doubt is am I doing some miss coding or using the VRM_ function modules improperly ?
    I am sharing some code with you
    in PAI :
    CALL FUNCTION 'VRM_GET_VALUES'
        EXPORTING
          id            = 'ITAB-FIELD3'    "This is drop down list element on screen
        IMPORTING
          values        = values[]    " even it is not the expor parameter...it will work..
       EXCEPTIONS
         id_not_found   = 1
         OTHERS         = 2.
      IF sy-subrc NE 0.
      No sy-subrc check required.
      ENDIF.
    IN PBO
    CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = 'IVBAP-ERNAM'
                values = values[].
    Can you please help me.
    Thanks .

    HI,
    The link contains the list box creation, just check if this might help.
    Re: Getting values back from a listbox.
    Regards and Best wishes.

  • Want to hide the drop down based on text field value

    Hi,
    I want to hide some of the values in drop down based on one text field value.
    I have the field called name which has the value A, B, C, D and also one drop down list which has the values 1,2,3,4,5,6. I want to hide the some of the values in drop down based on A or B or C. Let say, If it is A, drop down value should be 1,3,5. If it is B, Drop down value should be 1,2,3,4. Like this for every record.
    Can you please help me out.
    Thanks
    Ram

    Hi Robert,
    I am trying it in two different way. Please suggest which is the right one and feasible.
    1) I have the drop down list which has all the status. I am trying to hide the drop down values based on one text field value for all records.
    2) I have collected all the drop down values into table in webdynpro method. Rightnow I have two tables.
      one has line items details and another one have drop down values. both tables having common fields.
      I have to show second table values for that particular key, move all of them to drop down.
    Which is the best and feasible option.
    Thanks
    Ram

  • Creating context node with dynamic type

    When we are creating context node thru wizard,  Dictionary type must be filled. I'm trying to create Context node manually.Did any one tried created Context node class with Dynamic type.

    Hi Prasad,
    I have a similar requirement.
    Can you please share with me how did you create context node with dynamic table data?
    Thanks
    Vicky

  • Table TZC37 field STATU search help drop down is not pulling any values?

    Hi,
    In table TZC37 field STATU(Contract status) search help is not pulling any values( drop down list when execute the table values) .. but the table has values for this field.
    And also I checked in the configuration, this field has values in the config also. But still the search drop down is not getting any values.
    Can any one knows what could be the reason and how to solve this issue?
    I am using this field in transaction FNVS when searching loan number based on Status field.
    Thanks for your time.
    Murali.

    Hi Micky,
    I am using this in transaction FNVS (when searching Loan number based on Status field( this is Custom Search help added this field ( VDARL- SSTATI )
    Value table for this data type - STATI is TZC37.
    While getting records from these tables(TZC37 or VDARL )  I am trying to use drop down values for searching data using this field SSTATI. But its not showing any drop down values. It supposed to show what ever values exists for this field  right?
    I checked in the cofig of this table and values exists for this field.
    Any help appreciated.
    Thanks.

  • After navigating (sometimes downloading pictures, sometimes not) for approximately 10 minutes, I can no longer see contents of drop down menues, then Firefox freezes up and I have to use Ctrl/Alt/Delete to end my internet experience.

    After navigating (sometimes downloading pictures, sometimes not) for approximately 10 minutes, I can no longer see contents of drop down menus, then Firefox freezes up and I have to use Ctrl/Alt/Delete to end my internet experience.
    == This happened ==
    Every time Firefox opened
    == After upgrading to 3.6

    Step by step, how did you arrive at seeing this agreement?

  • Clicking on the downward arrow at the right end of the location bar no longer displays the drop-down list of sites visited, bookmarks and addresses typed in location bar

    Since I upgraded to Firefox version 3.6.10, clicking on the downward arrow at the right end of the location bar no longer displays the drop-down list of sites visited, bookmarks and addresses typed in location bar. My Tools > Options > privacy setting is to save history, and if I start typing a previously accessed website's address in the location bar, then the full address appears as a drop-down item. But not when I just click at the right end of the bar.

    You can try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • I updated my 2009 Mac to Mountain Lion yesterday but cannot add photos from my iPhoto library to contacts anymore. Drop down menu only shows "default, recent and camera" but I cannot get to iPhoto library.

    I upgraded my 2009 Mac to Mountain Lion yesterday but cannot add photos from my iPhoto library to contacts anymore. Drop down menu only shows "default, recent and camera" but I cannot get to iPhoto library. Help stated to choose Faces but I don't even get that far. How do I fix. Still works on iPad but not on Mac.

    When you have iPhoto and Contacts open and try to drag a picture for iPhoto to the Contacts photo frame do you get a + symbol? if not you should!  from there the the pop menu should appear and then you can select the picture and click on done
    Sample movie on how to

  • Create a Z-table and fill it with value and transport everything

    Hi
    I would like to create a Z-table, fill it with values and then transport everything.
    This table will not be updated in the productions system.
    Delivery class = C Customizing table, maintenance only by cust., not SAP import
    Data Browser/table view maint = Display/maintenance allowed
    Field: MANDT, etc. etc.
    Technical settings: Data class = APPL1, Size = 0, Buffering switched on, Fully buffered.
    I also create the Table maintenance generator
    When I fill my table with values, these will not be saved in my change request.
    What I'm doing wrong?
    Thanks   //  Peter B

    Go to
    se11>utilities>table maintenance generator-->there u fill
    Fungroup group (inthe function group u give any a z name related to ur table name it create automatically)
    package
    maintenance screen type and screen name
    After this save and activate.
    Then goto
    Utilities>TABLE CONTENTS>CREATE ENTERIES

  • How to use value in a drop-down list box as "With these Values" parameter?

    Hello, new user.
    I have a drop-down list box on Page 1, upon which the user can choose a study number. The List Box is named "P1_STUDY_NBR".
    Then I have a list, one entry of which goes to my master-detail form, which is Page 6. I would like it to go to the study number that the user choose on Page 1.
    In my target on the create/edit list entry, I put in "Page in this Application", "Page 6", then in Set these items, I put in
    P6_STUDY_NBR
    My question is what to use in With these values, where I want the contents of the P1_STUDY_NBR. I tried:
    &P1_STUDY_NBR
    and that does not work. If I put in one of the study numbers, like 336-00, then it does work, but I want it to pass the study number the user chooses in the list box. How do I refer to the contents of P1_STUDY_NBR?
    -Mary

    Yes, that does work, thanks. I'm now getting the default value I was putting in yesterday rather than an error message, so there must be something loading it, but I'll hunt around for what process might be doing that, or try re-creating the master-detail form again.

  • How to restrict or check values of field type drop down in context level

    Hi All,
    I need to know how Context Binding String option technique works for field in context node,
    the code at Get_V is like below,
          CREATE OBJECT lr_descr EXPORTING iv_source_type = 'B'.
          lr_descr->set_binding_string( '//Ident/Values' ).
          rv_valuehelp_descriptor = lr_descr.
    I seen Ident context node in this view, under attributes it don't have any values,
    but it is of class type CL_BSP_WD_CONTEXT_NODE_DDLB,
    so where he moving values or how this technique works...?
    Thanking you.
    Best Regards,
    VjMhyd

    Self,
    SET_VALUE_TABLE
    Edited by: vjmhyd on Jun 29, 2011 3:31 PM

  • How do I configure a dynamic table with Data-Drop Down selections to store separate values?

    I am attempting to use LiveCycle to create an Order Form that uses an ODBC to a SQL database. When a user makes a selection, a separate column in the table references the "Item #" associated in the SQL table, and generates a corresponding barcode.
    My problem is that when I select an Item from the drop down list, all the items in the table change. What am I missing here to separate the rows as different line items? I tried adding a [*] to the end of the connection string, and that allows me to select different options but does not generate the "Item #" or "Barcode" field.
    The screenshot below shows the basic form. When I select any of the data drop downs, all of the Items change.
    I used the auto generated script for the "Add Row +" button shown below. Is this my issue? Or do I need to alter the way I'm setting up the Data Binding in for my Data Drop Down?
    this.resolveNode('Table1._Row1').addInstance(1);
    if (xfa.host.version <8) {
      xfa.form.recalculate(1); }

    package pruebadedates;
    import java.sql.*;
    * @author J?s?
    public class ClaseDeDates {
        /** Creates a new instance of ClaseDeDates */
         * @param args the command line arguments
        public static void main(String[] args) {
            java.sql.Date aDate[] = null;       
            Connection con = null;
            Statement stmt = null;
            ResultSet rs = null;
            try{
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                con = DriverManager.getConnection("jdbc:mysql://localhost/pruebafechas", "root", "picardias");
                    if(!con.isClosed()){
                    stmt = con.createStatement();
                    stmt.executeQuery ("SELECT dates FROM datestable");
                    rs = stmt.getResultSet();
                        while (rs.next())
                        aDate[] = rs.getDate("dates");
            catch(Exception e)
               System.out.println(e);
            //System.out.println(aDate);     
    }Hi, There is my code and the errors that I get are:
    found : java.sql.Date
    required: java.sql.Date[]
    aDate = rs.getDate("dates");
    Actually I have No idea as How to get a Result set into an ArrayList or Collection. Please tell me how to do this Dynamically. I have like 25 records in that Database table, but they will grow, so I would really appreciate to know the code to do this. I suspect my problem is in the bolded part of my code.
    Thank you very much Sir.

  • Drop Down list in table with data from database table

    Hi,
    I have created an interactive form in WD ABAP.
    In Context tab I have created the nodes as follows:
    ZSOHEADER node with cardinality 1..1
    |-> MATERIAL node with cardinality 0..n. Under MATERIAL node there are 2 attrib. MAKTX and MATNR.
    I am fetching data from MARA table into an internal table IT_MARA.
    The node MATERIAL is bound to internal table IT_MARA.
    I have created a table with property ' Body rows vary depending on data ' .
    I have only one row in table. The first cell of the row is a drop down field.
    I have bind the field to the node MATERIAL->DATA->MAKTX.
    Now the issue is even though I have created only one row in my table, in preview it is creating as many rows in the table as the no.of records in the internal table.
    I want only one row with the drop down list containing all values of the internal table.
    Kindly suggest what to do.
    Regards,
    Vinod

    Hi,
    In the WebDynpro Context, in the main node create another node like A1 with cardinality 0..n and in this node create attributes TEXT and VALUE.
    Now goto method and in that method using code wizard read the node A1.
    And use the below code snippet sample in your program, i.e. code this under respective method of the webdynpro.
    *Declare the TYPES
    TYPES : BEGIN OF TY_TABLE,
    TEXT TYPE SOMETYPE,
    VALUE TYPE SOMETYPE,
    END OF TY_UOM.
    *Define Internal Table and work area.
    DATA : IT_TABLE TYPE STANDARD TABLE OF TY_TABLE INITIAL SIZE 0,
    WA_TABLE TYPE TY_TABLE.
    SELECT TEXT VALUE FROM TABLENAME INTO TABLE IT_TABLE.
    lr_node_info->bind_table( IT_TABLE ).
    And in the Adobe Form Layout
    Go to Menu of the Adobe LiveCycle Designer:
    Tools>Options..>DataBinding
    In that window you just check the Show Dynamic properties Check Box.
    Now for the Drop Down go the binding tab in object palette and click on the list items and there specify the Internal Table and specify the text as the internal table text field and value as internal table value field.
    OR
    From the WebDynpro Native Library Palette use the Value Help Drop Down and in object pallette goto binding tab and provide the form interface binding. Before this in the WebDynpro goto Context and for the particular field under the properties provide the search help as dictionary search help and specify the name of the dictionary search help.
    OR
    We have another method of setting the Text and Value to the DDL directly in the WebDynpro by coding in the methods, I dont have much knowledge on this.
    Regards
    Pradeep Goli

Maybe you are looking for

  • Install Creative Cloud on multiple computers

    I wish to install Creative Cloud on two of my computers. I plan on upgrading my laptop sometime this year. Is it possible to unistall Creative Cloud from my old laptop and install it onto my new laptop or would I have to purchase another license?

  • How can I remove high-pitched distortion from voice-over?

    Hi folks, I'm completely new to fixing audio. I am making a short film, and for a voice-over, I recently had to do an interview over the phone (the subject lives in a very remote location). Actually, I used GoToMeeting, we called into the conference

  • E.     They are getting material from customers. This while receipt will be non

    Hi Friends,                    1. They are getting material from customers. This while receipt will be non valuated. But they want to avail CENVAT on this.                     2. In some times, Supplies from customer are delayed.So they are adjusting

  • Unicode conversion in java

    is there any package in java which has some function that convert a enter key in to hindi font i.e. n==न thanks in advance With regards Hemjyo

  • Creating PDF thumbnails in Flash cs5.5 AIR

    I need a way to create a thumbnail of the first page of a PDF. I am downloading a pdf and saving it locally. I just don't know a way to get the contents of the first page to a bitmap, bitarray or jpg format.  I have been using jpgencoder for other im