on 11-17-2006 2:06 PM
Hello All,
Is it valid/Allowed to make an explicit call to the init() method of the component controller in the any of the methods of the View Controller.
Will it cause any inconsistency between the component controller context data and View context data at a point when I call the init().
Regards
Anupama
Hi Anupama,
R u taking about the init method of the plugins.
Then you can create a method and call it from both init and when your screen is refreshed.
Regards
ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Anupama,
Do you mean init or wdDoInit? You cannot call the later as well as you cannot call any WD-framework methods that start with "wd" prefix.
By the way, wdDoInit in component controller (do not confuse with custom controller or interface controller) is called before any other method in any controller. So I hardly believe that it is not called when your view become available.
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Valery,
I mean Init() and NOT wdDoInit().
and yes both Init and wdDoInit() are being called before any other method is called.
But the operations I perform in the Init() has to be repeated at some point when
i perform some action on my screen without relaunching or reloading the whole screen. Which is why I want to call Init() again in view controller.
Regards
Anupama
Hi,
1) Create a method in your component controller
2) Put the necessary operations you do in your component controller to this method
3) For a given event, call this method
More importantly, where is this init() method in component controller ?
Regards,
Subramanian V.
Message was edited by:
Subramanian Venkateswaran
Hi Anupama
What you can do in this scenario is you can isolate the code of initialisation( which will be called from the view) in a new method altogether. Call this method from wdDoInit() in component controller. Now you can call this method from view whenever you require.
The idea is to always isolate reusable codes in separate methods.
Regards
KK
Hi,
What is purpose you calling that?
Let me know, I think it is not possible.
thanks,
Lohi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anupama,
How do you all init() method of the component controll from vie controller.
webdynpro framework suppossed to call methods like Init() , wdDomodifyView().
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.