Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

FM.RunDataDesignReport

Performs a data design report automatically.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
FM 5.0 Yes Yes No No No

MBS( "FM.RunDataDesignReport"; UseXML { ; Path; OpenWhenDone } )

Parameters

Parameter Description Example value
UseXML Pass 1 to use XML or 0 to use HTML for the report. 1
Path Optional
The path where to save for OS X. If you don't specify a path, the last one used in the dialogs will be used.
"/tmp"
OpenWhenDone Optional
Whether to open file when done.
Pass 1 to open file after creating DDR or 0 to not open.
Default is 0.
0

Result

Returns OK or error.

Description

Performs a data design report automatically.
This must be the last step in a script, because it triggers an asynchronously process to make a report. So the plugin will run the menu command, set the options, press the create button and the save button for you.
If you like to run other things later, simply run a script 5 seconds later with FM.RunScriptLater.

The call to this function must be the last one in a script or evaluation, so FileMaker has time after this call to do the report. You can use FM.RunScriptLater to trigger a script to run in a few seconds when report is done.

This function requires a native path. Use Path.FileMakerPathToNativePath to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use FileDialog functions.

Examples

Make a XML report to temp folder on Mac:

Set Variable [$r; Value:MBS( "FM.RunDataDesignReport"; 1; "/tmp" )]

Export to desktop:

Set Variable [$r; Value:MBS( "FM.RunDataDesignReport"; 1; "/Users/cs/Desktop" )]
// please change path!

See also


FM.QueryTableNames   -   FM.RunScript

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos