AnsweredAssumed Answered

Bug in PHP API getValueListTwoFields?

Question asked by ebisu on Feb 13, 2016
Latest reply on Feb 15, 2016 by user19752



I have created a CWP page which has a loop throughout the foundset to get relational value lists:


$layout = $fm->getLayout('Object');

foreach($records as $record){

  $recid = $record->getRecordID();

  $places = $layout->getValueListTwoFields('place_value_this', $recid);




$records is a foundset, no problem.

"place_value_this" is the name of a value list which shows only the second field. No problem too.

The problem is, though $recid changes during the loop, "print_r($places)" only returns the valuelist of the first record. I do have set the $recid parameter.

Is there any way I can get the correct valuelist array? Any help will be greatly appreciated!