[FX.php List] RE: Get field names for a layout?

Andrew Denman adenman at tmea.org
Tue Apr 9 16:06:40 MDT 2013


Ted,

The function you want is FMView()

The field data will then be in the 'fields' key of the returned array. You can check out the FXDataFormat and DatasetDiagram docs for how the data is formatted within that array:
https://github.com/yodarunamok/fxphp/tree/master/Documentation

Andrew Denman

From: fx.php_list-bounces at mail.iviking.org [mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Ted Stein
Sent: Tuesday, April 09, 2013 4:41 PM
To: FX.php Discussion List
Subject: [FX.php List] Get field names for a layout?

I am switching to FX.php from the FIleMaker API. I can't seem to figure out how to get the field names that are on a layout.

In the FileMaker API you can do this:

$fm = new FileMaker($database, $hostname, $username, $password);
$layout = $fm->getLayout($layout);
$fields = $layout->getFields();

And you would get an array of field names for that layout.

How is this done in FX?

Thanks in advance,
Ted

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130409/70593078/attachment-0001.html


More information about the FX.php_List mailing list