Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
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