Hello,
I would like to program a script that would create a small text file. This file is actually a snapshot link used by FileMaker to open a set of saved records. This is a XML file, but with an file extension recognized by FileMaker ( ".fmpsl"):
Snapshot link is very simple file. A first text string is fixed, it is followed by the database's ID list (stored in a column of the JMP table) and a third part consisting of a fix text string as the first.:
<? Xml version = "1.0" encoding = "UTF-8"?>
<SLMF> <UIState> <UniversalPathList> fmnet: /99.129.6.76/my_database.fmp12 </ UniversalPathList> <Rows type = "nativeIDList" rowCount = "2" baseTableId = "142"> <! [CDATA [!
5935
6597
]]> </ Rows> <Layout id = "48"> </ Layout> <View type = "form"> </ View> <SelectedRow type = "nativeID" id = "5935"> </ SelectedRow> <StatusToolbar visible = "true"> </ StatusToolbar> <mode value = "browseMode"> </ mode> <SortList Maintain = "True" value = "false"> </ SortList> </ UIState> </ SLMF>
The IDs (the only variable part) in this example are the 5935 and 6597.
I would also like my action triggers the opening of the Snapshot Link file created. So I could access my database related records with a simple clic in JMP.
Is this project is achievable with JSL? The solution could be cross-platform or run only on Mac.
I'm new to JSL.
Thank you for your help.
CB