OK
I tried the first part and it returns the data minus the related fields.
Display Event Web Full is a calculated field in Filemaker being
Substitute ( GetAsText ( Task Date ) ; "." ; "/" ) & " - " &
Matter Numbers::Matter Description & " [Matter " & Matter No & "] " &
"Represented by " & SC Assigned To::Full Name & " - " &
If ( IsEmpty ( Task Assigned ) ; "" ; " - " & Task Assigned) &
If ( IsEmpty ( Task Time ) ; "" ; " at " & TimeAsText ( Task Time ) )
It displays correctly in the Filemaker layout.
Using the code provide I have created a simple php page
<?php
define('DEBUG', TRUE);
include_once("../FX/FX.php");
include_once("../FX/server_data.php");
include_once("../FX/FMErrors.php");
$Group=$_REQUEST['Group'];
$cat=new FX($serverIP,$webCompanionPort,'FMPro7');
$cat->setDBData('Matter Events.fp7','PHP_Web');
$today = date("m/d/Y");
$todate = mktime(0,0,0,date("m"),date("d")+14,date("Y"));
$nextdate = date("m/d/Y", $todate);
$cat->AddDBParam('Group Lookup',$Group);
$cat->AddDBParam('Status','Active');
$cat->AddDBParam('CD Type','CD');
$cat->AddDBParam('Task Date',$today.'...'.$nextdate);
$cat->AddSortParam('Task Date','ascend');
$catResult=$cat->FMFind();
foreach ($catResult['data'] as $key => $catData)
?>
<html>
<head>
<title>List CD Matters</title>
</head>
<body>
<?php
foreach ($catResult['data'] as $key => $catData)
{
$Detail = $catData['Display Event Web Full'][0];
echo "<br>Detail ".$Detail;
} ?>
</body>
</html>
This returns the list of CD matters for the next 14 days. However it still does not show the related data.
I get (for example)
Detail 28/08/2008 - [Matter 1234] Represented by - Hearing at 10:00 AM
Detail 28/08/2008 - [Matter 5678] Represented by - Hearing at 11:00 AM
Detail 28/08/2008 - [Matter 9874] Represented by - Hearing at 12:00 PM
I should get (for example)
Detail 28/08/2008 -
Matter 1 Description [Matter 1234] Represented by
Some Guy - Hearing at 10:00 AM
Detail 28/08/2008 -
Matter 2 Description[Matter 5678] Represented by
Webco Myhero - Hearing at 11:00 AM
Detail 28/08/2008 -
Matter 3 Description[Matter 9874] Represented by
Whatam Idoingwrong- Hearing at 12:00 PM
There is no detail for Matter Numbers::Matter Description or SC Assigned To::Full Name
Thanks for your on going assistance with this.
I have posted the entire page in case it is some thing in my FX.php setup rather than Filemaker database setup
Thanks again