cancel
Showing results for 
Search instead for 
Did you mean: 

Calling the method of one view in other view

mahesh_jagnani
Participant
0 Kudos

Hi Expert,

Can you please tell me how i can call the method of one view in other view.

Thanks

Mahesh

Accepted Solutions (0)

Answers (3)

Answers (3)

mahesh_jagnani
Participant
0 Kudos

ok

former_member199125
Active Contributor
0 Kudos

Mahesh,

We cannot call method of one view in other view.

As thomas said, declare method in component controller( wd_comp_controller->method( ) or assistance class ( wd_assist->method( ) ).

Or you can declarein normal class and can call by in this way.. zclassname=>methodname( ).

Regards

Srinivas

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You shouldn't do this. Methods of a view are private. If you have logic in a view that is reusable, then it should be a method in the component controller or in the assistance class.

mahesh_jagnani
Participant
0 Kudos

Hi ,

Thanks for your reply but i need this because i am facing one strange problem.

There is one standard WD /PLMU/WDC_RFO which i am enhancing.

There is one node and attribute which is defined at CC level .

I am filling the attribute at CC level , but i am not getting the value at view level.

The Attribute is although exist at view level but it is blank.

Please help.

Thanks

Mahesh

Former Member
0 Kudos

Indeed it is strange if i understand your problem correctly. You are updating a attribute in component controller and it is not available in view.

Are you sure that context mapping is correct ?

It may be possible that node is invalidated or changed in between you update and see the value in view.

Otherwise i do not see any special case here.

Former Member
0 Kudos

Hi Mahesh,

Check if you context mapping between View and Controller is updated.

Regards,

Shruti

Former Member
0 Kudos

Hi,

Please check whether that node is mapped in the view or not. If it is mapped and even then it didn't work, use update mapping and activate the whole component and then try.