我是Filemaker的新手,自2周以来一直在使用它。有什么方法可以为位于特定布局中的特定记录创建url,以便在启动该url时,该记录仅显示在Web上。任何帮助都感激不尽。
答案 0 :(得分:1)
不直接。出于安全原因,此功能已在更高版本中删除。但是,您可以传递脚本名称和参数,以使您可以编写流程脚本并转到所需的布局/记录。
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