Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6235 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello!

If a script contains a non-web-compatible step, FileMaker doesn't skip it and continue with the rest of the script, right? Instead, it just ignores it and doesn't do anything. But you need that step when you are in the network side. What "If..." statement can you use to address the script to the right way depending on where you are?

Any suggestion will be highly appreciated.

Posted

I think the Get( ApplicationVersion ) functions returns "web" for web clients. One of them does, look around.

Posted

That one gets "ProAdvanced 8.5v1" in both environments, not the "web" or "network" word that indicates how did you get into the database. I already have tried other funcions and no results.

Besides, thinking again, I'm not sure a field can have two different values at the same time, right? Unless it is a global, that could handle a different value for each computer.

Posted

It seems you are not testing this correctly. Your test should run inside a script, something like:

If [ PatternCount ( Get ( ApplicationVersion ) ; "Web") ]

# Do web stuff

Else

# Do regular stuff

End If

Posted

Yes, yes, yes! Sorry for my ignorance, but how the heck am I going to know that Get ( ApplicationVersion )could contain the words "web" or "network" in its guts, if the result (without PatternCount)of it is just the current version of FileMaker.

I'm grateful, gentlemen.

Posted

PatternCount() does not look in any 'guts' - only in the text returned by the Get (ApplicationVersion) function. If the text itself didn't contain "Web", PatternCount() wouldn't find it.

Posted

So, what is the distinctive sign between the result of Get ( ApplicationVersion )in both platforms, in other words how can FileMaker recognize it, if the result of it (without PatternCount) is the same: only the FileMaker version, nothing else there?

Posted

how can FileMaker recognize it, if the result of it (without PatternCount) is the same

It cannot. The thing is, the result is NOT the same. I'm not sure what works in IWP and what not (or if you're even using IWP), but I believe that if you define an unstored calculation field as =

Get ( ApplicationVersion )

and put it on a layout, you'll see the difference.

Posted

Rafita, read the manual and on-line help, it's all in there!

From the FMP Help:

--

Get(ApplicationVersion) function

Returns text representing the FileMaker application and version.

Pro (version) for FileMaker Pro.

ProAdvanced (version) for FileMaker Pro Advanced.

Runtime (version) for FileMaker Runtime.

Web (version) for FileMaker Web Client.

Server (version) for FileMaker Web Server.

--

So the function will return true for web clients:

Patterncount( Get( ApplicationVersion ) ; "Web" )

Posted

Well, I'm going to check the database from home via web, because I open it here from FM and from the web and the result is the same for both sides. It shows only: ProAdvanced 8.5v1

Maybe the server has to do something with it.

Posted

That was the key: UNSTORED. Thanks for being patient, gentlemen and for enlighten me so I can can now close the parentheses.

GBY

This topic is 6235 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.