Set value of dropdown menu to default

Hi all,
I'm using Application Express 4.2.0.00.27
Was trying to set a default value in a drop down menu so that when the user access the page it can load some data
Now I know that I can do this using the default section while editing  the drop down item or using a computation
The problem is that I need the drop down to display something and return something else
The LOV populating the dropdown is as per following:
ItemA   1
ItemB   2
....and so on
How could I set perhaps "1" as a default return value while displaying ItemA ?
Thank you !

Can you elaborate on what a "drop down menu" is? I think you're using different words to describe "select list"
If that's the case, check out the attribute help for the lov definition. Also check through the sample application.

Similar Messages

  • How to set value for Dropdown control using Querystring filter wepart

    Hi,
    I have a dropdown in my customized list form and need to set the value for the dropdown control using query string filter web part.
    I am able to set value for textbox control using Query String Filer web part.
    But, since the dropdown values are not populated on form load, the value is not set for dropdown control.
    How to load the values in dropdown control on form load and set a value using Query String filter webpart?
    Thanks,
    dhijit

    Hi,
    According to your post, my understanding is that you want to filter choice field using Query String Filter web part.
    To filter using query string filter web part, we can set the default value for the choice field in the query string filter web part panel as below, then connect to the list.
    Now it would be filter by the value you have set.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Setting values for items other than default value

    How can I set the value of Items (hidden item, display item etc) without using any of navigational control such as list, select list or tree?
    I have a two report region on a page and no navigation control. the requirement is only one region should be displayed at one point of time.
    Condition that drives this are passed from other page through links.
    The code is like this
    For Region A
    select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOE
    For Region B
    select * from table a where cola = :P_VALUE_FROM_OTHER_PAGE; //value passed is JOHNnow there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
    for e.g.
    for region A
    value in expression1 = expression2
    P_HIDDEN = 1
    for region B
    P_HIDDEN = 2my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
    Thanks,
    R
    now there is the hidden item :P_HIDDEN that i am comparing in expression1 = expression2 conditions for each region
    for e.g.
    for region A
    value in expression1 = expression2
    P_HIDDEN = 1
    for region B
    P_HIDDEN = 2
    my issue is, where can I set values for P_HIDDEN item (set to 1 and set to 2) without any navigational control on the page.
    Thanks,
    R
    Edited by: Rich V on May 21, 2010 10:41 PM

    The question I would ask is:
    How are you determining which region you want to be displayed by default?
    Either way, you could potentially use a 'before header' computation to calculate the value of your hidden item, although you'd also need to include some sort of conditional means of preventing the computation from running everytime to run the page (otherwise you'd never see your other region) e.g. you might only want it to run if the hidden item is null.

  • How to Set Default Value of Dropdown Menu on Screen Painter

    Hi,
    I have 2 dropsdown menu, the first one's dropdown values are taken as defined (input1 TYPE bcont-type). The second dropdown values are defined using FM vrm_set_values. How do I set the default value for both dropdown in screen painter?

    Hi,
    Try this
    PARAMETERS: P_EBELN TYPE EKKO-EBELN MODIF ID S1 AS LISTBOX VISIBLE
      LENGTH 20.
    ID = 'P_EBELN'.
    VALUE-KEY = 1.
    VALUE-TEXT = 'Hi'.
    APPEND VALUE TO T_DROP.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
        id                    = ID
        values                = T_DROP
    EXCEPTIONS
       ID_ILLEGAL_NAME       = 1
       OTHERS                = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE T_DROP INTO WA_DROP INDEX 1.
    P_EBELN = WA_DROP-TEXT.

  • 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 get all the values from the dropdown menu

    How to get all the values from the dropdown menu
    I need to be able to extract all values from the dropdown menu; I know how to get all those values as a string, but I need to be able to access each item; (the value in a dropdown menu will change dynamically)
    How do I get number of item is selection dropdown?
    How do I extract a ?name? for each value, one by one?
    How do I change a selection by referring to particular index of the item in a dropdown menu?
    Here is the Path to dropdown menu that I'm trying to access (form contains number of similar dropdowns)
    RSWApp.om.GetElementByPath "window(index=0).form(id=""aspnetForm"" | action=""advancedsearch.aspx"" | index=0).formelement[SELECT](name=""ctl00$MainContent$hardwareBrand"" | id=""ctl00_MainContent_hardwareBrand"" | index=16)", element
    Message was edited by: testtest

    The findElement method allows various attributes to be used to search. Take the following two examples for the element below:
    <Select Name=ProdType ID=testProd>
    </Select>
    I can find the element based on its name or any other attribute, I just need to specify what I am looking for. To find it by name I would do the following:
    Set x = RSWApp.om.FindElement("ProdType","SELECT","Name")
    If I want to search by id I could do the following:
    Set x = RSWApp.om.FindElement("testProd","SELECT","ID")
    Usually you will use whatever is available. Since the select element has no name or ID on the Empirix home page, I used the onChange attribute. You can use any attribute as long as you specify which one you are using (last argument in these examples)
    You can use the FindElement to grab links, text boxes, etc.
    The next example grabs from a link on a page
    Home
    Set x = RSWApp.om.FindElement("Home","A","innerText")
    I hope this helps clear it up.

  • Remove default value from dropdown list

    I am currently working with Acrobat XI Pro version. I want to know whether it is possible to remove the default value from a dropdown list.
    When the list has less than 4 items, it is possible to deselect the default value by pressing the whitespace below. However, when there are more items, this is not possible anymore.
    I have read that you should include a whitespace as item in the item list, however, then you will see an empty list item when people are working with the pdf which is not preferable.
    So, does anyone know how to remove the default value from a dropdown list?
    Thanks!

    Ok, I found a perfect workaround for my problem using FormsCentral for Acrobat. Here is what you should do:
    Step 1:
    -   Open FormsCentral
    -   Create New Form (Choose Blank Form)
    -   Click on the dropdown icon to create a new dropdown
    -   Fill in the list items by clicking on the edit (you also can add a label if you want)
    -   Click: File > Save as PDF Form...
    Step 2:
    -   Open the saved PDF (you now see a blank pdf with a dropdown menu)
    -   Click: Tools > Forms > Edit Form (when a popup shows that you should save a copy of the document in order to make changes, press "Save as a copy" and open the pdf copy file with Acrobat)
    -   Select the dropdown, copy the dropdown and paste it in the desired document
    Now you have a dropdown menu without a default choice. Keep in mind that you cannot edit the items in the dropdown, because a default choice will be chosen and you have to use the pdf copy file again. As long as you don't click on a list item, it doesn't choose a default choice.
    It is not a perfect solution, but it works for me.
    Good luck and thanks!

  • Custom Brush sets don't save to dropdown menu

    Hey!  I was wondering if someone could give me some advice on saving brush sets.  I've recently upgraded from Elements 7 to PS CC and the way I saved brush sets in Elements doesn't seem to work in CC.
    I can make and save a brush set fine.  I save it in C:\Program Files (x86)\Adobe\Adobe Photoshop CC\Presets\Brushes alongside the default "Assorted Brush" and all the others, and I can load them into an existing default set.
    They never appear in the dropdown menu though.  I've tried saving through the preset manager and the dropdown menu and saving them over an existing brush set but it reverts to the old brush preset as soon as I changed between default sets.
    On restart, they stay in the brush set if I load it before closing.
    Can't get it to work no matter what I try.  What am I doing wrong? :S

    Ah, that makes sense, coupled with the fact that the entire menu for external Speedlite control isn't available if no flash or a non-compatible flash is attached. 
    Here's Canon's response. Its a firmware bug after all, but hopefully can/will be fixed in the next firmware:
    We appreciate your continued correspondence regarding your EOS 5D Mark III, EOS 7D, and Speedlite 580EX II.
    Thank you for your response.  Tests were performed with the EOS 5D Mark III, EOS 7D, and the Speedlite 580EX II to duplicate the problem you are encountering.  Surprisingly, by following the settings you stated in the forum, we were able to duplicate the problem with our equipment too.  I have submitted a notification to our engineers who will look into the matter further and hopefully a future firmware update may be released to fix the problem.  I apologize for any inconvenience this may have caused.
    Please let us know if we can be of any further assistance with your EOS 5D Mark III, EOS 7D, and Speedlite 580EX II.
    Thank you for choosing Canon.
    Sincerely,
    Rodney
    Technical Support Representative

  • Dropdown Menu same raw value changes back to top list item

    Ok guys.  I have such a weird issue.  I have some code as follows from a dropdown menu:
    <items>
                         <text>Zeutering</text>
                         <text>Rabies 1 Year (Dog or Cat)</text>
                         <text>Puppy Pack (DAPPv and Dewormer)</text>
                         <text>Kitten Pack (HCP+FeLV and Dewormer)</text>
                         <text>Adult Dog Pack 1 (Rabies, DAPPvL2+CV and Dewormer)</text>
                         <text>Adult Cat Pack 1 (Rabies, HCP+FeLV, and Dewormer)</text>
                         <text>Deluxe Adult Dog Pack (Rabies, DAPPvL2+CV, Bordatella, and Dewormer)</text>
                         <text>Heartworm Pack (Heartworm test + six months of prevention)</text>
                         <text>Microchip (Home Again Chip)</text>
                         <text>Flea and Tick Medications</text>
                      </items>
                      <items save="1" presence="hidden">
                         <text>65.00</text>
                         <text>10.00</text>
                         <text>20.00</text>
                         <text>25.00</text>
                         <text>35.00</text>
                         <text>35.00</text>
                         <text>50.00</text>
                         <text>95.00</text>
                         <text>30.00</text>
                         <text>10</text>
                      </items>
    The problem I am having is this.  When I select  <text>Adult Cat Pack 1 (Rabies, HCP+FeLV, and Dewormer)</text>  from the dropdown menu the option goes to   <text>Adult Dog Pack 1 (Rabies, DAPPvL2+CV and Dewormer)</text>   which is the option above the option I selected as noted above.  The only thing I can think of is that because they have the same value it is causing this to happen.  I've never had an issue like this before with dropdown menus so I'm not sure how to fix it.
    Any help is much appreciated.
    Justin

    Hi Justin,
    You are right, the dropdown only works if the values are unique.  So one fix would be to add something to the value making it unique and then striping it off when selected.  So if your values were;
                <items save="1" presence="hidden">
                   <text>65.00:1</text>
                   <text>10.00:2</text>
                   <text>20.00:3</text>
                   <text>25.00:4</text>
                   <text>35.00:5</text>
                   <text>35.00:6</text>
                   <text>50.00:7</text>
                   <text>95.00:8</text>
                   <text>30.00:9</text>
                   <text>10:10</text>
                </items>
    In the change event you could have some JavaScript code something like;
    var valueId = this.boundItem(xfa.event.newText);
    app.alert(parseFloat(valueId));
    The parseFloat function will stop parsing when it hits an invalid character like the colon.
    It is tempting to use a natural key (as you have) but I would probably have used a surrogate key (that is something only the form knows about, like 1,2,3, etc) and then look it up in some structure maybe as simple as a JavaScript array, depends on the complexity of your form.
    Hope this helps,
    Bruce

  • Can you set a graph to it's default value programmatically?

    I have a waveform graph (control on the panel). I'd like to set it back to it's default value through a property node (or something). Is there a way to do this?

    Woah slow down, you've given us 14 minutes to react. I'm not sure but has a graph not a 'reinitialize to default' method?
    And out of curiosity, what is the advantage of dynamic data over doubles/waveforms/....? I am totaly NOT familiar with them but if you can be the devils advocate it would be nice.
    Success,
    Ton
    (and yep we're all our Own worst Enemy)
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Setting the visibility of check box based on values of dropdown field

    Dear Experts,
    I have to set the checkbox visible/hidden based on the values of dropdown field.
    Request you to please provide code example.
    Regards,
    Upendra

    Hi,
    For capturing the selected value from the dropdown (ComboBox in SAPUI5) field use the change event of the combobox UI element. Within this you can get the selected value using the getLiveValue() method of the combobox.
    Then depending on the value you can set the visible boolean property of your checkbox.
    Refer to the link ComboBox for more details.
    Regards,
    Saurabh

  • Safari is not showing setting value in default extension page.

    That seems to be a safari bug that don't refresh setting value until safari is restarted. That page is safari standard page that shows settings in safari gui.

    Problem is solved. We call the bean in <af:switcher component ,<af:selectOneChoice and <af:selectInputText. We expected that switcher would call the bean the first time the page is loaded. But after some debugging we found out that components within this switcher are called first. Thats why our code failed.

  • Resetting a dropdown menu selection

    I am using a dropdown menu as a form of navigation between screens. On screen one you drop the menu down and can choose to go to screen two. However, when I come back to screen one the drop down menu remains on the "Screen Two" option. Is there
    any way to reset the drop down menu to say"Screen One" upon leaving the page?
    Thank you!

    The only way I know about is to reset dropdown each time you navigate back to Screen1. To do that just set a variable in screen1 property
    OnVisible
    UpdateContext({active: true})
    and in screen1 property OnHidden
    UpdateContext({active: false})
    Then in dropdown visual add this in Items
    If(active=true, .... your data source here ...)
    Or perhaps easiest way is instead of resetting datasource of dropdown, you can reset  dropdown default by adding this into
    Default property of dropdown
    If(active=true, "Screen1")

  • Help to set value of an attribute based on value selected in another field

    Hi all,
    I want to set the value of an attribute STRUCT.ITM_TYPE to a default value whenever i select one of the value from dropdown list in LC_STATUS.
    I tried to add an event in the get_p method of the lc_status but there i cant able to access the context of the ITM_TYPE as the fields are in different views.
    Please Help,
    Rewards will be awarded.
    Naveenn

    Hi Vineet,
    Thanks for the suggestion.
    Please chech my code and suggest me for any corrections.
    In the Get_P_LCSTATUS method of Context Node BTADMINH in View1.
    METHOD GET_P_LCSTATUS.
      CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
        WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'ACT_STATUS_SELECTED'.
      ENDCASE.
    ENDMETHOD.
    In event handler method in Context Node BTADMINI in View2
    method EH_ONACT_STATUS_SELECTED.
    * Added by wizard: Handler for event 'ACT_STATUS_SELECTED'
    data: lr_ent1 type ref to cl_crm_bol_entity,
             lr_ent2 type ref to cl_crm_bol_entity.
    lr_ent1 = me->typed_context->BTADMINH->collection_wrapper->get_current( ).
    check lr_ent1 is bound.
    * To Get Value of First Attribute
    lv_attr1 = lr_ent1->get_property_as_string( 'LC_STATUS' ).
    * To Set Value of 2nd Input Field now based upon this value
    lr_ent2 = me->typed_context->BTADMINI->collection_wrapper->get_current( ).
    *lr_ent2->lock( ).
    lr_ent2->set_property_as_string( iv_attr_name = 'ITM.TYPE'  iv_value = 'RREQ' ).
    endif.
    endmethod.
    but during syntax check its showing error messge as BTADMINH is unknown.
    2) How and where to bind the context node in custom controller.
    Please help.

  • Help Needed in creating dropdown menu in excel using JXL

    Hi,
    I am trying to create dropdown menu in using JXL.
    The Code:
    private void createRequiredRows(WritableSheet writableSheet, List unallowCodeList,int rowCount
                   , int startRowNo,int colCount) throws WriteException {
    Label unallowCode = null;
              WritableFont noBoldFont = new WritableFont(WritableFont.ARIAL, 8,WritableFont.NO_BOLD);
              WritableCellFormat dropDownCellFormat = new WritableCellFormat(noBoldFont,new NumberFormat("000"));
              dropDownCellFormat.setAlignment(Alignment.RIGHT);
              WritableCellFeatures writableCellFeature = new WritableCellFeatures();
              writableCellFeature.setDataValidationList(unallowCodeList);
              for (int rowNo = startRowNo; rowNo < startRowNo + rowCount; rowNo++) {
                   unallowCode = new Label(colCount, rowNo, "Select",dropDownCellFormat);
                   unallowCode.setCellFeatures(writableCellFeature);
                   writableSheet.addCell(unallowCode);
    it creates a drop down in the Excel.
    But writableCellFeature.setDataValidationList(unallowCodeList); has a limitation of characters .So the dropdown menu gets truncated when it exceeds the limitation.
    Can anyone help me in creating dropdown menu in excel without any limitation using JXL..
    Thanks,
    Bisin

    Hi,
    I dont know the solution for this, but heres a work arround
    //create new label some where else in the excel sheet as shown below
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                 lblcmbdata = new Label(75, i, (i+1)+" satish", format);
                 sheet1.addCell(lblcmbdata);
    }//set the validation range as shown below
    writableCellFeature.setDataValidationRange(75,0,75,1000);
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);this will create a combo list with 1000 values
    also you can keep the data to be populated in the different sheet in same workbook by creating a named range as below
    workbook.addNameArea("cmbdata", sheet1, 0, 0, 0, 1000);
    // then fill the data in sheet1
    Label lblcmbdata;
    for(int i=0; i<1000; i++)
                    lblcmbdata = new Label(0, i, (i+1)+" satish", format);
                    sheet1.addCell(lblcmbdata);
    //set the validation named range as below
    writableCellFeature.setDataValidationRange("cmbdata");
    Label cmb = null;
    cmb = new Label(0, 1, "Select",format);
    cmb.setCellFeatures(writableCellFeature);
    sheet.addCell(cmb);Thanks and Regards
    Satish

Maybe you are looking for