Skip to Content
author's profile photo Former Member
Former Member

How to get Context Node data in respective HTM page

Hello Experts,

My Scenario is as follws: Two views are there one is table view[contain customer data] and another form view[where i require the data]. my requirement is, table view is having customer information with their city names. i need the city name in my form view's .htm

Both views are having same context node which are bounded via custom controller.

Could you help me out to solve this

With Regards

SRiNi

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Oct 21, 2008 at 12:44 PM

    Hi,

    this should be very simple as the context nodes are defined as page attributes on your .htm page.

    Example:

    Your Context node is named /TEST/.

    In your .htm page you can access it by:

    <%

    data:

    lr_property type ref to if_bol_bo_property_access.

    lr_property = /test/->collection_wrapper->get_current( ).

    %>

    EDIT:

    In case there is no page attribute, you can use the SET_MODELS method in the view implementation class to set a variable. Be sure to create the variable you want to set on the .htm page in the page attributes first.

    cheers Carsten

    Edited by: Carsten Kasper on Oct 21, 2008 2:44 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2008 at 02:06 PM

    Hi Sreenivasa,

    Yes, Carsten is absolutely right.

    When ever a context node is created by the wizard, automatically the SET_MODELS of the view controller implementation class is redefined with the appropriate code.

    And in the HTM page, under the tab "Attributes" the context node name and the corresponding class can be seen. Only then, you can access the context node values in the HTM page.

    Regards,

    Vinay

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.