Fred P. Posted July 5, 2006 Posted July 5, 2006 (edited) Is there a way to make a button inactive if the user is viewing the database from a web browser as opposed to the FM application? I have a script that contains some functions that ARE web compatible, and some functions that are not web compatible within the script attached to a button. If a web user clicks the button, it runs part of the script (the part that IS web compatible) and ignores the non compatibile part, which then breaks the data in the database. Edited July 5, 2006 by Guest
Fred P. Posted July 6, 2006 Author Posted July 6, 2006 That could get me there, but I am having trouble figuring out how to test this, and make it work. Ideally, it would be something like: SetVariable[$$AppVersion, Value:Get(ApplicationVersion)] If[$$AppVersion <> "Web"] Cut[select; Database:DocPath_Field] Insert File[Reference; Database::Container] End If But that is not actually working. First, How do I test what $$AppVersion Is? Just Assign it to an empty field? Second, I probably need help with syntax in the If Statement... Or there is a much simpler way to do this that I am overlooking... (probably.. : )
Fred P. Posted July 6, 2006 Author Posted July 6, 2006 I also tried this to test and this didnt work. a Script on a button that did this: SetVariable[$$AppVersion, Value:Get( ApplicationVersion )] Insert text[select; Database::CurrAppVersion_Field; "$$AppVersion"] But that just puts "$$AppVersion" in the CurrAppVersion_Field Field... Any help would be greatly appreciated.. As you can tell, I am very new to this. But I find it facinating!
Recommended Posts
This topic is 6713 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now