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.

Retaining Found Records

Featured Replies

I'm hoping someone might be able to help with a problem I'm having navigating the pages of a site and retaining the found records. For the purposes of sample code I've provided extracts from the findall page and the target details page which I have got working to a degree in that when the user clicks on the link to the details in the findall list only the record clicked on is retained as found. I will also need to achieve the same when a user completes an actual search as well.

Thanks

findall:

<?php session_start();

require_once('include/inc.php');



$request = $senseDB->newFindAllCommand('List');

$request->setRange(GET('skip'), 15);

$result = $request->execute();

$records = $result->getRecords();

$fetch = $result->getFetchCount();

$found = $result->getFoundSetCount();

$total = $result->getTableRecordCount();



$rows = "";

foreach ($records as $record) {

	$rows .= '

	$rows .= ''.$record->getField('ID').'';

	$rows .= 'getRecordId('GetTheRecordID') . '">getField('Images::my_Picture')).'" style="width: 60px; height: 60px" />';

......





details:




<?php session_start();

require_once('include/inc.php');



$request = $fmDB->newFindCommand('Details');

$request->addFindCriterion('GetTheRecordID', '==' . GET('recid') );

$request->setRange(GET('skip'), 1);

$result = $request->execute();

$records = $result->getRecords();

$record = $records[0];

$fetch = $result->getFetchCount();

$found = $result->getFoundSetCount();

$total = $result->getTableRecordCount();

.......

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.