cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy the entries of Properties to EVS, without looping?

Former Member
0 Kudos

Hi,

I have one input field , for which EVS implemented.

It has to store some 30,000 entries.

So if use the coding

IWDAttributeInfo a=wdContext.nodePODetails().getNodeInfo().getAttribute(IPrivatePOInsertView.IPODetailsElement.MATERIAL);
    	ISimpleTypeModifiable stm=a.getModifiableSimpleType();
        mat_Svs=stm.getSVServices().getModifiableSimpleValueSet();
    	
    	for(int i=0;i<mmatNode.size();i++)
    	{
    		mmatEl=mmatNode.getEt_Mat_MasterElementAt(i);
    		String key=""+mmatEl.getMaterialid();
	        String val=""+mmatEl.getMaterialdesc();
		mat_Svs.put(key,val);
    	}

it is taking more than 1 minute.

But if I declare a Properties object prop and use

pro.put(key,val);

instead of

mat_Svs.put(key,val);

inside the for loop,

it will execute very fast.

But How can I copy this properties obj prop to EVS mat_Svs?

please help me to improve the performance of Inputfield with EVS ?/

thanks and Regards

Smitha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can give a try as follows



Properties prop;
	  Set entrySet = prop.entrySet();
IModifiableSimpleValueSet mat_Svs=stm.getSVServices().getModifiableSimpleValueSet();
	  mat_Svs = (IModifiableSimpleValueSet)entrySet;

Regards

Ayyapparaj

Former Member
0 Kudos

thanks.

But it is giving classcast exception

any other way please.

Regards

Smitha

Answers (0)