Skip to Content
avatar image
Former Member

class for wddoinit

Hi

To call wddoinit method what is calss?

Can any one help.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • avatar image
    Former Member
    Oct 16, 2008 at 09:22 AM
    Add comment
    10|10000 characters needed characters exceeded

  • Oct 16, 2008 at 09:24 AM

    Hi,

    Here is the solution

    /message/1008232#1008232 [original link is broken]

    PradeeP

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 09:25 AM

    Hi,

    wdDoInIt() is a hook mehtod which gets generated automatically whenever you create a view or in component controller when you create a controller this is the 1st method to be called whenever a view or controller is initialized. It can not be called from any class. it gets called automatically by WAS.

    Edited by: Aishwarya Sharma on Oct 16, 2008 11:26 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 09:27 AM

    Hi

    when you create iview by defult it generate three method, which we can called as life cycle or hook method,

    those methods are

    WDinit(), WdDoModify(), WdExit(),

    its similar to Servlets life cycle method

    init(), service(), destroy(), method

    Thanks

    Anup

    Edited by: Anup Bharti on Oct 16, 2008 11:31 AM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 10:16 AM

    Hi,

    wddoinit() is a hook method that is called only once when the view is loaded. If you want to access some code that is in init() method from other par of code, then what you can do is just put that common code in seperate method outside the init() method and call that method both from init() and from other method. Another thing iam not sure but i think we can call wddomodify() view directly using <<viewname>> by which your main class is created that is

    <<viewname>>.wddomodify(----)

    Regards

    Raghu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 16, 2008 at 10:23 AM

    hi!

    wdDoInit in ComponentController or in ViewController are called automatically by your application server.to call it explicitly you can create seperate methods to call but there is one method wdDoModifyView , there in a parameter we have "firstTime "as boolean ,so you can use that with some if condition and fulfill your requirement .but this is gonna hit your server evertime so some performance issue may come.

    thanks

    vishal

    Edited by: Vishal Anand on Oct 16, 2008 12:25 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 12, 2009 at 10:51 AM

    answered

    Add comment
    10|10000 characters needed characters exceeded