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.

Related Database fields with PHP API

Featured Replies

Hey, all.

I'm trying to pull in values using the PHP API from a related database and it doesn't echo. Here's the code:

echo '',

ucwords(strtolower(

$record->getField('A to x02A to x01A_PERSON LdrPsnOne::b01A_PsnNmFirst') . " " .

$record->getField('A to x02A to x01A_PERSON LdrPsnOne::b01A_PsnNmLast'))),' ',

$record->getField('b04A_LdrTitle'),'

',

$record->getField('A to E_DELEGATEUNIT DelUnitOne::b04E_DelUnitDesc'),'

';

$count = $count + 1;

The fields in bold don't echo out, but the others do.

Occurrence names for bolded fields go through two related databases, 02 and 01. I have made connections to those databases and it still doesn't return. Is there something different I need to do when I am pulling values from a related database than I do when I'm just pulling values from a related table in the same file?

Also, if you make a connections to database a, and database a has connections to databases b, c, and d, do I have to make connections to b, c, and d manually, or does web publishing make the connections automatically, as it would with the client?

Let me know if I need to provide further information. Thanks so much for the help with this.

Michael

  • 2 weeks later...

The PHP API has access to any (and only) field(s) on the layout you hook it to, so my first guess is that the fields in question aren't on the layout.

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.