Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Performs import.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
XML 5.4 Yes Yes Yes Yes Yes
MBS( "XML.Import.Work" )   More




Returns OK or error.


Performs import.
Normally we do import on idle while a script pause. But on server this does not work.
You can call this method in a loop to do the inserts for the import.
But it will not create the tables and fields required for import.


Import on server:

Set Variable [$text; Value:MBS("Text.ReadTextFile"; "/Users/cs/Desktop/test.xml"; "UTF-8")]
Set Variable [$r; Value:MBS("XML.Import"; $text; ""; "")]
Set Variable [$text; Value:""]
If [MBS("IsError") = 0]
    Set Variable [$total; Value:MBS("XML.Import.Total")]
        Set Variable [$work; Value:MBS("XML.Import.Work")]
        Set Variable [$status; Value:MBS("XML.Import.Status")]
        Exit Loop If [$status ≠ "Working"]
    End Loop
End If

See also

Blog Entries

Created 10th November 2015, last changed 27th March 2018

XML.Import.Total   -   XML.ListAttributes

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins