FearsomeFastFemale
Programmer
Hi,
I am trying to insert and Item into an IndexedCollection. I can use addElement(obj) to add to the end of the Icoll but can get insertElement or addElement(obj,int) to work (fails syntax check in java)
Any help would be appricated
example add code that adds at the end I want to insert/add at the start.
IndexedCollection selectedIColl = null;
Context mycontext = getContext();
selectedIColl = (IndexedCollection) mycontext.getElementAt ("fredlist.list"
DataElement blankEntry = (DataElement)com.ibm.dse.base.types.DSEType.getExternalizer().readObject("fred"
blankEntry.setName("fredentry"
selectedIColl.addElement(blankEntry);
I am trying to insert and Item into an IndexedCollection. I can use addElement(obj) to add to the end of the Icoll but can get insertElement or addElement(obj,int) to work (fails syntax check in java)
Any help would be appricated
example add code that adds at the end I want to insert/add at the start.
IndexedCollection selectedIColl = null;
Context mycontext = getContext();
selectedIColl = (IndexedCollection) mycontext.getElementAt ("fredlist.list"
DataElement blankEntry = (DataElement)com.ibm.dse.base.types.DSEType.getExternalizer().readObject("fred"
blankEntry.setName("fredentry"
selectedIColl.addElement(blankEntry);