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.

Regards,

Hemanth

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    author's profile photo
    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 comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Tomas,

      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 😉

      Armin