[FX.php List] Function listing fields on layout?

Dale Bengston dbengston at preservationstudio.com
Sat Jan 20 09:30:13 MST 2007


Hi Jonathan,

$ReturnedData['fields']

This is in the FX documentation FXDataFormat.rtf and its PDF analog  
FXDataFormat.pdf:

$counter = 0;
foreach ($ReturnedData['fields'] as $key => $value) {
   if ($counter % 2 == 0) {
     $rowColor = '#99CC99';
   } else {
     $rowColor = '#99CCCC';
   }
   echo "<tr bgcolor=\"$rowColor\">\n";
   echo '  <td align="left" class="body">' . $value['name'] . "</td>\n";
   echo '  <td align="center" class="body">' . $value['type'] . "</td> 
\n";
   echo '  <td align="center" class="body">' . $value['emptyok'] . "</ 
td>\n";
   echo '  <td align="center" class="body">' . $value['maxrepeat'] .  
"</td>\n";
   echo "</tr>\n";
   ++$counter;
}


Dale


On Jan 19, 2007, at 11:27 PM, Jonathan Schwartz wrote:

> Hi Folks,
>
> Is there an fx.php function that can list the fields on a given  
> layout?
>
> TIA,
>
> Jonathan
> -- 
>
> Jonathan Schwartz
> FileMaker 8 Certified  Developer
> Associate Member, FileMaker Solutions Alliance
> Schwartz & Company
> jonathan at eschwartz.com
> http://www.eschwartz.com
> http://www.exit445.com
> 415-381-1852
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list