我是filemaker的新手,已经用了两周了。有没有什么方法可以为位于特定布局中的特定记录创建一个url,以便当我们启动该url时,只有该记录出现在web上。任何帮助都将不胜感激。
发布于 2018-07-19 13:43:51
不是直接的。出于安全原因,在更高版本中删除了此功能。但是,您可以传递脚本名称和参数,这将使您能够编写流程脚本并转到所需的布局/记录。
http://<host>/fmi/webd/<database name>[?script=<script name>[¶m=<script parameter>][&<$variable name>=<value>]]
有关这方面的更多信息,请参阅WebDirect指南。
编辑:
The URL:
http://<host>/fmi/webd/Database?script=WD_GoToReCord¶m=xxxx
其中xxxx是相关记录的记录ID。
The FileMaker script:
Name: WD_GoToReCord
# Performs a record search and goes to layout for display
# Requires a field in the database that is unique per record.
# The example uses a calculation field named RecordID with the calculation Get(RecordID)
Set Variable [ $recordID ; Value: Get(ScriptParameter) ]
If [ IsEmpty ( $recordID ) ]
Exit Script [ Text Result: ]
End If
Set Error Capture [ On ]
Go to Layout [ “Record Search” ; Animation: None ]
Enter Find Mode [ Pause: Off ]
Set Field [ Database::RecordID ; $recordID ]
Perform Find []
If [ Get(FoundCount) = 1 ]
Go to Layout [ “Switchboard” ; Animation: None ]
Else
# show some error or ignore
End If
https://stackoverflow.com/questions/51414849
复制相似问题