on 01-27-2010 12:31 PM
Hi Friends,
I have A attribute called distribution name. which contains the key value pair assigned by a simpleType at run time.
Now for different transaction the valueskey value pair changes so i want to refresh the value from that attribute. Please help me how can i do that.? following is the code i am using to assign the values to attribute.
wdContext.nodeReturn_1().invalidate();
IWDAttributeInfo distributionAttributeInfo = wdContext
.nodeSalesDetailsParrent()
.getNodeInfo()
.getAttribute(
IPublicRsResumptionComp.ISalesDetailsParrentElement.DISTRIBUTION_NAME);
ISimpleTypeModifiable distributionType = distributionAttributeInfo
.getModifiableSimpleType();
IModifiableSimpleValueSet distributionvalueSet = distributionType
.getSVServices().getModifiableSimpleValueSet();
for (int i = 0; i < wdContext.nodeReturn_1().size(); i++) {
distributionvalueSet.put(wdContext.nodeReturn_1()
.getReturn_1ElementAt(i).getId(), wdContext.nodeReturn_1()
.getReturn_1ElementAt(i).getName());
}
i want to refresh the values apart from this code means the new code shouldn't be part of this. Like i have only that attribute name in other place there i want to refresh it.
Thanks & Regards
Jeetendra
put
distributionvalueSet.clear();
before filling the values.
NIkhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
9 | |
6 | |
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.