dbTalk Databases Forums  

another question

comp.databases.filemaker comp.databases.filemaker


Discuss another question in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Patrick
 
Posts: n/a

Default another question - 08-04-2003 , 07:37 AM






Is it possible to run a script when there is text typed into a field? I have
a script that calculated the amount of letters in a string and I want to
run this script when there is text insert in that field.. is that possible?



Reply With Quote
  #2  
Old   
LaRetta
 
Posts: n/a

Default Re: another question - 08-04-2003 , 11:49 AM







Hi Patrick,

"Is it possible to run a script when there is text typed into a field? "

It is possible to have a script execute by using pause/resume and
testing if the field is empty and if not empty, perform the script.
This can be problematic, particularly in the case of typing a bunch of
text because the pause/resume line will keep checking the field and if
it detects ANY text, it will proceed - even if the User isn't finished!
This process works well if you are selecting from a value list or
entering a bar code - something where the data is instantaneous and
completed quickly.

The other problem using pause/resume is that, while typing, if it's
exactly at the same time the pause/resume tests the field - typing would
be interrupted, ie, it would just skip typing a letter for instance. If
the User is typing regular text, this could drive them nuts!

Usually, a plug-in is used to handle these things - such as ScriptIt but
I haven't used it so can't give a good recommendation on it. Others
speak highly of ScriptIt for these types of scripts.

If you don't want to go with a plug-in, you might consider just putting
a button next to the text field that the User can click - or attach a
script to all scripts which leave the layout, testing the text field
size. If you are attempting to limit text size, you can use Validation
Maximum number of characters. You might also consider placing your calc
next to the field. It won't update with the length until the User has
exited the field, but at least it would show them how long it was.
Sorry I have no better ideas for you.

Cheers,
LaRetta

--
Posted via http://dbforums.com

Reply With Quote
  #3  
Old   
Warren Dale
 
Posts: n/a

Default Re: another question - 08-04-2003 , 08:06 PM



On Mon, 04 Aug 2003 16:49:23 +0000, LaRetta <member30258 (AT) dbforums (DOT) com>
wrote:

<snip>
Quote:
... attach a script to all scripts which leave the layout ...
snip

What do you mean. Can I really trigger a script when I leave a layout?

Warren.


Reply With Quote
  #4  
Old   
Patrick
 
Posts: n/a

Default Re: another question - 08-06-2003 , 02:29 AM



What do you mean by "exited the field". Does that mean it's possible to run
the script when you exit the field you want to calculate? That would also
work for me, but how?

Thanks so far....

"LaRetta" <member30258 (AT) dbforums (DOT) com> wrote

Quote:
Hi Patrick,

"Is it possible to run a script when there is text typed into a field? "

It is possible to have a script execute by using pause/resume and
testing if the field is empty and if not empty, perform the script.
This can be problematic, particularly in the case of typing a bunch of
text because the pause/resume line will keep checking the field and if
it detects ANY text, it will proceed - even if the User isn't finished!
This process works well if you are selecting from a value list or
entering a bar code - something where the data is instantaneous and
completed quickly.

The other problem using pause/resume is that, while typing, if it's
exactly at the same time the pause/resume tests the field - typing would
be interrupted, ie, it would just skip typing a letter for instance. If
the User is typing regular text, this could drive them nuts!

Usually, a plug-in is used to handle these things - such as ScriptIt but
I haven't used it so can't give a good recommendation on it. Others
speak highly of ScriptIt for these types of scripts.

If you don't want to go with a plug-in, you might consider just putting
a button next to the text field that the User can click - or attach a
script to all scripts which leave the layout, testing the text field
size. If you are attempting to limit text size, you can use Validation
Maximum number of characters. You might also consider placing your calc
next to the field. It won't update with the length until the User has
exited the field, but at least it would show them how long it was.
Sorry I have no better ideas for you.

Cheers,
LaRetta

--
Posted via http://dbforums.com



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.