cancel
Showing results for 
Search instead for 
Did you mean: 

Question in Validation

Former Member
0 Kudos

HI All,

I am developing a web dynpro application

I have a main view in which I have a view_Container element that calls a view lets say(Details_view).

I have a button row in the main view and in the details_view I have some fields and a table.

I need to validate the attributes of the second view when an action is triggered i.e (Button clicked in the main_view).

How do i get what action is triggered in initial view in the details_view?

Moreover I need to validate and display the message in the message area of the details_view?

Is it possible to get the view controller reference of the details_view in the main_view?

Can somebody help me out.

Thanks,

Krishna

View Entire Topic
anand_nidamanuru
Active Participant
0 Kudos

Hi Krishnakumar,

Do both views belong to same component?

If they are in the same component

1) Call a component controller (CC) method from the Main View

2) Raise an event from the CC method

3) Place an event handler in the detail View

4) Now that you have control in detail view, anything should be possible

If they are in different component

1) Create an interface method in Detail view component

2) Call this method from Main View

3) Again the interface controller method, will follow the same steps as mentioned above

4) raise an event and handle it in detail view

However you can use Context mapping and get the data as mentioned by others.

Its based on your requirement.

Thanks,

Anand