cancel
Showing results for 
Search instead for 
Did you mean: 

call your own method in onother method

Former Member
0 Kudos

Hello Friends,

I have created a method within the main view. Now the problem what I am having is how I can call

this method e.g. within WDDOINIT or ONACTIONSEND etc.

How dou you call such a method generally which you have created by yourself wihin other

method?

Regards

ertas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
" Methods of view :
Wd_this->methodname(  ). *OR*  methodname( ).

" Methods of component controller :
wd_comp_controller->methodname( ).

Note: You can also pass parameters if any.

Regards,

Radhika.

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

If the method is within the same object (View or Controller), then just use WD_THIS->method name to call it. You can also use the code wizard to generate method calls. This is especially useful if calling a method that exists in the Component Controller from the View.

Former Member
0 Kudos

Thanky ou very much.

Regards

ilhan

Edited by: Ilhan Ertas on Apr 27, 2009 2:41 PM

Former Member
0 Kudos

If yours queries are resolved, kindly mark the thread as answered and close the thread.

Radhika.