Trying a custom handler for several math fields

Vaughn Clement vclement at gmail.com
Thu Sep 12 22:17:56 EDT 2013


Hi All

Since my scripts were lost on the update app killer I wanted to try out a
custom handler:

I wanted to try this out to see how it works for the first time. The
original scripts (lost now) were using a field control to do the math
between 3 to 4 fields. I used the suggested on closeField handler.
It took some time but I had all of the fields doing the correct math.

1 Issue: on the card the different sets of field controls would only update
within the set of fields in the script. If a user edited one of the fields
that set would update. What I needed was to have all the fields update
regardless of what set they below too.
I assume that this can be done by passing the handler call up to the card
level?
My questions are as follow:

1. Can a custom handler work like "on doMath" and pass script to make it
work from the card level?
2. The on doMath handler at the card level; can it include all of the
different math scripts in that one handler so they all update at the same
time from any field edited in the sets of fields needing updates.
3. Can I also include the field format command.
4. My consideration is that the fields were not updating as a complete
group and that will confuse the user when they now need to re-enter the
other fields to trigger the related changes from the other edits?

Last concern: I was able to get the format to add the decimal places, but I
needed to have the money symbol in the field also. When the typed in the
field the math script won't run. The same thing happened when I used a
comma for the divider of hundreds. So that kills the scripts. I did not
find anything that tells you how to solve this? I tried the dictionary for
answers but nothing was doing it!

Thank you

Vaughn Clement

Apps by Vaughn Clement (Support)
*http://www.appsbyvaughnclement.com/tools/home-page/*
Skype: vaughn.clement
https://secure.join.me/appsbyvclement
FaceTime: vclement at gmail.com
LogMeIn also avaialble
Call on "ooVoo" at address:  vaughnclement or 9282549062
Ph. 928-254-9062
Cloud Hosting Registration Web Site:
https://my.oditech.com/cart.php?a=add&pid=41



More information about the use-livecode mailing list