How to define the texts for UI element Dropdownlistbykey?

Hi everyone,
  I don't know how to define the texts for Dropdownlistbykey. It seems that Dropdownlistbykey has an attribute "selected key", but where can I bind the texts I want to display when user clicks the downwards
arrow?
Thanks in advance.

hi,
you can use this code :
method WDDOINIT .
  DATA : node_info TYPE REF TO if_wd_context_node_info,
         value1 TYPE wdy_key_value,
         set TYPE wdy_key_value_table,
         k1 type string value 'M',
         v1 type string value 'MAGO',
         k2 type string value 'S',
         v2 type string value 'Saurav'.
  value1-key = k1.
  value1-value = v1.
  APPEND value1 to set.
  value1-key = k2.
  value1-value = v2.
   APPEND value1 to set.
node_info = wd_context->get_node_info( ).
node_info = node_info->get_child_node('FOR_DROP').
node_info->set_attribute_value_set( name = 'DROP_KEY'   value_set = set ).
I hope it helps.
Thanx.

Similar Messages

  • HOw to  find the text for PERSK field in infotype 0001

    hi all
    HOw to  find the text for PERSK field in infotype 0001

    Hi
    T503T : contained the similar informative text for PERSK . read this for T503T-PTEXT.
    ..lakhan

  • I have enhanced standard master datasource , How to load the Text for it?

    Hi Experts,
    I had enhanced 0MATERIAL_ATTR with ZTGRM field.User exit is written and the data is populated and checked in RSA3.
    Replicated,loaded in BW side.Activated the master data.It shows only the attribute not the text.
    Tried loading 0material_text and loaded successfully, activated but while maintaining the master data , i can able to see only the attribute values not the text.
    Can any one help how to load the text for the enhanced attribute?
    Thanks in advance
    Ganesh Kumar

    Hi Tony,
    Loaded the 0MATERIAL_TEXT ,also sucessful.
    After loading activated the 0material but i could only see values for 0material_attr not for the 0material_text.
    Can you tell me how to load the text data to the newly enhanced attribute???

  • How to pull the text for InfoObject in APD

    Hi All,
    I have a requirement where in I have to combine the data from 2 InfoObjects using an APD based on some conditions.
    I need to bring in the text for these infoObjects and there attributes too.
    The proposed solution from my side for pulling the text is
    u2022     Getting the text from the text table u2013 this is working fine but the performance is not good.
    u2022     Making a query above the object and taking the output as the APD input. Now, in the query , I have selected the display option u2018key and textu2019 but when I am using this query as input for the APD, I am not getting the text.
    Please let me know how to get the text using the query output and/ or are there any other approach to get the text of an infoObject.
    Thanks & Regards
    Abhi

    Hi,
    It is possible to read the text tables of the infobject, for eg  In material you can use table /BI0/TMATERIAL
    You have to select a Datasource as the 'Database table  and use /BI0/TMATERIAL  as one of the underlying tables and then choose another datasource with /BI0/MMATERIAL as the underlying table.
    Now that you have all the data that is needed you can use the join to connect the above two datasources .Select the join condition (material in this case) and the fields that you would like to be have to the next level from the individual tables that you have selected earlier.
    I guess if you work in this way you might get the results that you are looking forward quite easily without writting code.
    Let me know if it helps.
    Regards
    Ankit

  • How to define the style for JTextArea using synth style xml file.

    Hi all,
    How can we align the text inside the JTextArea using synth style xml file.
    We defined a style for the TextArea. But the text is displayed immediately after the border. So we want to provide some space between the border and the text.We specified the insets as given below. But it is not reflecting during runtime.
    <insets top="3" left="3" bottom="3" right="3"/>
    Please help me if any one knows

    Hi Anju,
    This may help you.
    http://www.xenta.nl/blog/2009/10/28/oracle-soa-suite-11g-setting-and-getting-preferences/
    Preferrence Variable can be updated either thorugh EM console or ConfigPlan
    Regards,
    Richa

  • How to get the texts for each line item for Sales order in a smartform

    I'm createing a smart form in which i need to display certain texts for each line item of a sales order. How can i get those??
    I'm trying with the table STXH and FM read_text... but i'm not clear how and what i'm getting... can anybody pls help me.....

    Hi There,
    But then i will be getting only the value. i want to link that against the particular material of the Purchase Order.
    Like for ex:
    PO No.  Material Code        Line Item        Basic        Excise       Tax       Inv Value
    0000001 5000251                010               100           16         4.64      120.64
    0000001 5000252                020               200           32         9.28      241.28
    Can u help me on this?
    Regards,
    Jitesh

  • How to change the text for the tabs of a tabstrip control dynamically

    Hi Guys,
        I am having two screens in a transaction.
    1. 1st screen has material number as an input and submit push button
    2. 2nd screen has two tabs in a tabstrip control.
        I want to display material description and plant number as heading for the two tabs based on the material number entered by the user in the 1st screen. Means i want to change the text dynamically. Is there any possible way? If it is there please help me. Very urgent...
    Thanks in advance
    James.

    Hi,
    If you set the "Output field" attribute for a pushbutton/tab, you can also set its text dynamically in the ABAP program. To do this, you must create a field in the ABAP program with the same name as the pushbutton/tab. You must then assign the required text to the field before the screen is displayed.
    For example define a global field in your program called MATNUM(20) and use this as the name for the material number tab on the tabstrip. Then you can assign a text MATNUM = 'Material Number' and this will appear as the tab title. Don;t forget to set the "Output field" attribute on the tab.
    Hope it helps

  • How to get the text for the new query

    Hi all...
    we have created a new query by copy of existing query. iwe have changed only the sales area in the filter.
    when we run the original query in japan language, getting japan text for the material where as for the new query it is not getting japan text.
    we have extracted text masterdata for sales area but when we run the query it is not displaying material description in japan language.
    how to get text for the material in the new query?
    thanks

    hi,
    What is the output for text filed you are getting as of now?
    Check the properties of the material in old query?
    Generate the query in tcode RSRT and execute and check.
    Check if the Display as properties is selected as "Key and Text".
    try to replace it back(sales area) in filters and check in new query - if u are getting the desired output or not.
    Regards
    KP

  • How to define alt text for an anchored frame in FrameMaker 11?

    What is the procedure in FrameMaker 11 to include alt text for anchored frames? We need to produce tagged PDF output that is accessibility compliant; this output must include alt text for each image in the document that a screen reader can read out.
    In previous FrameMaker versions, it was possible to define alt text as follows:
    Select the frame and choose Graphics > Object Properties.
    Click Object Attributes.
    In the Text Attributes section, add your alt text and actual text, and then click Set.
    The FrameMaker online help still describes this same procedure, at http://help.adobe.com/en_US/framemaker/using/WSd817046a44e105e21e63e3d11ab7f7960b-7f0f.htm l. However, I see that in FrameMaker 11, what you get on choosing Graphics > Object Properties has completely changed from previous versions, and I cannot see Object Attributes.
    Where is the alt text defined for an object in FrameMaker 11?

    In the Anchored Frame panel, click on the Object Attributes button.

  • How to define the format for numeric field ?

    Hello
    I have Amount field and I would to define the format to be ( XX.XXX,000 )
    How can I do this ??
    I'm new in ADF and need your help ..
    rgrds
    Edited by: moh3li_pal on Mar 1, 2010 8:05 AM

    i have the same problem i try with pattern "###,###.##" but the application adf is the inverse "###.###,##" , this a bug or the pattern errornious.??Hi Joaquin. This is not a bug, although this is a little difficult to explain without face-to-face communication :D The confusing thing here is the difference between the 'special pattern characters' and actual output characters (which are chosen based on your locale).
    If you check the Java DecimalFormat class (which provides the rules for formatting) you'll see the following:
    Using , in the pattern = Grouping separator
    Using . in the pattern = Decimal separator or monetary decimal separator
    According to your locale, the grouping separator is '.' and the decimal separator is ','. So the pattern you have specified does dictate that you should get the result you have found.
    You either need to change your locale settings (best option) or cheat by switching the , and . in your pattern.

  • How to set the text for commandNavigationItem in nodeStamp facet of train?

    When I use the af:train w/o ndeStamp facet, the train displays proeprly with text next to each nod, e.g.,
    <af:train id="train" var="node" value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}" layout="vertical"/>
    but when I use a nodeStamp, then my text dissappears. e.g.,
    <af:train id="train" var="node"
    value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
    layout="vertical">
    <f:facet name="nodeStamp">
    <af:commandNavigationItem text="#{node.text}" actionListener="#{pageFlowScope.createModelFromTables.onSelectTrainStop}"/>
    </f:facet>
    </af:train>
    Also, jDeveloper complains that it Reference "#{node.text}" not found. Likewise for #{node.readOnly}, etc. Note I also tried #{node.label} as described in the code example [adf:train|http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_train.html]
    I am using jDeveloper 11.1.1.5.0 Build JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013

    These links will helpful for you.
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_train.html
    http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12419/tagdoc/af_train.html

  • How to define the directory for download technical system?

    Hi,
    I'm trying to export the technical system from SLD, but is showed the following message: "/usr/sap/XIP/DVEBMGS76/j2ee/cluster/server1/apps/sap.com/com.sap.lcr/servlet_jsp/sld/root/admin/download/export_20061205_114437.zip (A file or directory in the path name does not exist.)".
    But the "download" directory do not exist. Can I change this path?
    I don't have permission to create a directory in Unix, where the XI was installed.
    Thanks.

    Why you export the technical system from SLD ?
    Which step you follow in order to make the export ?
    Sandro

  • How can I wrap the text for LinkToAction UI Element.

    Hi All,
    I am trying to wrap the text for LinkToAction UI Element which is inside the group.I have set the wrap property to be true.But still its not getting wrapped.I have set the width of the group to be 0px.I have even set the wrap property for the RootUIElementContainer and set the width property to be 0 px.I am using the FlowLayout.Any ideas are appreciated.
    Thanks in Advance

    I have the same problem.
    would you plz tell me how to wrap.

  • How to maintained the Text  language for CKF keyfigure

    Dear All,
    Please let me know how to maintained the text language for CKF I am using only keyfigures in CKF.
    Issue is text is not showing in Spain language when user exeuted the report (longin Spain) for CKF keyfigures .
    As per report design there are formuals and direct keyfigures and CKF has defined and we keep it under in Row struture in the report.
    After exeuted the report (Login Spain)Text has converted in all languages along with spain except for CKF keyfigures.
    Issue in text CKF's:
    There is a main  CKF (Cost) under this again we defined two sub CKF's those are total cost and average cost. We able to see the text in Spain language for Main CKF(cost) and also cheked in RSZELTTXT(Texts of reporting component elements) for the same.
    We can able to see the text in all languages for main CKF(cost) and enteries are there in RSZELTTXT table.
    We can see only  the text in english for  total cost and average cost and also enteris are there only in EN in RSZELTTXT table.
    It would help to me if any one can answer my question.
    Thanks in advance .
    Regards,
    MQ

    U can fetch the texts for the items using
    Read_text.
    Example:
        g_f_tdname = xvttp-vbeln.
        g_f_obj = p_obj.
        g_f_langu = 'DE'.
        REFRESH g_t_lines.
        CLEAR g_t_lines.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id                      = p_var
                  language                = g_f_langu
                  name                    = g_f_tdname
                  object                  = g_f_obj
             TABLES
                  lines                   = g_t_lines
             EXCEPTIONS
                  id                      = 1
                  language                = 2
                  name                    = 3
                  not_found               = 4
                  object                  = 5
                  reference_check         = 6
                  wrong_access_to_archive = 7
                  OTHERS                  = 8.
        IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    The Required fields are,
    Text-id ,language,name,object.
    Let me know if you further require help.
    Regards

  • How to change the text of a user defined field in dynamic selections?

    Logical Database PSJ is used by t code CJI3 - we added a couple of user fields into the dynamic selections of CJI3.
    Now - how to change the text of this user filed (USR01 of structure PRSP_R in logical database PSJ)?
    Found an OSS note - 86980 - that tells that this is not possible.
    But when we read the documentation on the user field (CJI3 - dynamic selections  - double click on user field - F1), it shows the following text:
    User-defined field in which you can enter general information with a length of up to 20 characters.
    Dependencies
    The names (key words) for  user-defined fields depend on the field key.
    Now the question is where to change the field key..
    Thanks,
    Ven

    Madhu - you did not get the question I think.
    Anyways - I found an OSS note 1266643 - this code change should take care of the issue - it will then reflect the details maintained in custoizng at transaction code OPS1..
    Thanks,

Maybe you are looking for