Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

Try this:

If(IsEmpty(_ispaid), "Paid on "&Get(CurrentDate), "")

  • Author

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

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.

  • Author

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

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

  • Author

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.

  • Author

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

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

  • Author

ok. Im actually using version 6 so could you please elaborate?

Post your script and well see if we can make it work wink.gif

  • Author

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

Try expanding the field a bit, or reducing the font size, so that you can see the entire field contents.

Try changing to this:

If(IsEmpty(_ispaid), "Paid on "&DateToText(Status(CurrentDate)), "")

  • Author

YAY it works thanks so much!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.