I am having problems with a call to getValueListDisplayValue. The code snippet below is problematic. An identical call to another valuelist works properly; the one below does not. The only difference between the 2 valuelists is that the one that works is linked directly to a table key while the one that does not work goes through a relation. sys_subregion_id is an integer as is the subregion data provider column. Returns null per debugger. I have confirmed that the inbound parameter (sys_subregion_id) is a known integer value in the target db.
if (application.getValueListDisplayValue('Subregion_id_from_globals', sys_subregion_id) == subregion)
{advice_str += 'Keyed subregion and current Subregion setting cross-check. \n'; sub_crosscheck = true;}
else
{advice_str += 'ERROR: Keyed subregion and current Subregion setting DO NOT cross-check. \n';}
Any known issues with this method? 3.5 final.
Thanks, Michael