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.

Record is not modified when layout is not open

Featured Replies

Hi,

I am not sure if it's the right place for this problem...

I have FileMaker Pro 6 and FileMaker Server 5.5.

I am trying to add new records to the database from the web using php.

I noticed a very strange thing - my script works when the layout used in the script is open. If the other layout is open in the database - the record is not inserted. I have no clue what might be the reason.

I am using FX class and my connection looks like that:

<?php

include_once ("FX.php");

$serverIP = "10.10.10.10";

$webCompanionPort = "471";

$recordData = new FX($serverIP, $webCompanionPort);

$recordData->SetDBData("example.fp5", "web_details");

...

?>

So when on the server layout "web_details" is open - it is working. If any othe rlayout is open - it is not.

I appreciate any ideas on this issue.

Thanks a lot

Jul

Hi, Jul! I'm not familiar with FX, but the Filemaker Web Companion actually draws data from your FileMaker Pro layouts. In CDML, we can specify what layout we want the WC to use, and if no layout is specified, it uses an internal.0 kind of layout or something.

See if FX allows you to specify a -lay kind of thing.... I thought I saw a reference in the multi-level array description I had read once, but I could be wrong. That's all I can think of...

--ST

Try this:

<?php

$result = file_get_contents("http://10.10.10.10:471/FMPro?-db=example.fp5&-format=-fmp_xml&-new");

echo $result ;

?>

Good Luck.

Garry

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.