on 03-13-2008 12:44 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.