Skip to Content

Dynamic Programming (Web Dynpro)

Hi All,

I have been successful to create UI elements, group them and render them dynamically only within the wdDoModifyView method of the view. I want to create the UI elements based on certain selection of the design time specified UI elements. For e.g. based on product category, I want to generate the UI elements such as its attributes. I want to regenerate them whenever the product category changes. Is there a way of specifyin view (IWDView) parameter for the method wdDoModifyView programmatically?

Any hint, tips will be very valuable for my project.

Thanks in advance.



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 21, 2005 at 04:35 PM

    I don't think you can modify the interface of wdDoModify, but you can archieve the same effect with a set of static variables within your view ( in the //@@begin others) area and manipulating these in your view's actions.

    For example, I had to change the visibility of certain columns so that based on a checkbox selection, the columns dissapear. I defined a static array for these visibility values and on wdDoModifyView, I check against these static values. It's a good idea to have a 'changed' variable so that if the value has not been modified, your code does nothing.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      my suggestion could not take that into account because it was not mentioned in your first message.

      A view controller context is not "polluted" by attributes storing UI element property values (what do you mean by "interfaces" here?), it is exactly the right place to store this information.

      Concerning this kind of usage of static members in a view controller: It's not a matter of style or taste, it is plain wrong 😉


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.