cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic value setting

Former Member
0 Kudos

Hi,

i have following Context:

NodeVis (1:1)

- El1

- El2

- El3

...

NodeBool (1:1)

- El1

- El2

- El3

...

Now i want to loop over the Elements of NodeBool and set the associated Element of Node Vis.

The possiblity for "calculated attribut" doesn't fit to my problem!!

In "normal" programming i have to have following code for every Element:

if (wdContext.nodeBool().currentBoolElement().getEl1())

{

wdContext.NodeVis.currentVisElement().set(

WDVisibility.VISIBLE);

}

else

{

wdContext.NodeVis.currentVisElement().set(

WDVisibility.NONE);

}

How can i solve that with dynamic programminga?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Christopher :

if NodeVis and NodeBool as not the same context, you can mapping from NodeVis to NodeBool or

from NodeBool to NodeVis,when one side Node of El1... is changing ,the other one in-phase.

if not the same context:

WDCopyService.copyCorresponding(wdContext.currentNodeBoolElement(),wdContext.currentNodeVisElement());

Regards

linghj

Former Member
0 Kudos

Hi,

If I rightly understood ur query then I can suggest u an approach..

You can create a value attribute of WD.VISIBILTY type & map that attribute to visible property of the UI element (may be table column editor) where your node attributes are mapped.

Then depending upon the value of elements of ur NodeBool

u can update only this value attribute.

Thanks,

Archana

Former Member
0 Kudos

old one