Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.filemaker > #3226

Re: Scripting: Putting the Cursor into a Specific Field

From none@gmail.com
Newsgroups comp.databases.filemaker
Subject Re: Scripting: Putting the Cursor into a Specific Field
Date 2018-10-27 16:38 +0200
Organization A noiseless patient Spider
Message-ID <pr1t8q$9uk$1@dont-email.me> (permalink)
References <1nx0y5j.3xtd161uvtfy1N%csampson@inetworld.net> <pqj67c$1bf2$1@gioia.aioe.org> <1nx2zwi.11xzs38gew5uwN%csampson@inetworld.net> <pqmecr$d8a$1@gioia.aioe.org> <1nxakf2.12dghzr6wj5kvN%csampson@inetworld.net>

Show all headers | View raw


>> Perhaps it would help if you explain why you're trying to achieve this.
>> There might be a better approach to doing what you want.
> 
> Thanks again, Harry. It's going to take me a while to digest all this.
> 
> What I'm trying to do: I have a script that validates input that's
> supposed to be money. It catches every error I could think of and
> informs the user, using a custom dialog. At present, the custom dialog
> has only an OK button. After clicking on this button, the user has to
> click in the field again to fix the error(s). I'd like to modify this so
> the custom dialog has Fix and Accept buttons, with clicking on the Fix
> button resulting in the cursor being in the erroneous field.
> 
> One problem with my current script, which I consider better than
> nothing, is that upon exiting the money field, which is just a number
> field to FM, FM displays the erroneous data using its wildly lax
> interpretation of the input. The result is that no particular error is
> obvious, unless the user notices that the value in the field is not what
> he wanted.
> 
> The reason for wanting an Accept button is another story.
> 
> Charlie
> 

Have you tried the automatic field validation FMP offers? Make a number 
field. Goto field options. Choose the second tab (I don't know its 
English name). On this tab set the checkmark on to 'Restrict......' 
(again exact name unknown to me in English) Then from the dropdown 
behind the checkmark choose numeric only.
OR if you want something more complec, choose 'Through calculation'.
Then set the last checkmark and create your custom warning.
No scripts, no triggers. Should work????

keep well, Erik

Back to comp.databases.filemaker | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Scripting: Putting the Cursor into a Specific Field csampson@inetworld.net (Charles H. Sampson) - 2018-10-21 14:20 -0700
  Re: Scripting: Putting the Cursor into a Specific Field Helpful Harry <HelpfulHarry@BusyWorking.com> - 2018-10-22 13:39 +1300
    Re: Scripting: Putting the Cursor into a Specific Field csampson@inetworld.net (Charles H. Sampson) - 2018-10-22 17:23 -0700
      Re: Scripting: Putting the Cursor into a Specific Field Helpful Harry <HelpfulHarry@BusyWorking.com> - 2018-10-23 19:17 +1300
        Re: Scripting: Putting the Cursor into a Specific Field csampson@inetworld.net (Charles H. Sampson) - 2018-10-26 19:02 -0700
          Re: Scripting: Putting the Cursor into a Specific Field none@gmail.com - 2018-10-27 16:38 +0200
            Re: Scripting: Putting the Cursor into a Specific Field Helpful Harry <HelpfulHarry@BusyWorking.com> - 2018-10-28 18:13 +1300
              Re: Scripting: Putting the Cursor into a Specific Field csampson@inetworld.net (Charles H. Sampson) - 2018-11-07 20:09 -0800
            Re: Scripting: Putting the Cursor into a Specific Field csampson@inetworld.net (Charles H. Sampson) - 2018-11-07 19:32 -0800
          Re: Scripting: Putting the Cursor into a Specific Field Helpful Harry <HelpfulHarry@BusyWorking.com> - 2018-10-28 18:15 +1300
            Re: Scripting: Putting the Cursor into a Specific Field csampson@inetworld.net (Charles H. Sampson) - 2018-11-07 20:09 -0800
  Re: Scripting: Putting the Cursor into a Specific Field Howard Schlossberg <howard@nospam.fmprosolutions.com> - 2018-10-21 18:15 -0700
    Re: Scripting: Putting the Cursor into a Specific Field csampson@inetworld.net (Charles H. Sampson) - 2018-10-22 17:23 -0700

csiph-web