on 10-24-2007 8:05 AM
I'm using the same piece of code in both the component controller and a view. I would like to put the code in a method and call it from both places but I wonder what would be the best place to put this method.
Hi,
Create a method in controller.
In controller you can directly call the method by its name
In view you can call the method using wdThis.wdget<componentcontrollername>controller().<methodname>();
Regards,
Murtuza
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create this method as part of the controller and call if from
controller and view.
From view call the method as follows
wdThis.<b>wdGet<Component>Controller().<methodName>();</b>
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi! Lieven,
What they mean is go to Component controller,click on method tab and create a new mthod by pushing the New Button.
go to implementation tab of controller and selected the created method in outline view,Paste your code between
//@@begin wdDoBeforeNavigation()
your code goes here....
//@@end
regards,
Mithileshar
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.