on 07-17-2007 4:17 PM
Hello,
does anybody know how it is possibly to set/create a key mapping with the know Java API2, if no key mapping for a record exists.
Regards,
Thomas
You can try this:
// create command object
...
// create RecordKeyMapping
RecordKeyMapping keyMapping = new RecordKeyMappingImpl(tableId, recordId);
// set remote key with RemoteSystemId and key value
keyMapping.addKeyMapping(new KeyMappingImpl(remoteSystemId));
keyMapping.addKey(remoteSystemId, keyValue);
command.setKeyMappings(new RecordKeyMapping[] );
command.execute();
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it's working fine
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hallo,
I use the ModifyRecordsKeyMappingsCommand. But you have to use modifyRecordsKeyMappingsCommand.setKeyMappings(recordKeyMapping) for to add the key mapping. The problem is, that I don't find a solution to initialize recordKeyMapping, if the key mapping for this record does not exists before. If there is a key mapping before it is working without any problems.
Thanks
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use ModifyRecordsKeyMappingsCommand.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
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.