Not able to set values in drop down for a table field

Hi All,
I am not able to set values in drop down for a table field. Although I am able to set these values to a stand alone field but its not happening for a particular table field. I am using ABAP web dynpro for coding.
Pls help.
Regards,
Bhaskar

Hi Otto,
Here is the code I am using:
* navigate from <CONTEXT> to <DATASOURCE> via lead selection
  lo_nd_datasource = wd_context->get_child_node( name = wd_this->wdctx_datasource ).
* navigate from <DATASOURCE> to <CHANGING_PARAM> via lead selection
  lo_nd_changing_param = lo_nd_datasource->get_child_node( name = wd_this->wdctx_changing_param ).
* navigate from <CHANGING_PARAM> to <EDUCATION_TAB> via lead selection
  lo_nd_education_tab = lo_nd_changing_param->get_child_node( name = wd_this->wdctx_education_tab ).
  node_info = lo_nd_education_tab->get_node_info( ).
  REFRESH ddlb_value_set.
  DATA: wa_edu_est TYPE t517t.
  SELECT * FROM t517t INTO wa_edu_est WHERE sprsL = 'EN'.
    s_element-text = wa_edu_est-stext.
    s_element-value = wa_edu_est-slart.
    APPEND s_element TO ddlb_value_set.
  ENDSELECT.
  SORT ddlb_value_set BY text.
*    Set Value_sets to node_info
  node_info->set_attribute_value_set(
     name      = 'EDU_EST'
     value_set = ddlb_value_set ).
Regards,
Bhaskar

Similar Messages

  • In logic X I am trying to normalize but the track and file option in the edit window is not there at all just the drop down for pointer eraser etc. Any ideas? Thanks!..

    In logic X I am trying to normalize but the track and file option in the edit window is not there at all just the drop down for pointer eraser etc. Any ideas? Thanks!..

    Total life saver. Thank you

  • I am not able to set high and low limits for each channel seperately using LabWindows/CVI

    I am using AI_StartAcquisition and AI_ReadAcquisition functions to acquire data using PCI 6025E DAQ card and iam using Lab/Wuindows/CVi5.0 software. But one of my transducer has its range in +/- 500 mV soi need to set the high low limits of each channel seperately for that i am using commond string function(cmd) but still i am not able to set the limits properly. Does anyone has any idea about this trouble

    You can set the gain on a per channel basis by using the lower level functions. (As opposed to the easy i/o functions.) For example, look at the "SCANsingleBufSync.C" NI-DAQ shipping example that uses the SCAN_Op() function. It's gain parameter is an array of gains that will allow you to change the input limits for each channel separately.
    -Russell

  • Setting values in Drop down list in Screen Painter

    Hello Freinds,
    I have the requirement as, I have drop down list in screen painter and want to fill the values in that list using database table.
    So using foreign key table I have updated the values in the list.
    But now client wants me to fill the dropdown list with ID as well as description..
    Please suggest me how to achieve this.
    Thanks and Regards
    Nishad

    Hi,
    You the FM 'F4IF_INT_TABLE_VALUE_REQUEST'  and try.
    Fill the internal table with the key and description and pass the same to above FM.
    You will get sample code by searching the forum.
    Thanks.
    Anversha

  • How to set a default value in a Value Help Drop Down List

    Hi,
    I used an age Range field in my adobe form, the control  is a Value Help Drop Down List. i am populating the drop down using following code.
    IWDAttributeInfo ageInfo = wdContext.nodePersonalData().getNodeInfo().getAttribute("CTAgeRange");
         ISimpleTypeModifiable ageType = ageInfo.getModifiableSimpleType();     
         IModifiableSimpleValueSet ageValueSet =  ageType.getSVServices().getModifiableSimpleValueSet();
         ageValueSet.put("1","21-29");
         ageValueSet.put("2","30-34");
         ageValueSet.put("3","35 or Above");
    My requirement is to set a default value e.g. 30-34 in the age range field.
    I want to give input to iform from my Implementation code only.
    Please help.
    Thanks in advance

    hi Ranjan,
    that means you have to set at design time,
    to set default drop down value you will have to set the value for particular attribute (which is linked to the dropdown element) in the context
    like
    wdContext.currentContext<nodeName>Element.set<FieldName>(<default value>)
    This generally done in Initialization method of the controller.

  • How to get different values in drop down in  table rows

    Hi
    I have an application, which has a drop down in the table. Each row is to have different values in its drop down based on the "characteristic" parameter. For eg. first row has characteristic as color, and the corresponding drop down will contain the color names. Second row has charateristic as weight, and the drop down will carry corresponding weight values.
    I am getting the data from the backend as a flat table i.e. charaterisitc - value pair.
    I think i will have to use the Drop Down by Index control, but i dont know how exactly to go about it.
    Can any one please help in this regard.
    Thanks & regards,
    Anupreet

    Hi Maksim
    I am sorry, but i am not able to get you.
    This is the piece of code that i wrote for populating the drop down:
    IPrivateMaintainDocAttribView.IDropElement dropEle = null;
    for(int i = 0;i<size;i++)
                 dropEle = wdContext.nodeDrop().createDropElement();
                 dropEle.setDropval(wdContext.nodeCtxNode_DocAttribs().getCtxNode_DocAttribsElementAt(i).getCmpCtx_Value());
                 wdContext.nodeDrop().addElement(dropEle);
    Here, Dropis the sub node to which i am putting the data and thisis linked to the table.
    CtxNode_DocAttribs is the model node from where i am picking the data and setting in the subnode.
    Thanks & regards,
    Anupreet

  • Drop down in a table not in ALV table but the normal table

    Dear All,
    My question is regarding the drop down in a table.
    I am trying to put the drop down in a table and i am trying to fetch the data from the Data dictionary.
    Since my table contains more than 3 records all the columns are fetched accordingly but the drop down column is not getting set as per the reords of the database.
    When there is one record in the table then i am able to set the value of drop down as per the database and fill the drop down but when there are multiple records in the database all the values are set as same .
    For eg my datbase consits of 2 records and 1st record consists of drop down value as ""open"" and my 2nd record as "Cancelled"   then the two values are over written as ""Cancelled " "Cancelled".
    To over come this situation suggest me with a solution .
    Hope  i am clear with my question.
    Regards,
    Sana.

    Hi......
    I too got the same prblm like you but i solved it... here is the solution...
    first i have  used dropdownbykey list box for my scenario...
    then in the wd_doint...
      DATA LS_VALUESET  TYPE WDR_CONTEXT_ATTR_VALUE.
      DATA LT_VALUESET  TYPE WDR_CONTEXT_ATTR_VALUE_LIST.
    DATA LO_ND_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
      DATA LO_ND_ND_EDUCATION TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA LO_EL_ND_EDUCATION TYPE REF TO IF_WD_CONTEXT_ELEMENT.
    navigate from <CONTEXT> to <ND_EDUCATION> via lead selection
      LO_ND_ND_EDUCATION = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_ND_EDUCATION ).
    get element via lead selection
      LO_EL_ND_EDUCATION = LO_ND_ND_EDUCATION->GET_ELEMENT(  ).
    get element via lead selection
      LO_ND_INFO = LO_ND_ND_EDUCATION->GET_NODE_INFO( ).
    i have the values in lt_subty fetched from database.
      LOOP AT LT_SUBTY INTO LS_SUBTY.
        LS_VALUESET-VALUE = LS_SUBTY-SLART.
        LS_VALUESET-TEXT  = LS_SUBTY-STEXT.
        APPEND LS_VALUESET TO LT_VALUESET.
      ENDLOOP.
    get all declared attributes
      LO_ND_INFO->SET_ATTRIBUTE_VALUE_SET(
        EXPORTING
            NAME = 'SLART'
            VALUE_SET = LT_VALUESET ).
    Hope this will help you.....
    if still dint come.... reply me....
    Thanks & regards
    Raja

  • Restrict the number of visible values in drop down by key?

    Hello,
    Is it possible to restrict the max. number of entries displayed in a drop down by key element? By default i get 10 entries which i would like to limit to 5. Thanks.
    Regards,
    Vasu

    Hi,
    If you have a set of default values (which come from the domain), you can restrict them to the specific values which you need to display. In the INIT method of the view in which this UI element is present, you will have to write code to delete the entries which you do not wish to show in the drop down by key element.
    Have a look at this code snippet:
      data:     node_info type ref to if_wd_context_node_info,
                elem_attr type wdr_context_attribute_info.
      node_info = wd_context->get_node_info( ).
      node_info = node_info->get_child_node( 'CHILD_NODE' ).
      data:    lt_valueset type wdr_context_attr_value_list,
            l_value type wdr_context_attr_value.
      call method node_info->get_attribute
        exporting
          name           = 'ATTR1'
        receiving
          attribute_info = elem_attr.
      lt_valueset = elem_attr-value_set.
      delete lt_valueset where value = 'VALUE1'.
      node_info->set_attribute_value_set(
                name = 'ATTR1'
                value_set = lt_valueset ).
    Hope this helps.
    Regards,
    Wenonah

  • SQL 2000 Database Maintenance Plan drop downs for days, weeks, months, not displaying

    When setting up a SQL 2000 Database Maintenance Plan the drop down for Remove files older than is not populating with hours, days, weeks, or months. It is just blank. The version is  Microsoft SQL Server  2000 - 8.00.2039 (Intel X86)  
    May  3 2005 23:18:38   Copyright (c) 1988-2003 Microsoft Corporation  Desktop Engine on Windows NT 5.2 (Build 3790: Service Pack 2). Is there a fix for this issue?

    This also works. All the credit goes to a user named eyechart.  Great directions provided as well.
    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=47575
    sqlmaint.exe
    was missing from MSDE 2000, but that was fixed in SP1 I think. Since this is SP3
    you probably have a missing registry value for the backup directory.
    I
    had to fix a similar problem last year on a bunch of laptops. They were all
    missing a registry value. Anyway, here is the fix:
    1. Fire up regedit and
    look under HKLM\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer
    2. Ensure you have
    a string value called BackupDirectory. The value for this should be the path to
    your backup dir. The default value is C:\Program Files\Microsoft SQL
    Server\MSSQL\BACKUP
    btw, this fix assumes you have a default instance
    installed. A named instance will have slightly different registry location and
    filesystem path.
    -ec
    Edited by -
    eyechart on 03/25/2005 21:04:27

  • Not able to set Weblogic Runtime on eclipse while adding new weblogic srvr

    Hi Everyone,
    I downloaded Oracle Integration pack for eclipse by clicking at "Download additional server adapters". I am not able to set Weblogic Runtime on eclipse while adding new weblogic server.
    I am trying to give following values:
    Name :Oracle WebLogic Server 10gR3 (2)
    Weblogic home :C:\bea\wlserver_10.3
    Java home: C:\bea\jrockit_160_05
    Below it I am getting "No applicable extension found" and finish button is greyed out.
    Please help in telling what is wrong. Never faced such an issue.
    Thanks
    SM

    I found this problem too.
    OS:windows7、eclipse:helios、oepe:Part of Oracle Enterprise Pack for Eclipse 11.1.1.7.3
    <workspace>\.metadata\.log:
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: enter_new_hit_count in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: exception_occurred_setting_bp_properties in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: hit_count_must_be_positive in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: no_description_provided in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: scripts in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: select_javascript_file in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: set_bp_hit_count in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: suspend_target in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: suspend_thread in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: the_argument_0_is_not_valid in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    I tried the weblogic 10.3.1、10.3.3、10.3.4、10.3.5 still show the info that "No applicable extension found" and finish button is greyed out.
    What is the reason?
    thanks!

  • ** Not able to create Value Mapping Table in Integration Directory

    Hi friends,
        I am not able to create value mapping entries like below in ID.
    Agency :    Computer1                Agency : Computer2
    Scheme:    Country                     Scheme: CountryCode
    Value for Computer1                   Value for Computer2
    Australia                                     AU
    India                                           IN
    Austria                                       AU
    Note that I have assigned the same country code 'AU' for the Countries 'Australia' & 'Austria'. But, when we assign 'AU' to 'Austria', the system asks question as below:
    Value mapping already exists
              Australia | AU
              Austria | AU
    Do you want to delete it from the existing group and assign it to the current group instead?
                       Continue       Cancel
    Though choose any of the option, I am not able to assign 'AU' to 'Austria'.
    Friends, this is my requirement. How do we solve this ?
    Kindly help me.
    Kind Regards,
    Jeg P.

    Hi Koen,
        I tried this. Its working fine now. Thanks for giving guidance to me. Then, I have another doubt. Suppose if we create 2 sets of VM table, (First Receiver will act as 2nd one how do we achieve this). For Ex:
    Set 1:
           Source Agency: SYS1              Target Agency: SYS2
           Source Scheme: CODE             Scheme : DEPT
             A                                            HR
             B                                            Accts
             C                                            Finance
    Set 2:
           Source Agency: SYS2              Target Agency: SYS3
           Source Scheme: DEPT             Scheme : GRADE
             HR                                             Second
             Accts                                          First
             Finance                                       First
    In this case, I followed the same logic which you said, but I am not able to create. I think the main point is GUID here. If you have any idea, kindly tell me.
    Kind Regards,
    Jegathees

  • External XML data files to add values to drop down lists

    I would like to have external XML data files to add values to drop down lists in my form.. But when i create a data connection it is working properly only in the Preview in Livecycle Designer.. but not in the PDF form(Adobe Reader). Moreover im not sure whether it will work in the form manager..!plzz help me!
    Raghava Kumar V.S.S.

    Hi,
    For the case of raghavakumar, Is it really that I need to have LiveCycle Reader Extensions? Is there any other way that could do the same?
    Thank you

  • I have made one field as drop down in web ui. there are 3 values in drop down suppose a, b , c.

    i have made one field as drop down in web ui. there are 3 values in drop down suppose a, b , c.
    now i want to make c value as default value in drop down what to do?

    Hello Bala,
    you can find number of discussions regarding this on SCN.
    Search and do code in DO_INIT_CONTEXT method of view to set the value in entity.
    lr_entity ?= me->typed_context->context_node_name->collection_wrapper->get_current( ).
          lr_entity->set_property( iv_attr_name = 'Attribute_name' iv_value = 'value' ).
    Regards Harish Kumar

  • Dashboard prompt issue  (Restricting Values in drop down) ????

    Hi Friends,
    In my report I have "days to start" column which list almost 10,000 values ranging from -1000 to 5000.
    I need to create a prompt for this report on "Days to Start" column.
    When I create a prompt on Days to start with Operator "Greater than" and Control "Drop Down List" it shows me all the values in Drop down.
    I need only specific Values like 30, 60, 90, 180 which might not be in the "days to start" column.
    If I select "SQL Result" what should be the SQL for that??
    Is there any other way to solve this problem
    Aprreciate your help on this
    Thanks

    You could make a table VALUES with 1 column and fill it with values like 30,60,90....then in sql you'd write SELECT * FROM VALUES....as simple as that
    (of course, it'd have to be in RPD, and you'd need to expose it in Presentation layer)
    Edited by: wildmight on Feb 19, 2009 8:18 AM
    Also, you could try this - it works for me - but it could be slower and you might want to figure out how to round it - also, it has to be a number or cast to number format
    SELECT Table."Column"/30 saw_0 FROM "Subj Area" ORDER BY saw_0
    Edited by: wildmight on Feb 19, 2009 8:29 AM

  • New features, e.g., blur path and select focus, are not showing up in my PS drop down menus

    Although I've downloaded the CC PS 2014 updates the new features, e.g., blur path and select focus, are not showing up in my PS drop down menus - anybody know why and what I need to do?
    <moved from downloading,installing,setting up - kglad>

    Are you sure you understand the Cloud License concept?
    You are entitled to keep Photoshop CC and install Photoshop CC 2014, so CC 2014 is not connected with additional costs and the time it takes to install the new version of Photoshop should not be that much of a imposition, should it?

Maybe you are looking for

  • Down Payment to vendor using F-65

    Dear All, Is it possile to park and down payment made to a vendor using F-65? It is required because in our case an employee has made the downpayment through his imprest and now i want to credit the imprest and debit employee with special GL Indicato

  • Wobble Bass on Garageband 10 Mavericks

    Does anybody has the idea on how to make a Wobble Bass on the new Garageband? On the last version it was possible to edit the software instrument with more precision, adding effects and stuff but now Apple only lets you edit with some presets... This

  • NW04 EP6 Sp13 & ECC5.0 - Problem previewing MSS iviews

    We have just completed an install of NW06 EP6 SP13 & ECC5.0 at the back-end and are looking to implement ESS and MSS. In trying to preview an MSS iview, I am getting errors with the connection. A pre-requisite may be missing. This is our landscape: E

  • Motion 5 Tutorials

    Hi, I'm pretty familiar with FCPX, but completely new to Motion. I am now looking for some basic introductory video-tutorials for Motion 5 to get started. Any ideas, anyone?

  • Why won't iTunes play on Safari

    iTunes used to work in Safari, and now videos won't play.  The page loads, but the video area is just black.  Those videos play fine in Firefox. Please tell me how to fix Safari.