cancel
Showing results for 
Search instead for 
Did you mean: 

Calling methods ONACTION* and HANDLEFROM*

former_member194142
Participant
0 Kudos

Hello,

I have 3 views and i created the navigation back and forth, well.

i put a input field on view_1
A push button in view_2 with action PRESS,
I put a small table in View_3.

Process: User enters the order # on the view_1, then user will redirected to view_2, where in user has a PRESS button, then, user pressess the button and finally data will be displayed on View_3

Now the methods list looks like below,

View_2: ONACTIONPRESS (Press button): I put some code here

View_3: HANDLEFROM_VIEW_2: I put some code here


Bcz of some reason, i want to call these (ONACTIONPRESS, HANDLEFROM_VIEW_2) from their non-resided views of the same WDA/componenet

Pls. let me know

is it possible?

if so, i can call them like any other methods? or some thing differently?

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

former_member194142
Participant
0 Kudos

Any help pls?

Thank you

Former Member
0 Kudos

Yes that is possible. Create one method in other view . In that method  use code wizard to call these method.

Former Member
0 Kudos

Hi,

I don't think you can call a method of View 1 in View 2.

However if you only want to use the same logic, just write a method in Component Controller and call the method from whichever view you want.

Answers (0)