cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Context Node data in respective HTM page

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

CarstenKasper
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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