I am new to filemaker and have been using it since 2 weeks. Is there any way by which we can create a url for a specific record located in a particular layout so that when we fire up that url only that record appears on web. Any help will be much appreciated.
Not directly. This feature was removed in later versions for security reasons. You can however pass a script name and parameter which would enable you to script the process and go to the layout/record you want.
http://<host>/fmi/webd/<database name>[?script=<script name>[¶m=<script parameter>][&<$variable name>=<value>]]
More on this in the WebDirect guide.
Edit:
The URL:
http://<host>/fmi/webd/Database?script=WD_GoToReCord¶m=xxxx
Where xxxx is the record ID of the relevant record.
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