SurferNate Posted March 29, 2005 Posted March 29, 2005 I have an interesting problem. In the implementation of an external function (plugin) I need the access privileges to be reevaluated on each field change within a layout. Specifically, I am using EventScript for this task. Here's the gotcha, in the example file provided by the developer, FileMaker reevaluates the record Level access priveleges after each field change. In this way, the attached script runs every time a field is entered. It works, I totally demolished the example file to prove that my functions work in it also, and that's all well and good. Except! In my version of FMP7 (current version) I attempted to duplicate the action in two different files that I created and there is a failure in the record access validation. In my files, the record level access only calculates ONCE on entry into the record (barring a forced record commit which adds problems to the bin on this one). So, does anybody know why in one file a record would validate the access privileges on each field change whereas on another file it validates only on record entry? Possibility that I'm ddoing something wrong (however obscure that thing may be) : It's possible. I'm wondering if this is a file level difference between FMP and FMD...
SurferNate Posted March 30, 2005 Author Posted March 30, 2005 Since nobody finds this very interesting, I'll post the answer also. I emailed the dev with the problem in detail and with his reply I realized that my problem was also the answer to this question. Since FM only evaluates a record once upon entry, the layout used in the example uses all globals except for ONE data entry field. Therefore if one tabs from field to field, the record commits and then reevaluates when the NON global field is entered again by any method. In this way the OnEntry event can be simulated.
Matt Klein Posted April 19, 2005 Posted April 19, 2005 Since nobody finds this very interesting, I'll post the answer also. I emailed the dev with the problem in detail and with his reply I realized that my problem was also the answer to this question. Since FM only evaluates a record once upon entry, the layout used in the example uses all globals except for ONE data entry field. Therefore if one tabs from field to field, the record commits and then reevaluates when the NON global field is entered again by any method. In this way the OnEntry event can be simulated. So, are you saying that when you tab from a global field into another global field the record is committed or are you saying that if you tab from a global field into a Non global field the record is commited, or both?
Recommended Posts
This topic is 7157 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