October 3, 200619 yr I want to use IWP for finding and browsing records. As such, I would like to have IWP use a different layout than my default layout in Filemaker. Since I use Guest to access IWP, I was wondering if Guest could be taken to a specially formatted layout. Thanks.
October 4, 200619 yr Create a script that is run every time the file is opened. (IWP treats a new session as opening the file from scratch). Then, just check for the privelige set name, e.g. If Get(PrivilegeSetName) = "xxx" goto layout "theIWPLayout" else goto layout "other layout" end if
October 5, 200619 yr Another option is to check if the user is accessing the database via IWP. In the script use the Get ( ApplicationVersion ) function which will return "FileMaker Web Publishing x.x" I generally have an open script that reads If [ PatternCount ( Get ( ApplicationVersion ) ; "Web" ) ] Go to Layout [ IWP LAYOUT ] Else Go to Layout [ FMP LAYOUT ] End if This searches for the word "Web" in the application version and performs the appropriate task based on that. And this can also be used, as with xochi’s method, in any script to perform different tasks for FMP users and IWP users. I hope this helps. Orlando
Create an account or sign in to comment