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.

Problem with Invoice # Calculation Solution

Featured Replies

In response to my query about creating a calculation to put together a date and code answer, where the calculation is 032305HAG - the following response was posted:

Filter ( GetAsText ( Date Modified ) ; "0123456789" )&ED Contacts::IN Code

However, I don't have the "Filter" function - I tried just typing it in but it told me there was a problem - the only way I could get it to work was by taking out the "Filter." but is it possible, it actually needs to be a listed operator? (I am using FMP 6)

My result is now: 03/23/05HAG - how do I get the "/" out?

Thanks!

Sarah

Yes, that's version 7 syntax you have there. You can try:

TextToNum( DateToText( Date Modified ) ) & ED Contacts::IN Code

Mind you, the leading zeros depend on your system format. If you want to play it safe, use:

Right ("0" & Month ( Date Modified ) , 2 ) &

Right ("0" & Day ( Date Modified ) , 2 ) &

Right (Year ( Date Modified ) , 2 ) &

ED Contacts::IN Code

  • Author

Thanks so much - it worked! Version 7 should be in my mailbox by Friday, but happy to know how.

Just out of curiousity - what does "Right" do?

Returns the specified number of characters in the supplied text, counting from the right.

I strongly recommend reading (at least) the help.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.