Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Getting a value list from PHP

Featured Replies

  • Newbies

Hi,

I have a problem with the Filemaker PHP API. I want to get the content of a value list. I'm using the following code :

$layout =& $fm->getLayout('my_template');

$list = $layout->getValueList('my_list');

The list is imported successfully, however there are issues concerning special characters (accented letters etc...).

For example :

"Chargé de mission" will get imported as "ChargChargé de mission".

"Animateur du réseau numérique" will get imported as "Animateur du rAnimateur du réseau numérique".

When the first special character is encountered, the string is reloaded from the beginning and concatenated with what was already imported.

This happens only one time per string (not again for the next accented letters).

Is there any way to solve this ?

Thanks for your help !

Try:


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

$list = array_map("htmlentities",(array)$layout->getValueList('my_list'));

Edited by Guest

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.