Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Performs import.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
JSON | 5.4 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
none
Returns OK or error.
Sample loop:
Set Variable [ $counter ; Value: 0 ]
Loop
If [ MBS("IsServer") ]
# do some work now
Set Variable [ $r ; Value: MBS("JSON.Import.Work") ]
# let server do indexing
Pause/Resume Script [ Duration (seconds): ,1 ]
Else
# in FileMaker Pro do it in the pause
Pause/Resume Script [ Duration (seconds): 1 ]
End If
# and check if we are done
Set Variable [ $todo ; Value: MBS("JSON.Import.Todo") ]
Set Variable [ $s ; Value: MBS("JSON.Import.Status") ]
Exit Loop If [ $s ≠ "Working" ]
# exit after 100 times, which would be about 100000 records.
Set Variable [ $counter ; Value: $counter + 1 ]
Exit Loop If [ $counter > 100 ]
End Loop
This function is free to use.
Created 10th November 2015, last changed 29th January 2023