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.

Layout Issue with Dates

Featured Replies

I have 2 fields, a Move In Date and Move Out Date. I need a report/layout that is a "Receipt", that takes those two dates (example January 1 and March 15) and then puts them on the receipt as:

January 1st, 2012

January 2nd, 2012

January 3rd, 2012

etc

etc

Until it gets to March 15.

Each line has a rental rate, and I need to put a total on there, but I can handle all that. It's the daily breakout that i'm struggling with.

Any advice? Thank you!

A repeating calculation field could do that. Other options are a recursive custom function (requires the Advanced version to install) or a looping script to write it out, either to a field (return-separated) or to individual records in a related table.

You could also use the List function if they are in a separate table. If not, there's a function on briandunning.com that can list out data from the same field.

Try this

http://www.briandunning.com/cf/231

  • Author

When I do this:

Let ( [

dateMin = GetAsDate ( Min ( GetAsDate ( Date Begin );

GetAsDate ( Date End ) ) );

dateMax = GetAsDate ( Max ( GetAsDate ( Date Begin );

GetAsDate ( Date End ) ) );

dateList = Case (

not IsValid ( dateMin ) ; "?";

not IsValid ( dateMax ) ; "?";

dateMin = dateMax ; dateMax & ¶;

dateMin & ¶ & DateValues ( dateMin + 1 ; dateMax )

);

result = dateList

];

result

)

It highlights a section and says "the function cannot be found." The highlighted part is this: "lues (dat"

It's on the line that says: dateMin & ¶ & DateValues ( dateMin + 1 ; dateMax )

If it matters, I'm using FM12.

Other options are a recursive custom function (requires the Advanced version to install)

  • Author

Ok wasn't 100% sure what a recursive function was... dang. Thanks for the help.

Ok wasn't 100% sure what a recursive function was... dang. Thanks for the help.

If you post your file, I guess some helpful soul would be willing to input that Custom Function for you. (You can use CFs without Advanced, just not edit them.)

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.