I import xml into table through vo.readXml(). the insert works fine.
how can I get the primary key back after readXml() but before commit the transaction?
The primary key is a generated value defined in view object.
is it ok to use vo.getCurrentRow() to get hold off the last inserted/updated row affected by readXml()? in another word, is the after call readXml(), is the affected row become the current row? assume the readXml in this case only insert ONE row.
Please always tell us your jdev version.
Question: when is the PK generated and how?
If it's done while creating the row you can read the attribute representing the PK. If the key is generated while committing the row you have to commit the row before reading the attribute.