Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6037 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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();

.......

This topic is 6037 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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