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

how to get a "com.sap.tc.webdynpro.progmodel.api.IWDView" object

hi,everybody,

As we all know, there is a com.sap.tc.webdynpro.progmodel.api.IWDView object in wdDoModifyView() parameters.We can use the IWDView object in the method or after the method.But in my project, I want to use the IWDView object before wdDoModifyView() method.I don't know how to create a IWDView object. Would you please help me.Thank you!

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2008 at 09:51 AM

    Hi Daniel,

    This is not recommended to access the view outside the modifyView . what exactly is ur requirement & why u want to use that before wdDoModifyView ? Its controlled by wd Framework & i don't think u can access it explicitly.

    regards

    Sumit

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2008 at 09:54 AM

    Hi,

    You declare a variable of IWDView as below in the others section:

    //@@begin others

    public static IWDView viewObj;

    //@@end

    And in wdModifyView() add:

    viewObj = view;

    Thats it. Now you can access it anywhere.

    thanks & regards,

    Manoj

    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.