Our Development and Testing departments are aware of this issue. In essence, no values are returned unless a record ID is included.
I have attached your post to the original report. When more information becomes available, I will post again.
I've taken your advice and updated the PHP code as follows:
$recID = 85755;
$activeProductFamilies = $layout->getValueListTwoFields('FV - All Active Product Families', $recID );
I'm still getting an empty array here. If I log in using FileMaker Pro with the same privileges and navigate to the layout with the value list on it and to the record where Get ( RecordID ) = 85755 the value list displays correctly.
Any other suggestions?
We upgraded to filemaker server 16.02 this weekend. Our CWP sites then broke.
We have narrowed the problem down to:
<?php echo getMenu($layout->getValueListTwoFields('Platform', $record->getRecordId()), $fieldValue, $fieldName, 'text', $submitDateOrder);?>
Which is actually not even using related values. It is just a custom value list with the following values:
If we comment out anything that has getValueListTwoFields then our pages work again.
Could you please tell us if something has changed about this function in the API and how we can code around it to get the sites working again. Site is using filemaker.php.
Sorry should mention the websites written some time ago and are using cgi...
$cgi = new CGI();
It is likely we are just overdue re-writing the sites but for now am just looking for a quick fix for above problem if there is one as this appears to be the only bit of code that broke after upgrade.
1 of 1 people found this helpful
I'm also having issues with the use of getValueListTwoFields under FileMaker Pro v16 as described above. If you're just using a custom valuelist here you could try replacing:
as the record id isn't need for valuelists with custom values.
Yes we did try this and the page was still broken. We were lucky that the offenders were “custom” values lists so I sent them all to our web guy and he replaced the getValueListTwoFields with hard coded lists in the php. Obviously we hope to be able to put this back once we have worked out the fix.
Thanks for offering the suggestion.
fmdataweb and kiwikaty:
Thank you for the additional and detailed information.
I have sent all information to Development and Testing for further review. When I receive any additional feedback, I will post again.