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

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

Recommended Posts

Posted

Hi, i'm new to scripting...well new to FM...anyway, I have a database with a quantity field and a form on the web that allows the user to remove X amount. Now, I don't want the quantity to be edited, but instead the result of a subtraction. Would calling a script be the right direction?

Posted

quote:

Originally posted by Jtown:

Hi, i'm new to scripting...well new to FM...anyway, I have a database with a quantity field and a form on the web that allows the user to remove X amount. Now, I don't want the quantity to be edited, but instead the result of a subtraction. Would calling a script be the right direction?

Hmm, possibly. However I assume that you are trying to give a VALUE, then allow the user to type in a ADJUSTMENT, and then you will arrive at a TOTAL.

Simply make your TOTAL field a calculation, like the following: TOTAL = VALUE - ADJUSTMENT.

Posted

hmm...I think the math part is easy, I just don't really understand what syntax to use in scriptmaker. In my webpage, I have the old recordid found and I have a quantity the user can enter to remover from the DB. I'm guessing the submit button will call a script, but how do I send it the both those values and write to the DB?

thanks for any help

Posted

quote:

Originally posted by Jtown:

hmm...I think the math part is easy, I just don't really understand what syntax to use in scriptmaker. In my webpage, I have the old recordid found and I have a quantity the user can enter to remover from the DB. I'm guessing the submit button will call a script, but how do I send it the both those values and write to the DB?

You should really be asking these questions in one of the web forums, if this question is how to get and manipulate data off of a web page.

This topic is 8539 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.