on 08-23-2010 1:28 PM
Hi All,
i want to retrieve the KeyMapping value from MDM and using RetrieveRecordsKeyMappingsCommand.
The result is the keymapping structure in an array of type RecordKeyMapping. But my desired result is only the default key value of type string. Is there a possibility to realise that?
I'm using the following code:
Command.setDefaultKeysOnly(true);
Command.setSession(session);
Command.setRecordIds(recordIdsArray);
Command.setTableId(tableId);
Command.execute();
RecordKeyMapping[] keyMapping = Command.getKeyMappings();
Best Regards,
Timo
Hi Timo
Which version of MDM you are using?
In MDM 7.1 a new feature has been provided to identify the defualt key mapping amongst the multiple key mapping existing for a record. Please refer to page 27 of the following ppt for details. Check the APIs for 7.1 for retrieving the remote key, it will also return a flag denoting Defualt key.
Hope this helps-Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Did you tried method getDefaultKey ( ). I feel this will give you desired result..
kindly check and revert with the result...
Best Regards,
Shiv
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.