on 2010 Dec 20 9:13 AM
Dear Experts,
I would like to have a comprehensive understanding regarding the hook method modifyView.
Question may be:
1 When is modifyView be called?
Background: in a WD component, a couple of WD components are embedded in. It is found that some interface view's modifyView will be called. But it seems there is no direct triggering. Can anyone explain this?
2 Modifyview method may be called twice?
In debugger call stack, I found sometimes modifyView is called twice!
Questions may not be listed completely. Hope someone can give me some further help in understanding.
Thanks
>
> Dear Experts,
>
> I would like to have a comprehensive understanding regarding the hook method modifyView.
>
> Question may be:
>
> 1 When is modifyView be called?
>
> Background: in a WD component, a couple of WD components are embedded in. It is found that some interface view's modifyView will be called. But it seems there is no direct triggering. Can anyone explain this?
>
> 2 Modifyview method may be called twice?
> In debugger call stack, I found sometimes modifyView is called twice!
>
> Questions may not be listed completely. Hope someone can give me some further help in understanding.
>
> Thanks
Hallo Vincent,
1. Modify view is called prior to the generation of the view and allows for the dynamic modification of the view at runtime. In general HOOK methods are called by the framework.
2.Modifyview is called many times , it depends on how many times the view is requested for rendering. Fo example the visibility, enabled properties of an UI element is changed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vincent,
ModifyView gets called everytime the page loads during runtime. InitView is called when the page gets loaded for the 1st time and duing run time of the application, its modifyView. Suppose if there's some dependant dropdown fields in the page, by selecting 1st dropdown the page gets refreshed to populate the 2nd dropdown list. So, this time, the modifyView method gets executed again.
So, modifyView can get called multiple times depending on page design.
Regards,
Sen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.