July 5, 200619 yr 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, 200619 yr by Guest
July 6, 200619 yr Author 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.. : )
July 6, 200619 yr Author 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!
Create an account or sign in to comment