Context Mapping in web dynpro

Hi,
Steps which I underwent for context mapping is:
1. Opened view designer for start view .
2. Choose the context tab.
3. Opened the context menu for the root node context n choosed the option New->Value attribute.
4. entered the name for the attribute such as name n choosed finish.
5. From the context menu for the attribute Name choose Edit Context Mapping.
Problem is in my case "edit context mapping" is disable.
Regards

Hi
u have to add the Component Controller In the required Controllers List of the view
thwn u fill find the it enabled.
Suppose u want to map the value Attribute in the view to that of the Attribte in the Component Controller then add that ComponentContolle Name in the required Controllers of the view
ur Component controler shuld also have the Value Attribute of same data type.
u can go properties of the View there u have required Controllers and Add Button click on that and add ur controller Name

Similar Messages

  • Dynamic Context Mapping in Web Dynpro ABAP

    Hi Experts,
    How can I create two dynamic Context nodes, one in ViewController and the other in Component Controller and finally create a context mapping between them?
    Regards,
    Johan Kriek.

    Hi Johan,
    I found a method IF_WD_CONTEXT_NODE_INFO~ADD_NEW_MAPPED_CHILD_NODE that seems to be the one that I am looking for.
    I do have same idea but i have been trying to give solution by using above method,unfortunately here my server is down.check the below code. i didnt check this code due to server down.
    DATA: lo_nd_purchase_header TYPE REF TO if_wd_context_node,
          lo_el_purchase_header TYPE REF TO if_wd_context_element,
    ls_purchase_header TYPE wd_this->element_purchase_header,
          lo_node_info type ref to if_wd_context_node_info,
          lo_child_node_info type ref to if_wd_context_node_info,
          MAPPING_INFO type WDR_CONTEXT_MAPPING_INFO.
    * navigate from <CONTEXT> to <PURCHASE_HEADER> via lead selection
      lo_nd_purchase_header = wd_context->get_child_node( name = wd_this->wdctx_purchase_header ).
                  CALL METHOD LO_ND_PURCHSE_HEADER->GET_NODE_INFO
                    RECEIVING
                      NODE_INFO = lo_node_info.
           MAPPING_INFO-controller = 'ZWDC_ALV'. "conponent name
           MAPPING_INFO-path = 'PURCHASE_HEADER'. "Controller context node name
          CALL METHOD LO_NODE_INFO->ADD_NEW_MAPPED_CHILD_NODE
            EXPORTING
              CHILD_NAME      = 'PURCHASE_HEADER'
              MAPPING_INFO    =  MAPPING_INFO
    *          IS_STATIC       = ABAP_TRUE
            RECEIVING
              CHILD_NODE_INFO = lo_child_node_info

  • Cannot see Ecatt option in context menu in web dynpro abap in SE80 ECC 6.0

    Hi ,
    I saw a presentation by Thomas in which there is option of recording ecatt script on context menu in web dynpro abap application.we are on ECC 6.0 we are trying to record WDA applications and test them by using Ecatt but I am unable to see the option of recording the ecatt script in SE80 editor.
    Why could this be happening

    Thanks ,
    I saw that disappointing note ...any other way to automate web dynpro abap testing ? please advise.

  • Creating Client-side Image Map in Web Dynpro

    Hi,
    How can I create a client-side Image Map in Web Dynpro application?
    My application consists of a screen-size image in which several areas will have to link to URLs and actions. I have browsed through the "Web Dynpro UI Element Reference Guide," but could not find anything appropriate.
    Can someone give me an advice? Thanks.
    Teecheu

    It doesn't, there is no corresponding UI control for this.
    There is only onAction event on BusinessGraphics (have not working with them since SP5, eventing did not work at that time) and onObjectAction in GeoMap (never see it in action, probably an option for you if your map is geographic map
    WBR,
    VS

  • Type Mapping in Web Dynpro

    Hi there,
    rather a Web Dynpro newbie, I have scanned the documentation and forum threads to find whether there is something like a type mapping mechanism (say, your web service automatically creates Calendar attributes from xsd:dateTime elements, and you want to display them as dates in your view), but it seems there isn't.
    I have to do such type conversions by myself (by providing additional value attributes to my context node and populate them after executing the service call), right? Or did I overlook something?
    Regards
    Nils

    Hi Nils,
    define calculated context attributes of type readOnly=false for this purpose. In the generated getter and setter methods you can implement your own format (getter) and parse (setter) logic (or type mapping like you call it).
    Excerpt from the Web Dynpro Help:
    <i>Application-specific validations: You can use the setter and getter methods that are generated for writable calculated context attributes to format as well as parse and validate data application-specific. You can check the user input in the mutator method and save it in a separate, non-calculated context attribute. An error message is displayed if this is not successful. If you want to display the input value in the case of errors as well, then first you have to save the incorrect value in an additional usual context attribute, from which the access method of the calculated attribute is then supplied.</i>
    Also read thread Re: Problem with time input field about problems with time input fields.
    Regards, Bertram

  • Geo MAP in Web dynpro Application

    Hi all,
       we are trying to test the GeoMap Functionality in SAP Help we found that some Software Component is required to run the Geo Map Web Dynpro Application as given below
    "The GeoMap UI element can only be used with a special software component that is provided by the geographical maps.
    This software component which you can use to expand the Internet Graphics Service (IGS) is not included in the delivered SAP Web Application Server package. It must be purchased from a third-party provider. The GeoMap UI element cannot be displayed without this complementary software component. "
    can u help me with some pointers to these third party providers.
    Regards
    Sai Krishna Reddy

    Hi Sai,
    you can see the following tutorial
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tutorial on using geo services with web dynpro - 22.htm
    for GeoService information you can visit the following sites
    1.  http://www.geomap.com/
    2.  http://www.nacgeo.com/geoservices.asp
    Regards,
    Shubhadip

  • Extranal contex mapping in web dynpro java 7.0

    hi,
    how to declare the usage of other webdynpro DC,how to pass data between the two DCs and Difference between External Context mapping and Normal mapping with working example.can any one send pdf
    G.srinu

    Hello Srinu,
    Refer the followings:
    For External Mapping and Context Mapping
    External Context Mapping
    context mapping
    For Used DC Context Mapping
    How to pass data to a used DC.
    Regards
    Nizamudeen SM

  • Missing triangle at context icon in Web Dynpro Application

    Hi,
    do anybody might know how I can get this triangle (see [Video|http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/6065bee4-a317-2c10-4c8c-cfa1c3eac185&overridelayout=true] at minute 06:05) at the icon of the context in webdynpro.
    This problem occurs under the topic of [How-to Integrate Visual Composer UIs within a CE7.11 BPM Process|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2011e628-b317-2c10-9fa7-952155e10705].
    This triangle is very important in creating BPM processes, because when you allocate this dynpro to a human acitivity the attributes without triangle are NOT recognized and, as result, can NOT be mapped in process composer!!!
    I appreciate any comments!
    Regards

    Time will tell. That's, in the meantime, is my slogan for SAP products - every product.
    It is always funny to see that sometime most problems will get solved by itself - so right here.
    I am wondering that nobody could help me in solving this problem because the solution is so easy.
    The triangle indicates, that the context attributes at Component Controller inherit the context attributes from the Interface Controller!!! That's it.
    This also apply for the events. Events which are defined in the Interface Controller and used at the Component Contoller (Otherwise error appears) are marked with a triangle!
    Regards

  • Dynamic context binding in web dynpro alv

    I use dynamic context binding (see code below to show and edit the ALV table.
    'DB_TABLE' is a tranparent table. It works fine.
    But now this table should be expanded with additional fields which are only known at runtime and could be different from case to case.
    How can I get these fields in the context dynamically?
      DATA:
            rootnode_info TYPE REF TO if_wd_context_node_info,
            dyn_node      TYPE REF TO if_wd_context_node,
            tablename   TYPE string.
      rootnode_info = wd_context->get_node_info( ).
      tablename = 'DB_TABLE'.
      cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
        parent_info = rootnode_info
        node_name = tablename
        structure_name = tablename
        is_multiple = abap_true ).
      DATA:
            stru_tab TYPE REF TO data.
      FIELD-SYMBOLS: <tab> TYPE table.
      CREATE DATA stru_tab TYPE TABLE OF (tablename).
      ASSIGN stru_tab->* TO <tab>.
      SELECT * FROM (tablename) INTO CORRESPONDING FIELDS OF TABLE <tab>.
      dyn_node = wd_context->get_child_node( name = tablename ).
      dyn_node->bind_table( <tab> ).

    You should create a structure dynamically and use this as the context structure. See the coding below, where a structure is created, which contains CARRID and CONNID.
    DATA: node_info type ref to if_wd_context_node_info,
          struct_type TYPE REF TO cl_abap_structdescr,
          table_type  type ref to cl_abap_tabledescr,
          comp_tab    TYPE cl_abap_structdescr=>component_table,
          comp        LIKE LINE OF comp_tab,
          my_table    type ref to data,
          my_row      type ref to data.
      field-symbols: <table> type table,
                     <row> type data,
                     <flight> type sflight.
    * build a structure description from the list of single fields
      comp-name = 'CARRID'.
      comp-type ?= cl_abap_datadescr=>describe_by_name( 'S_CARR_ID' ).
      APPEND comp TO comp_tab.
      comp-name = 'CONNID'.
      comp-type ?= cl_abap_datadescr=>describe_by_name( 'S_CONN_ID' ).
      APPEND comp TO comp_tab.
    * note this structure contains the fields "CONNID" and "CARRID"
      struct_type = cl_abap_structdescr=>create( comp_tab ).
    * now the nodeinfo is created
      node_info = wd_context->get_node_info( ).
      node_info = node_info->add_new_child_node(
        name                         = 'MY_NODE'
        IS_MANDATORY                 = ABAP_true
        IS_MULTIPLE                  = ABAP_true
        STATIC_ELEMENT_RTTI          = struct_type
        IS_STATIC                    = ABAP_false
    * fill new node;
      data: l_node type ref to if_wd_context_node,
            l_flight type STANDARD TABLE OF sflight.
      l_node = wd_context->get_child_node( 'MY_NODE' ).
      l_flight = wd_assist->get_flights( ).
    *  if you could create a local data type, would be fine, but if you have to do it dynamically ...
      struct_type = node_info->GET_STATIC_ATTRIBUTES_TYPE( ).
    * create tabledescriptor from structdescription (standard table, no keys)
      table_type = cl_abap_tabledescr=>create( p_line_type = struct_type ).
      create data my_table type handle table_type.
      assign my_table->* to <table>.
      loop at l_flight assigning <flight>.
        create data my_row type handle struct_type.
        assign my_row->* to <row>.
        move-corresponding <flight> to <row>.
        append <row> to <table>.
      endloop.
      l_node->bind_table( <table> ).

  • Context Design in web dynpro for java

    hello friends
    i want to design context for the vehicle application.
    search by vehicle type,model,color.
    how to design node and attributes

    Hi
    Please go to following link, this is similar to what you are looking for. You can create as per your requirement. Below is the link -
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09fd8a0-96ac-2910-a0ba-f00d2ab70949
    Regards
    Sandeep

  • Google Maps inside Web Dynpro

    I've been trying to run Google Maps inside Webdynpro ABAP but I'm faced with a problem.
    In a normal HTML page with flash component I use Flashvars to send the API key to the component, but in SAP I can't use them. The result is API key error.
    I've got the key inside the SWF but it doesn't work without Flashvars. Is there a way to use them?
    EDIT: So, I put the HTML file in the root of the site, instead of a subfolder and now it works....weird. The question then is, to use google maps in a Webdynpro which URL to I need to register the API key for.
    EDIT2: It was a cache problem....the "folder site" was store in cache. It works fine now.

    Hi
    I have seen no documentation supporting Google Chrome for SAP WD applications
    Therefore end user issues may occur
    However if you have evidence to the contrary let me know
    Best wishes
    Stuart

  • How to get Portal User Context  in Web Dynpro application

    I have successfully integrate a web dynpro app into SAP Netweaver Portal.
    Within my web dynpro app, how can I get portal user context information such as first name, last name, job title or some newly created ume attibutes.
    Is there any programmatical approach to get portal user context in my web dynpro. I not sure whether I can use the following codes in web dynpro?
    IUserContext userContext = request.getUser();
    String firstName = userContext.getFirstName();
    String lastName = userContext.getLastName();
    If yes, can someone point me the name of the jar file I have to import.
    Note : The SAP Netweaver installation that runs my web dynpro app is same with the SAP Portal.

    Hi ,
    you can use the below code to get User details and  add com.sap.security_2.0.0 > lib > com.sap.security.api.jar
    try
              IWDClientUser clientUser = WDClientUser.getCurrentUser();
    String firstName = clientUser.getFirstName();
    String lastname = clientUser.getLastName();
    catch (WDUMException e) {
                wdComponentAPI.getMessageManager().reportException("Error Retrieving User"+e.toString(),true);
    Regards,
    Sunitha Hari

  • Context not updated from adobe from fields to ABAP web dynpro every time

    Hi,
    I work through a turtorial for interactive adobe form in web dynpro. The turtorial link is as following:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3?prtmode=navigate
    I use Active X adobe form display type and submit button. Basically, it works.
    My problem is the 1st time I change the out_amount in adobe form and click 'Submit'. Everything OK. The corresponding context field in Web Dynpro is updated and showed in my own web dynpro field.
    Then, I change the out_amount again in Adobe form and click 'Submit' again. The context is not updated.
    The interesting thing is when I click 'Submit' the 3rd time, it works again. Same situation happens for 4 and 5 times click 'Submit' and so on.
    It seems I need to click 'Submit' two times and the web dynpro context is then  updated.
    Is there anyone have any clue about my problem?
    Thank you in advance!
    Trey

    Please provide the solution.......

  • Context mapping for Interactive ADOBE form

    I could able to create the form context from the web dynpro context. I am stucked at mapping between the two contexts.
    When I insert the element Interactive form in the layout of Web Dynpro and specify the template source,
    We have the option of  automatically generate the context from form interface and binding form object to the
    This context. But I got stucked at the point of mapping between the two. The structure is not appearing in the web dynpro context after mapping. Can anybody tell is there any procedural error or any configuration is required?

    For further questions, check the follow
    https://www.sdn.sap.com/irj/sdn/adobe
    Improving the Performance of Adobe® LiveCycleu2122 Designer Forms(scripting)
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_perf_guidelines.pdf
    Interactive Forms Based on Adobe Software: Overview
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e635e290-0201-0010-a9be-9e8e4ce04770
    Adobe Interactive Forms
    http://www.saplounge.be/Files/media/pdf/Huberland-Interactive-Forms-2007.10.10.pdf
    Taking interactive forms to next level
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8c103c36-0301-0010-cda8-f6b381bedb6e
    Introduction to Adobe PDF Library SDK(PDFL SDK)(Simply scroll the document)
    http://partners.adobe.com/public/developer/en/webseminars/PDFL_WebSeminar.pdf
    Creating Interactive forms in webdynpro for java
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
    PDF-Based Print Forms/SAP Interactive Forms by Adobe
    http://help.sap.com/saphelp_nw04s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
    Date Objects in Adobe Designer
    http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
    Checking and Testing a PDF-Based Print Form
    http://help.sap.com/saphelp_nw04s/helpdata/en/c2/1fe9aa4d7b413e8515f90b73729e97/frameset.htm
    Architecture
    http://help.sap.com/saphelp_nw04/helpdata/en/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm
    http://www.nl4b.com/Adobe/Invitation_SAPBrussels_Q407.pdf

  • Web Dynpro Session

    I apologize if this has been discussed before. However, I could not find the answer on the forum.
    I have read on the forum it is not possible to access the HttpSession object from Web Dynpro.
    What is the best approach then to store objects per browser session?

    Hi Harm,
    It is not true that you cannot access the HttpSession object in a Web Dynpro, the thing is that is not supported by SAP, here is the code.
    HttpServletRequest request = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();     
         HttpServletResponse response = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletResponse();
         HttpSession sesion = request.getSession();
    For this you will have to add servlet.jar to your build path.
    A better way to mannage data is using the Context of a Web Dynpro View o Controller, I suggest you read this document
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial%20on%20creating%20an%20extended%20web%20dynpro%20application%20-%202.htm">https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial%20on%20creating%20an%20extended%20web%20dynpro%20application%20-%202.htm</a>
    which has the basic step for creating context and mapping it.
    Regards.
    *Remember rewarding point if the ansewear was helpful.

Maybe you are looking for

  • Dunning interest calculation

    Hi All, When I checked table MHND, the dunning interest is calculated in such a way that it doesn't consider the previous dunned date. Meaning : Dunning ran on 12-01-09 interest calculated is 500.00 ( 2 docuemnst considerded from bsid as seen from ta

  • How to know if an element is processed in any payroll process

    Hi All, I have a requirement where I should not process a particular element if it was processed anytime in the history. how do I frame a query to get the details of any trace of this element being processed. Thanks

  • Installing SSD in spare bay on MacPro

    Hi, Having a bit of a problem installing a Samsung 2.5 inch SSD into the second bay of my MacPro. I bought the Icy Dock for converting the 2.5 to a 3.5  to fit the bay it is the tool-less model and requires that you slide the SSD forward using finger

  • Embed tag always caling QT

    Hello I placed a simple embed tag in a page and it always calls for the Apple QuickTime player for what is only an mp3 file. I have (Windoze) configured to use the Windows Media Player for any mp3, but it still uses the QT. This is totally outside of

  • What movie format will imovie play

    I have few .mov files i would like to play on my ipad. Will imovie play these files?