on 05-05-2008 9:39 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.