How to show only six values in dropdown box in design studio 1.3

Hi,
There was an requirement from our client to show only last six months in the drop down, when actually there is almost past 30 months are coming from the database. The data format also looks similar to "2014007", "2014006:..etc. Any idea to achieve this through loop.?
Thank You,
Palani

Hi Karol,
I like your idea, but i have difficulties to use it
i have a datasource DS_2 and i just want to show specific Members of my keyfigures.
When i fill my dropdown with this code it just gets empty and returns an error. Somehow i have to say if i want to show the Key or Text ?
i also need this infiormation to be able to compare my elements in the if clause ?!
Can you help me out ?
Best regards
Manfred
DS_2.getMembers("003N81FHQ23D64UTALOPW7MVN",0).forEach(function(element, index) {
DROPDOWN_2.addItem(index, element);
/*  if ((element == value1) || (expression2 == value2)) {
   if_statements
  } else {
   else_statements
EDIT ....
I've found the way how to access the keys and values ... i have to define an array and then i am able to access the internal keys and Text.
Just for others searching ....
var ArrayMem = DS_2.getMembers("003N81FHQ23D64UTALOPW7MVN",0);
DROPDOWN_2.addItem("#", "No Filter");
ArrayMem.forEach(function(element, index) {
  if ((element.text == "Anzahl Sätze") || (element.text == "Gepäckgewicht")) {
   DROPDOWN_2.addItem(element.internalKey, element.internalKey + " - " + element.text);
This SCN article helped me out: http://scn.sap.com/community/businessobjects-design-studio/blog/2014/09/19/learn-about-arrays-in-design-studio-13
Best regards
Manfred

Similar Messages

  • How to show register attribute value in my register users report in FIM 2010 R2

    Hi,
    How to show register attribute value in my register users report in FIM 2010 R2?
    Please suggest on this.
    Regards
    Anil Kumar

    hello,
    the only way I know is manage the attribute descriptiona s a property and then enable the pivot table option "Show properties in tooltip".
    But I'm interested in what you mean with  "using
    "OLAP pivot table extension" is an option". How this works?
    Thanks
    bye
    Norman

  • LOV is showing only few values?

    Hi Everyone,
    I have one oaf page in which one lov is there which is showing only few values not all the values.
    but when i execute the same query in toad its showing 125 values.
    how can i make lov to display all the 125 values?
    can i do this thriugh personalization or i need to customize? plz give me the steps....
    Thanks.

    Kumar ,
    If Lov has 125 records , it will display only few records in first display set when you click on next button(link that appears right top on Lov pop up window )
    it will show remaining set of records , ( 10 / 20 values in each in set ) .
    If you are sure its not displaying entire set of rows , then probably their might be some restriction would have implemented in where clause to filter the records .
    Copy the query associated to LOV region and run from the data base and see what's the number of rows you are getting . If there is any variation then
    some ' where ' is causing the filtration , please look at the java source code of the page to track the issue .
    Keerthi
    Edited by: keerthioaf on Nov 15, 2012 4:39 AM

  • How to show only date in BO webi 3.1 text box

    how to show only date in BO webi 3.1 text box for e.g:-
    01/01/2005  (no time only date)

    hi,
    just check by which format your date is coming
    just create a one variable and check =UserResponse("Transaction Date From (mm/dd/yy)")
    if your output is in format of("mm/dd/yyyy hh:mm:ss a")
    then some format we have to write in todate syntax
    then your final formula for date would be
    =FormatDate(ToDate(UserResponse("Transaction Date From (mm/dd/yy)");"mm/dd/yyyy hh:mm:ss A");"dd/mm/yyyy")

  • How to show property bag values of site collection in web part on landing page in sharepoint online?

    How to show property bag values of site collection in web part on landing page in sharepoint online - office 365?

    You can use JavaScript Client object model to read the property bag values. Example:
    function getWebProperty() {
    var ctx = new SP.ClientContext.get_current();
    var web = ctx.get_site().get_rootWeb();
    this.props =  web.get_allProperties();
    ctx.load(web);
    ctx.load(this.props); //need to load the properties explicitly
    ctx.executeQueryAsync(Function.createDelegate(this, gotProperty), Function.createDelegate(this, failedGettingProperty));
    function gotProperty() {
        var myPropBag = this.props;
        alert(myPropBag.get_fieldValues()["allowdesigner"]); //returns the value of the key allowdesigner
    function failedGettingProperty(args, sender)
         //handle errors here
    Source:
    http://sharepoint.stackexchange.com/questions/37198/grab-a-specific-property-bag-using-ecma-script
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • How to show only key in mdx query

    Hello Experts
    i have mdx query such as :
    SELECT
    [Measures].MEMBERS ON AXIS(0) ,
    NON EMPTY [ZCHANNEL].members
    Properties [ZCHANNEL].[2ZCHANNEL]
    ON AXIS(1)
    FROM ZIC_TPL/ZIC_TPL_DETAIL
    SAP VARIABLES
    [ZVSOCALM] INCLUDING [0CALMONTH].[200605]
    the result from this query are zchannel text and zchannel key
    how to show only zchannel key ?
    really appreciate your help.
    regards
    JeiMing
    Message was edited by: JeiMing Tjiam

    Hi Juice
    Yes, i have already tried setting zchannel as key only in my query
    but the result from mdx query still shown key and text
    Regards
    JeiMing

  • How to insert new values in dropdown box through coding

    hi,
      I want to insert new values in dropdown box in a table.
    Please provide me the corresponding coding.i already did this code but result is empty dropdown.I mapped the context properly..
    int sklength=wdContext.nodeSkills().size();
          for(int i=0;i<sklength;i++)
        String getsub=wdContext.currentSkillsElement().getSubject();
        if(getsub.equals("50000138"))
             //IPrivateDetails1.INewskillElement el=wdContext.createNewskillElement();
             List lis=new ArrayList();
             //lis.add("Abap");
             //lis.add("Workflow");
             IPrivateDetails1.INewskillElement el=wdContext.createNewskillElement();
             el.setTskill("abap");
             lis.add(el);
              el.setTskill("workflow");
              lis.add(el);
              wdContext.nodeNewskill().bind(lis);
              //wdContext.nodeMonthsOfYear().bind(MonthsOfYear);
              wdContext.nodeNewskill().setLeadSelection(1);
        else
              wdContext.currentNewskillElement().setTskill("C++");
    waiting for a positive reply......
    with regards,
    S.Kiruthika

    kiruthika,
    Too many logical errors to explian.
    Should be:
    IPrivateDetails1.ISkillsNode nSkills = wdContext.nodeSkills();
    IPrivateDetails1.INewskillNode nNewSkill = wdContext.nodeNewskill();
    int sklength = nSkills.size();
    boolean cppAdded = false;
    for(int i=0;i<sklength;i++)
      String getsub=nSkills.getSkillsElementAt(i).getSubject();
      if(getsub.equals("50000138"))
        List lis=new ArrayList();
        IPrivateDetails1.INewskillElement el1 = nNewSkill.createNewskillElement();
        el1.setTskill("abap");
        lis.add(el1);
        IPrivateDetails1.INewskillElement el2 = nNewSkill.createNewskillElement();
        el2.setTskill("workflow");
        lis.add(el2);
        nNewSkill.bind(lis);
        nNewSkill.setLeadSelection(1);
      else if (!cppAdded)
        cppAdded = true;
        IPrivateDetails1.INewskillElement elCpp = nNewSkill.currentNewskillElement();   
        if (null ==  elCpp) {
          elCpp = nNewSkill.createNewskillElement();
          nNewskill.addElement(elCpp);
          nNewskill.setLeadSelection( nNewskill.size() - 1);
        elCpp.setTskill("C++");
    VS

  • How to capture the multiple value in list box

    Hi forums,
           How to select the multiple values in list box and how to catch that values in OnInputProcessing.
    Regards,
    Ravi.

    Hi,
    A possible method is:
    Get all fields of the form
        CALL METHOD request->get_form_fields
          CHANGING
            fields = table_fields.
    loop over the fields
        LOOP AT table_fields INTO wa_fields.
    test the name of the field
          CASE wa_fields-name.
            WHEN 'test'.
    retrieve the value of the field
              test = wa_fields-value.
    endcase
    endloop.
    Eddy

  • Set Default value in dropdown box.

    I used selection= "Default Value" in dropdown box to do this functionality.But when i selected other value it is
    selecting the default value and saving also.but i want that page initiated the default value should be there and user can select other values and save.
    Please give me solution for that as soon as possible.
    Thnks in advance.

    Actually i m using the following code and it is fetching value from a table.Can u understand this code n provide me solution for default value.
    <htmlb:gridLayoutCell columnIndex       = "5"
                                  rowIndex          = "2"
                                  colSpan           = "1"
                                  wrapping          = "FALSE"
                                  verticalAlignment = "TOP" >
              <htmlb:dropdownListBox id                = "unitDropdownListBox"
                                     table             = "<%= IT_MSEHI %>"
                                     nameOfKeyColumn   = "MSEHI"
                                     nameOfValueColumn = "ZMSEHI"
                                     onSelect          = "setunitValue"
                                     disabled          = "<%= LV_MODEITEM %>"
                                 selection         = "<%= it_item-unit %>" />

  • How to set a default value in dropdown list in Wendynpro ABAP? Help!

    Hi Experts,
           I have Webdynpro for ABAP application that shows a DropdownwithKey UI element.
    1. I am able to populate the dropdown list. But by default the list is not showing any value. Only when I select a value from the list then it shows it.
    So how to set the default value to the first value in the list? Any code sample will be really helpfull.
    I have written the following code:
    method WDDOINIT .
      DATA:
        node_category TYPE REF TO if_wd_context_node_info.
      node_category = WD_CONTEXT->GET_NODE_INFO( ).
      node_category = node_category->GET_CHILD_NODE( 'CATEGORY' ).
      data:    LT_VALUESET type WDR_CONTEXT_ATTR_VALUE_LIST,
               L_VALUE type WDR_CONTEXT_ATTR_VALUE.
    L_VALUE-VALUE      = 'V1'.
    L_VALUE-TEXT    = 'yesterday'.
    INSERT L_VALUE into table LT_VALUESET.
    L_VALUE-VALUE      = 'V2'.
    L_VALUE-TEXT    = 'today'.
    INSERT L_VALUE into table LT_VALUESET.
    L_VALUE-VALUE      = 'V3'.
    L_VALUE-TEXT    = 'tomorrow'.
    INSERT L_VALUE into table LT_VALUESET.
    node_category->SET_ATTRIBUTE_VALUE_SET(
                 NAME = 'CAT_VALUE'
                 VALUE_SET = LT_VALUESET ).
    endmethod.
    Note that: I am using webdynpro for ABAP.
    Thanks
    Gopal

    I am not sure how it works in Web Dynpro for ABAP, but in Web Dynpro for Java 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>(<defalut value>)
    This generally done in Initialization method of the controller.

  • How to show only one element in drop list(common VO)

    Hi All,
    I'm using 11g adf jdev.
    I have a common view object VO. In this VO one attribute is dropdown list , which i commonly used in some jsf pages .
    Now in one particular jsf page i want show only one element in the dropdown list .
    how can i handle with out distrib'g the common VO.
    THANKS IN ADVANCE

    BTW, why you want to display only one item in the list.
    If you are sure that the list will be having only one item, why don't you have it as inputText/outputText
    How do you filter out the item to be displayed in the list? If that filtering is done on listdatasource bound to the list, the list will automatically show only one item(i.e, the filtered item)
    HTH
    Sireesha

  • HOW TO SHOW A DEFAULT VALUE IN AN UPDATABLE TABULAR FORM

    I have an updatable form that has three columns:
    Employee Name (display only)
    Reporting Name (select list)
    Element Type ID (hidden and updatable)
    When the user select a value in the reporting name column it updates the
    element type id with the appropriate value. But when they look at the select list
    it has the select list values as well as the selected value in the list. How do I
    overcome this. My example is setup and ready to be reviewed at http://apex.oracle.com/pls/otn/f?p=32409:1
    Thank you
    Forrest
    p.s. weather in Anchorage Alaska Sunny and 45 degrees!

    Woody,
    I'm a little confused (not uncommon), as I don't understand why you have a hidden column to hold the element_type_id value.
    It looks like you're doing a simple SELECT LIST/LOV that shows the display value and stores the code value. I guess I don't understand why you need the hidden column. Shouldn't the code value end up in the APEX_ITEM array, so you can save it to your table?
    I would think you'd have a hidden value to hold the primary key for your table in one APEX_ITEM array, and the element_type_id column is the second parameter of the APEX_ITEM.SELECT_LIST() call. Then your manual update procedure saves that value to the right record, using the primary key from the hidden column?
    What am I missing here?
    Good luck,
    Stew

  • How to show only the wanted member in Journals?

    Hi experts,
    I would like to know how i can limit the members of one dimension than can be choose when user creates a journal. I mean, i know that it exists the property Enable_JRN than permit show only member with this property to yes of one dimension.
    But i would like have limitations for the combination of two dimensions, i mean, for example, if i have selected one member of dimension Account with ID 23456, i want to have the possibility of choose ONLY these flows, F99, F30. But for another member of account with ID 07898, only i want show (and then permit) the flow F35.
    Any ideas, about it?
    Thank for your help!!!

    BPC doesn't have a method for this form of dimension combination validation or restriction in the current form.  The only option I can think of is to possibly build a second application that contains the valid combinations, noted by using a single value entered at the valid combination.  Then using the valdation and Journal Script file to check the validity of the combination of the posted value using script logic or defering to an EVDRE that checks the Validation application during a send of data process, instead of using Journals.  We have been requested this behavior in the past to development, but your request as well would be beneficial, via SAP Support.

  • SHOW only PO option under DROPDOWN in sourcing application

    Hi,
    We are on SRM 7.0.1.
    Within Soucing Cockpit exists the button (Step2)
    Create DRAFT
    While pushing the button, a drop down list appears with the possible follow on documents:
    Auction
    Contract
    Purchase Order
    RFQ
    I just want to show ONLY Purchase Order.
    Question:
    How can I change the possible values within this dropw down list?
    Thanks!

    Hi,
    Probably, you need to take the help of ABAP web dynpro development.
    regards,
    Ranjan

  • How to display only Day value instead of DATE in Bex Report

    Hi Experts,
    We have a Month to date Report, in this report we need to display only day value instead of DATE value,
    Like
    if Date is 14.05.2010 we need to show only  14
    Regards,
    Chandra

    Hi ,
    Thanks for Quick Response
    we does have the option to create the char(calday or ...) value variable replacement with char (calday or ...) info object, we can  replace with Report r variable value only not with info object.
    i hope we can replace the with info object only with formula variable with replacement.
    My BEx Report is Designed like
    Columns
    0Calday
    Rows
    Plant
    Keyfigures
    Actual
    Plan
    Report output Looks like month to date
    0CALDAY            01.06.2010   02.06.2010  03.06.2010
    P1  ACTUAL            10                     8                    4
    P1  PLAN                 15                     6                    2
    P2  ACTUAL              5                   10                     7
    P2  PLAN                  4                      8                    3
    Report should be
    0CALDAY            1    2     3
    P1  ACTUAL      10     8      4
    P1  PLAN           15     6     2
    P2  ACTUAL        5    10    7
    P2  PLAN            4      8     3
    please let me know how can i achive this
    Regards
    Chandra

Maybe you are looking for