Skip to Content
author's profile photo
Former Member

Drop down values from SAP

Hi,

Is it possible to get F4 help in webdynpro input fields.

Thanks & Rgds,

Atul Sable

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Posted on Aug 04, 2004 at 01:24 PM

    Hi Atul,

    There are different approaches to get drop down values, e.g. DropDownByKey or the Object Value Selector.

    Please take a look at the documentation:

    Reference Guide with UI elements

    http://help.sap.com/saphelp_nw04/helpdata/en/19/00ce93b41940479aa32e81de3cda9a/frameset.htm

    DropDownByKey description

    http://help.sap.com/saphelp_nw04/helpdata/en/08/13dbfb6e779743bb2ca641ebcb3411/frameset.htm

    Object Value Selection

    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/web dynpro valuehelp - the object value selector.article

    Value Help in Web Dynpro Applications

    http://help.sap.com/saphelp_nw04/helpdata/en/c6/a5d4a523bf4b4c9085a114e46c6ed3/frameset.htm

    Tutorials are available also

    http://www.sdn.sap.com/sdn/developerareas/webdynpro.sdn?page=webdynpro_tutorials.htm

    Hope that helps!

    Karin

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 05, 2004 at 02:57 AM

    Yes, there is.

    If you press Alt-KeyboardDown or Alt-KeyBoardUp, you will be able to see the dropdown expand. You need to navigate to it using the tab key.

    All the keyboard mappings can be found in the Sap_urMapi<Browser>.js (mine is Sap_UrMapi_1e6) file that you can access by saving the webdynpro page with your web browser. You can probably google for the keycode values that you are interested in ( 35 is CtrlEndKey, 38 is arrowUp, etc ).

    Hope that helps.

    ( relevant fragment is below )

    function sapUrMapi_ComboBox_keydown(sId,e) {

    var o=sapUrMapi_ComboBox_getObject(sId);

    if (o.isdsbl) return;

    if (e.keyCode==9) {

    if(o.open) sapUrMapi_ItemListBox_selectHoveredItem(o.lid, oPopup.frame.window.document,e);

    if (o.hbtn) sapUrMapi_ComboBox_toggleButton(sId,false);

    if (o.isdd) sapUrMapi_ComboBox_addClass(sId,"urCoB1Hv",false);

    if (oPopup!=null && o.open) sapUrMapi_ComboBox_hideList(sId);

    return;

    }

    if(e.altKey && (e.keyCode==40||e.keyCode==38) ){

    if(o.open) sapUrMapi_ComboBox_hideList(sId);

    else sapUrMapi_ComboBox_showList(sId,e);

    return;

    }

    if(e.keyCode==40 || e.keyCode==38 || e.keyCode==33 || e.keyCode==34 || e.keyCode==35 || e.keyCode==36){

    if(o.open) sapUrMapi_ItemListBox_keydown(o.lid, oPopup.frame.window.document, e );

    else{

    sapUrMapi_ItemListBox_setParentId(o.lid, sId);

    sapUrMapi_ItemListBox_setSelectedKey(o.lid,o.key,document,false);

    sapUrMapi_ItemListBox_keydown(o.lid, document, e );

    }

    e.returnValue=false;

    return;

    }

    if (e.keyCode==27 && o.open) {

    o.txt.value=o.main.getAttribute("va");

    sapUrMapi_ComboBox_hideList(sId);

    sapUrMapi_ComboBox_focusDdlb(sId,e);

    return sapUrMapi_cancelEvent(e);

    }

    if (e.keyCode==13 && o.open) {

    sapUrMapi_ItemListBox_selectHoveredItem(o.lid, oPopup.frame.window.document,e);

    sapUrMapi_ComboBox_hideList(sId);

    sapUrMapi_ComboBox_focusDdlb(sId,e);

    return sapUrMapi_cancelEvent(e);

    }

    Add comment
    10|10000 characters needed characters exceeded