cancel
Showing results for 
Search instead for 
Did you mean: 

How to refresh the values in SimpleType.?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

nikhil_bose
Active Contributor
0 Kudos

put


distributionvalueSet.clear();

before filling the values.

NIkhil

Former Member
0 Kudos

Hi Nikhil,

Thanks Very Much For Your Helpful Reply Bro. It Worked.

Thanks & Regards

Jeetendra

Answers (0)