PDA

View Full Version : Insert IData object


mystiqu
08-16-2006, 06:03
Hi

I wonder of it is possible to insert an IData object in a specific place provided by e.g. a IDataCursorīs position?

The only function I have found is an append function, which adds an IData object at the bottom of an IData node.

Regards
Mikael

mcarlson
08-16-2006, 06:36
I believe the insertAfter() method will do what you want. It is covered in the Javadocs for IDataCursor.

Mark

mystiqu
08-16-2006, 07:18
Hi again

The insert after only inserts a new key/value pair, not an IData object.

insertAfter(java.lang.String key, java.lang.Object value)

mystiqu
08-16-2006, 07:21
Hi again

The insert after only inserts a new key/value pair, not an IData object.

insertAfter(java.lang.String key, java.lang.Object value)


Never mind - My brain is completly disfunctional today. :o :o
It works fine using the insertAfter method!

Thanks!