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.

Featured Replies

To do a FMEdit() on a record I need the RecordID, I have tried the following script for this, but no luck so far.

--------------------

$ProductQuery = new FX( $serverIP, $serverPort);

$ProductQuery->SetDBData("personligweb.fp5", "www_publish");

$ProductQuery->AddDBParam('personal::brukernavn',$brukernavn,'eq');

$ReturnedData = $ProductQuery->FMFind();

foreach ($ReturnedData["data"] as $row) {

$recordPointers = explode('.',$row);

$currentRecord = $recordPointers[0];

$currentModified = $recordPointers[1];

}

----------------

I only get these error meassages:

Unkown error type: [8] Array to string conversion

Unkown error type: [8] Undefined offset: 1

Would be glad of any help.

Hi, Maxell! I am way out of my depth here and not yet familiar w/FX but we had what might be somewhat similar errors (iffy enough?) when upgraded PHP to a newer version that required initialization of variables... primarily, I think, in functions. I think it was around PHP 4.3.2 but I could be wrong... Anyway, the old PHP was fast and loose w/variables but the newer version(s) are more strict.

Just a guess, but look into that. I can't remember if assigning a value is good enough or if you have to VAR it. I think arrays were a special case, but the others won't let you assign values until they are defined. I'm only just learning PHP, though, so I could be way off base here, too.

--ST

  • 4 weeks later...

Why don't you just create a field called recid in FM, as a calc that equals the recordid, and use that? It's so much easier than the crazy arrays you have to explode and parse just to the record id.

Why don't you just create a field called recid in FM, as a calc that equals the recordid, and use that? It's so much easier than the crazy arrays you have to explode and parse just to the record id.

Sounds good to me!

--ST

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.