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

wdDoModifyView() to modify Context Value mapped to WD component

How to modify Component (Dropdown , RadioButtonGroupByKey) during runtime in wdDoModifyView() to manipulate the list of Values mapped from Context element?

For Example : Context Node Element has a value List {1,2,3,4,5,....} , but allow only value{1,3,6,..} to map .

Please let me know , if some one has the code.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 10, 2007 at 05:54 PM

    I guess better to use extra context node with supply function.

    Add a comment
    10|10000 characters needed characters exceeded

    • What is the exact scenario? Because once you modify the SimpleType you will be not holding the old values. If you want to maintain the original list as it is then using Supply function is a good idea as Maksim suggested.

      If you are ok to modify the actual source then you can try this:

      		IWDAttributeInfo atribInfo = wdContext.getNodeInfo().getAttribute("listvalues");
      		ISimpleType simpleType = atribInfo.getModifiableSimpleType();
      		IModifiableSimpleValueSet simpleValSet = simpleType.getSVServices().getModifiableSimpleValueSet();
      //you can use various methods available in <a href="">IModifiableSimpleValueSet</a> to add, delete the values.



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.