Skip to Content
author's profile photo Former Member
Former Member

ModifyView related issue

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 20, 2010 at 09:36 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

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 20, 2010 at 12:30 PM

    Hi Vincent,

    What is WDDOMODIFYVIEW ?

    Thanks,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 20, 2010 at 09:29 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.