Using method TupleValue.findLookupRecords(FieldId)

[] [] [] []

Symptom

The method TupleValue.findLookupRecords(FieldId) is not returning the desired result.
Printing tvSalesDet.findLookupRecords(lookupFieldId) on lookupFieldId Field is return ” [Null] ” even when the lookup table has a selected value.
Other terms

0471358

Solution

In order to retrieve the desired result with TupleValue.findLookupRecords(FieldId) you need to use method command.setSupportingResultDefinitions(….) before the command execution of RetrieveRecordsByIdCommand.
The parameter for command.setSupportingResultDefinitions(….) is
ResultDefinition array with lookup table fields id.
Please note that you can concatenate several lookup table fields id into the command.setSupportingResultDefinitions(….) parameter if you wish to retrieve several lookups.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Comment