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

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

Recommended Posts

Posted

Hey,

Ive made an invoice program for my dads friends bussiness and it has a button that when clicked it displays "PAID" in big bold red font over the invoice details (and it dissapears when clicked again). Now thats all fine but my question is: How do i make its so it says Paid on: (the date the button was clicked)?

Not the date that the record was created.

I have this script so far: If(IsEmpty(_ispaid), "Paid", ""). under a setField action.

Thanks cool.gif

Posted

Ok thanks that looks promising. But when i click ok to save the script it says: Either an operation was omitted, this function cannot be fount, or "(" was not expected here. and it highlights the word Get.

This is when i click ok for specifing the field calculation for SetField

Posted

Are you using version 7? I notice that you were using commas instead of semicolons between parameters which is a version 6 convention. If version 6, then you would use Status(CurrentDate) instead of Get(CurrentDate). Otherwise, make sure that your opening and closing quotes and parentheses match up.

Posted

Thanks, its working now that ive changed it to status..... well sort of.

When i clicked the paid buton it said: Paid on 732057.

Is that the date in a special format or something?

p.s Im using FileMaker pro 6

Posted

Change the Result of the Calulation to Date, it's showing as a number now. The Default for Calculations. -Just go into the Calculation Box, and at the bottom there is a Pull Down Menu with "Number" in it now.

HTH

Lee

Posted

hey Lee thanks for the reply but its actually a text field. And the calculation is in a script under the setfield command. So there is know pull down menu under setfield to change to date frown.gif.

Posted

hey Lee thanks for the reply but its actually a text field. And the calculation is in a script under the setfield command. So there is know pull down menu under setfield to change to date frown.gif.

It also says when you click specify for setfield it says it must return text.

Thanks

Posted

I don't have v7 (it's on the way), so I can't be sure if there are easier ways in it than in previous versions.

In v6, you would need to use the Script Step" Insert Calculated Result" and one of the Date Function.

HTH

Lee

Posted

OK ive upload the file, but I have deleted all current records the database had (for privacy)

I have created one test record under Option 1. So just click the view all button then click unpaid too get to it.

Once you are at the record there should be a button down the botton called "Paid" when you click it it toggles the Paid on: (date) text acrosss the screen. The script for this is called isPaid in the scripts menu, this is the one I need help with.

The file has been uploaded to: http://orbit.corruptspace.com/invoice-copy.fp5 if you cannot download it from there you may have to goto http://orbit.corruptspace.com/invoice-copy.fp5 and click save target as or download linked file from your browser

Thanks

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