IWP Tips
From Fmfaq
Go back to Quick Tips
Instant Web Publishing and Get(ApplicationVersion)
If you're using FileMaker's Instant Web Publishing for limited access for just a few people or through FileMaker Server Advanced (for a much larger audience) then you need to know about the Get ( ApplicationVersion ) function. This one function will return a different result based on how someone is connected to the database file.
If the client is FileMaker Developer then you'll see:
Developer 7.0v3
If the client is regular Pro then it will show as:
Pro 7.0v3
If the client is from the web then you'll see this:
FileMaker Web Publishing 7.0v4
Now, why FileMaker includes the word FileMaker for the Wen in the returned string, I have no idea. But the important thing is that you can determine which client is which by using the PatternCount() function. You can watch for the word "Developer" and run a developer specific subscript upon startup. You can watch for the word "Web" and head to a specific layout designed just for those people coming in over the web. It's a great feature to be able to make determinations based on who is using which version of the software! Oh, and of course, you can provide a nice gentle reminder for those users not already running the latest update. Use the GetAsNumber() function on the Get() function to see a nice 7.03.
Contributed by Matt
