Reloading Context Elements

I am using all non-validating action handlers, and managing user input validation myself.  I have a situation where the user wants to not save the changes he or she has made and simply reload the saved data.  The situation involves a tree structure, so I could always just invalidate the appopriate node to reload the data, but I'd like to avoid this b/c I'd have to reselect the current element after invalidation.  I've implemented reload methods on my model objects being used, so I don't have to invalidate the node, but I've run into a problem with invalid data (such as a string in a date field).  When the user enters invalid data, and does something to cause the element to be reloaded, all the valid fields are reloaded - but the fields with invalid data are not reloaded.  Is there any way to drop the user input for the element (other than going through all the fields clearing out any invalid data - then calling the model object reload method)?
Thanks,
-Dave

David,
I guess you already know this document:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/usage of validating and non-validating actions.pdf
But it worth to re-read this again (I trap to almost the same situation as you
The document clearly highlights that you have to <b>reset invalid context attributes on your own</b> in non-validating action handler.
VS

Similar Messages

  • Type (..) of the context element (..) in view (..) does not exist

    Hi all
    I have got an question. I have an ABAP webdynpro with a context node which is connected to an ABAP structure.
    The context node is mapped to a context node of a view and the fields of the view are mapped to the context node of the view. So the data is send through them. That works fine.
    Within this ABAP structure i have added 3 extra new fields. After creating them i activated the structure.
    Within the webdynpro i have updated the context mapping between the node and the structure and also between the different mappings between the views and the componentcontroller where this node is used,
    Within the context tab of all the views i see all the three new fields.
    When i try to map those fields to a field in the screen it cannot be done. i get the following message:
    Type (..) of the context element (..) in view (..) does not exist
    Anf the new fields are gray.
    Does anybody know the solution for this?
    kind regards,
    Anton Pierhagen

    Hi all
    Thanks for all of the replies. But unfortunately the right answer wasn't there.
    I had tried to map the structure and re-create the node on several levels in my web-dynpro, but there was no change after this changes.
    When i created an own dataelement and an own domain in my ABAP structure, it worked.
    I could select them in the webdynpro. But why????
    i still not get it..
    But thanks for the replies!
    Kind regards,
    Anton Pierhagen

  • Select Option's Context Element for the REPORT_ATTRIBUTE_ERROR_MESSAGE

    Hi,
    We're on 7.0 ehp1.
    I found a thread on same subject u201Cwdr:select_options and highlight Error Message with a Link to Inputfield u201C, Jul-23-2008, in which Thomas Jung gave an explanation of how to get the context element of the Select Options on a view.
    I tried to follow it, but Iu2019m still not getting it.  Please show how to get the context element of a Select Option for the u201CREPORT_ATTRIBUTE_ERROR_MESSAGEu201D .
       wd_comp_controller->go_message_manager->report_attribute_error_message(
             exporting
              message_text   = ls_messaga_text
                  element        = ?????
               attribute_name = ls_option_id
    Thomas' explanation:
    I gave you the code that gets you to the interface controller. From there you call the GET_API to get the component controller. After you have the component controller it is normal context coding to read the context of the Select-Options context. Run the debugger and use the Web Dynpro view to see what your context looks like at runtime. When I test this with one of my applications, the names of the context nodes that were dynamically generated was really straight forward - as it uses the names of the select-option itself. Nothing special once you reach this point - just normal context coding...."
    Kind regards,
    Huntr

    Hi ,
    Use the below approach to achieve this,
    data:
        lr_context_node       type ref to if_wd_context_node,
        lr_element            type ref to if_wd_context_element,
        message_text          type string.
      get the node and leadSelection of that field
        lr_context_node = get_node_of_sel_field( <field>-m_id ).
        lr_element = lr_context_node->get_lead_selection( ).
    case <field>-m_type.
    For Select option field
                when if_wd_select_options=>mc_sscreen_item_type_field.
                  m_message_manager->report_attribute_error_message(
                    element        = lr_element
                    attribute_name = 'LOW'
                    message_text   = message_text ).
    "For Parameter field
                when if_wd_select_options=>mc_sscreen_item_type_parameter.
                  m_message_manager->report_attribute_error_message(
                    element        = lr_element
                    attribute_name = 'VALUE'
                    message_text   = message_text ).
                when others.
              endcase.

  • How to get the context element of a F4 help of a column in ALV table?

    Hello!
    I know to get the context element of the current row normally through
    lo_el = WDEVENT->get_context_element( 'CONTEXT_ELEMENT' ).
    or: lo_el = lo_nd->get_element( index = r-parm->index ).
    But this time, I have a F4 help on the cell of a column. After clicking on the F4 help I need to get the current context element. Do you have any idea, to help me?
    Many thanks!
    regards
    Meer

    Hello,
    Kindly close the thread if your query is resolved now.
    Thanks
    Pradeep

  • How to create a context element

    Hai,
    How can i create a context element for a view dynamically.
    regards,

    Hi,
    Context element or context attribute?
    For context element use appropriate method in your IWDNode implementation and after creation call add method of node.
    For context attribute - see appropriate tutorial :  https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial on dynamic programming of web dynpro applications - 17.htm
    Best regards, Maksim Rashchynski.

  • Issue in the PDF at the time of Using current context element

    Experts,
    For retrieving the values in the WebDypro applications, I have used the current context element. Using that current context element I have generated the PDF.
    I have faced critical issue, if the two different persons are accessing the same PDF button at a same time in the different system.
    Both of them have selected the different values in the table (different id). But in the output it displays the same results (same id) for both the persons.
    The PDF displays the correct results (different id) at different time interval for both the persons.
    We are facing this issue, only if both the persons are clicking the PDF button at the same time.
    Could you please anyone give the solution for this problem?
    Application developed using WebDynpro Java NW2004
    Kind Regards,
    Hariprasath R

    Hi,
    First u invalidate() the current context element.
    after that u put data in current context element.
    Regards,
    Sunaina Reddy T

  • Context elements renaming

    I had created one Interactive Adobe form earlier.
    Now I am going to its interface and renaming some of the parameters.
    I want to know whether this parameters' new names would be automatically reflected in:
    a. context of the adobe form
    b. all the names of the elements drag and dropped on the interactive form
    Or i've to do this activity manually for each and every element renamed.
    Is there a way to rename all the elements on the adobe forms to reflect the new names ?
    Thanks in anticipation.

    Hi Mate,
    if you change the interface for new fields in a table type, or data element of a field or field name sort of.
    Adobe cant recognize and pickup these changes automatically.
    so you need to goto sfp tcode, open the form and refresh the context element by element.
    if there are new fields to be added you need to drag and drop only then it reflects.
    Cheers,
    Sai

  • Is it mandatory to bind each & every CONTEXT element to a text field on the form?

    Hello,
    I am developing an Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP)
    I have 3 elements (say, 1_Name, 2_Street and 3_City) in the CONTEXT and drawn ONLY 2 input enabled TEXT fields (for items - Name and Street of conetext) and then, BINDED them.
    I did not put any associate text field for CITY and no chance of binding!
    Pls. let me know that, Now can i utilize this CITY (of context) element containign data in the Java script? is this CITY is VISIBLE in the java script, even though it did not get BINDED with any text field on the form?
    THank you

    Thank you.
    If it got BINDED, i knew how to point/get/visible the CITY element (of CONTEXT) containming data by using the below java script,
    (this.rawValue == "A") or i can also get it with script of VISITOR.Page3.Subform11.CITY.rawvalue = "A"
    If i do NOT bind CITY to any TEXT FIELD of FORM, then, how i can retrieve/get/visible/point CITY content?

  • OA_MEDIA referencing a value outside the Context Element

    I am attempting to use XML Publisher to change a logo image at the top of a template. I have used the following command with great success:
    url:{concat('${OA_MEDIA}’,’/',//C_PAYGROUP',.jpg')}
    Unfortunately, this works fine when I have C_PAYGROUP in the Context Element of the XML output I am referencing... in reality this is not the case as I need to get to the absolute path and specify my C_PAYGROUP value from the top level down... i.e:
    /HBOSRA0830/LIST_G_SEL_CHECKS/G_SEL_CHECKS/C_PAYGROUP
    I have tried the following syntax to no avail and hope someone will be able to help me out a little...
    url:{concat('${OA_MEDIA}/',/HBOSRA0830/LIST_G_SEL_CHECKS/G_SEL_CHECKS/C_PAYGROUP,'.jpg')}
    Many many thanks,
    Terence

    Hi Terence,
    Looks like a slight problem with where the slashes etc are.
    The following will work - note the slash after OA_MEDIA as a seperate field in the concat.
    url:{concat('${OA_MEDIA}','/',/HBOSRA0830/LIST_G_C_PAYGROUP/G_C_PAYGROUP/C_PAYGROUP,'.jpg')}
    Robert

  • Lead Select Context Element in WD ALV

    Hi,
    Can anyone tell me how to retrieve the lead select row( Context element) for an ALV Table.
    Best Regards
    Sid

    Hi Sid,
    You can use ON_LEAD_SELECT method of ALV to do this.
    Go to the Methods tab of the view in which you have embeded your ALV.
    give method name lead_Select, method type as Event Handler, in event select from F4
    ON_LEAD_SELECT.
    Hope this solves your problem.
    Regards,
    Ismail.

  • Can't reload Photoshop elements 7 on my windows 7 operating system. Everything goes well and it appears to be installing. All of the sudden the Installer starts to roll back everything and error message shows up saying I can't use this product at this tim

    can't reload Photoshop elements 7 on my windows 7 operating system. Everything goes well and it appears to be installing. All of the sudden the Installer starts to roll back everything and error message shows up saying I can't use this product at this time.

    How do I do that? I'm the only user on the laptop - I kind of assumed I already was running the install as the admin.

  • Tracking the CONTEXT element's holding values?

    Hello
    I am developing an Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP)
    I have CONTEXT and drwan input text fields in my_interactive_form.
    1) I want to debug the form that How the CONTEXT is holding the values and With wht values the HIDDEN input text fields are holding?
    2) is it mandatory to BIND each & every CONTEXT element to a text input field on the form IN ORDER TO utilize the context element content in the Java script editor?
    Thank you

    Thank you.
    I am developing an VISITOR Adobe Interactive Form, i have Designer 8.1 and Reader 9.0 in my Windows 7 Laptop. When i checked the menu EDIT-->form properties --> Compatability, its Adobe XML form File (XDP) When i opened this VISITOR interactive form in a browser, right clicking and checked form
    PROPERTIES, then i saw the "PDF Version: 1.6 (Acrobat 7.x)"
    When i opened this VISITOR interactive form in the browser, i did not see MENU options (like EDIT)! i saw small icons of Pring, Save, Page, Zoom, Find.
    And a Purple ribbon with text of "Please fill out the following form. You can save data typed into this form"
    But, i did not see any other MENU optios, like FILE, EDIT, VIEW, DOCUMENT, TOOLS, WINDOW, HELP! Pls. let me know
    But, i downloaded some 'ABC' pdf from internet and opened it, here i can see all these MENU options, like FILE, EDIT!
    1) In this case, How can i setup DEBUGGING settings as mentioned above?
    2) Why the MENU options got disappearing!
    Than you

  • I can't reload photoshop elements 7 everything seems to go ok installing but then suddenly it says rolling back and try installing later ???

    I can't reload photoshop elements 7 everything seems to go ok installing but then suddenly it says rolling back and try installing later ???

    try resetting your phone by turning it off and back on again. Also, the server may still be slammed from all the activity, so it may take a little with to connect.

  • Where-used list for view methods, and context elements

    I want to know where a context element in the component controller is used (and if I can delete it).
    Is there something like a where-used list for a context element?
    Similar question:
    Is there a where-used list for a method of a view?
    Best regards,
    Daniel

    Hi Daniel,
    Its not supported for both of these..
    Regards
    Anuj Goyal

  • Reloading Premiere Elements 9 on a new PC ?

    I've tried to reload Premiere Elements 9 with my DVD and my licence N° on a new computer but it doesn't work (message too many activations). I went to the Adobe /support/downloads but it seems that are only available versions N° 10 and 11. If anybody can tell me how to cope with the issue. Thanks.
    Patrick

    Pat2687%
    Adobe allows you to put the same purchased Premiere Elements serial number on no more than 2 of your computers.
    Before we get into the new computer, where was this Premiere Elements 9.0/9.0.1 (with the same serial number) installed previously - how many computers?
    Just one? If just one and you are getting a message about that serial number being on too many computers, then Adobe via its Adobe Chat is the only one to correct the count.
    But....if you already had the serial number on two computers before you went to install the serial number on the new computer, then you have to deactivate the serial number from one of the other two computers before you can install that same serial number on the "3rd" computer. Deactivate and uninstall are not the same thing. We can talk about that later.
    For Adobe Chat, you might try the following Premiere Elements link which at this moment has an active Chat Panel.
    http://helpx.adobe.com/sea/contact.html?step=PRE_adobe-id-signing-in_stillNeedHelp
    It is setup for
    Premiere Elements
    Adobe ID, Signing In
    Adobe ID, Sign In, Account Help
    Chat Panel
    If it does not hold the set, you will have to navigate to the Chat Panel using the titles above a guides.
    Please let us know the outcome.
    Thank you.
    ATR

Maybe you are looking for

  • How to define transaction semantics for JMS Queues

    Hi, My scenario in Oracle Fusion Middleware 11gR3, SOA Suite, IDE: JDeveloper 11g is as follows: First). receive a message from QueueA, Second). Using the message, call a serviceABC and send the same message into QueueB. I created a syn-BPEL, configu

  • I'm selling my iBook G4 How do I install Leopard without registering it??

    I am selling my iBook G4 to my aunt and wanted to know if I install 10.5 on the machine is it possible after installation to shut down the computer without going through the setup process? Thank you in advance

  • Identity Management requirement

    sir, we have a Identity management project implementation. i am gathering IDM docs regarding where to start, what is the pre requisites for implementing Idenetity management project. i am going to take this a challenge. please give your valuable sugg

  • How to read and store the documents from other system to own system.

    Hi Experts, i need to read the document from other system (Say from other connected R/3 system) and then i need to save it in my system.                  Please suggest how would i proceed? Any helpful suggestion will be rewarded with points. thanks

  • RTMT for the Real World

    Hello, does anyone have any suggesstions on what alerts to enable on RTMT for CUCM?  I see some listed in Red and other in Black.  We curently seem to be generating an excessive amount of alerts and I would like to pare that back to only relevant ale