When using parameterized lookups on objects, the values do not show in Object List Views while displaying correctly on Properties views.
Steps to reproduce (MSSQL server - specific query)
Expected results: See both of the values populated in the list
Actual results: Values are blank
Release: All
Modify the dynamic lookup query to include OR X IS NULL statement. Note: The side effect of this is that it will make display all values in the second parameterized dynamic lookup if no value is selected in lookup 1 (because of the IS NULL condition). All the rest will be working as expected and it will display in the List views.
Example of change needed below:
@SELECT:nls.name:name@
FROM cmn_lookups lkp
INNER JOIN cmn_captions_nls nls
ON nls.table_name = 'CMN_LOOKUPS'
AND nls.pk_id = lkp.id
WHERE lookup_type = 'TEST_STATIC'
AND lkp.is_active = 1
AND nls.language_code = @WHERE:PARAM:LANGUAGE@
AND @WHERE:PARAM:USER_DEF:INTEGER:Test_IDS_id@ = LEFT(lkp.lookup_code,3)
to
@SELECT:nls.name:name@
FROM cmn_lookups lkp
INNER JOIN cmn_captions_nls nls
ON nls.table_name = 'CMN_LOOKUPS'
AND nls.pk_id = lkp.id
WHERE lookup_type = 'TEST_STATIC'
AND lkp.is_active = 1
AND nls.language_code = @WHERE:PARAM:LANGUAGE@
AND (@WHERE:PARAM:USER_DEF:INTEGER:Test_IDS_id@ = LEFT(lkp.lookup_code,3) OR
@WHERE:PARAM:USER_DEF:INTEGER:Test_IDS_id@ IS NULL)