on 07-09-2008 2:51 PM
Hi All,
How can we use CheckoutRecordAsNew() API in MDM ??
I want to add a record by checking out exclusively.
I am using the following
int recordID=catalog.checkoutRecordAsNew("TableName",true);
Now I want to update the fields in the record.
catalog.updateRecord("TableName",recordID,timestamp,fields)l
My Q is is this the correct way of adding record ? how can we create timestamp here ?
THanks, Anil
Hello.
How did you update a timestampfield from Java?
Regards, Anders
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like Resultset is NULL..
Its working now!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I solved the above issue.
I have a new question.
I checked out a record using catalog.checkoutRecordAsNew("TableName",true);
I have updated the field successfully using catalog.updateRecord("TableName",recordID,timestamp,fields)
Now I did a search on RecordID using
catalog.getRecordsByID(rsd,ID)
I am getting the nullpointerException while reading the field.
Value v=rs.getValueAt(0,"MDM_CITY");
I can see the value in the data manager but in my API i don't see that value.
What could be the issue here ??
Thanks, Anil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.