on 11-15-2011 9:36 AM
Hi All,
We are using CE 7.2 and MDM 7.1 SP07. I have written a simple java api code to find limited records.
When I a trying to get the field value from retrieved records, it is giving error as MDM field with specified ID does not exist or was not populated. Please let me know what could be the error cause and solution.
Pasting the code
TableId regTBID = schema.getTableId("Lifecycle_Codes_Code");
TableSchema regtbs = schema.getTableSchema("Lifecycle_Codes_Code");
RetrieveLimitedRecordsCommand retrREG = new RetrieveLimitedRecordsCommand(repositoryBean.getUserSessionContext());
Search srcREG = new Search(regTBID);
ResultDefinition rsdREG = new ResultDefinition(regTBID);
retrREG.setSearch(srcREG);
retrREG.setResultDefinition(rsdREG);
retrREG.setRetrieveDisplayValue(true);
retrREG.execute();
RecordResultSet rssREG = retrREG.getRecords();
rssREG.getRecord(k).getFieldValue(regtbs.getFieldId("Lifecycle_Code_Types_Code_Code"))
above line is giving the error.
Edited by: Abhinandan Desai on Nov 15, 2011 10:39 AM
rsdREG.addSelectField(yourfieldid)
you can add all field there.
if you didn't specify, no field returned, i think
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.