Skip 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.

Task Scheduling

Featured Replies

Please help, I have 4 field date and time from and date and time to

This the sample format 4pm 07/07/05  and  8pm 07/08/15

 

 

 

Assuming you want to calculate the elapsed time, make the calculation =

Timestamp ( DateTo ; TimeTo ) - Timestamp ( DateFrom ; TimeFrom ) 

and set the result type to Time.

  • Author

Thanks it works. This is exactly what i need.

  • 7 months later...
  • Author

I have a previous post here about this but i deleted it because of confusion. The calculation @comment provide me is working but i have a problem, I am not sure if its on relationship or calculation field of the date and time. I attach the example data. In task layout record 2 as you see the hours to complete is 24 so when i start at 6:AM of feb 16 it suppose to end at 6:AM feb 17. In View layout it should show but it is not appearing when i select the date of Feb 16. I also notice when i add record that exceeds at 12:AM it is not showing.

Task Scheduling.fmp12

Edited by chadski021
change table to layout

I'm not seeing the issue. What version of FM are you using?

 

 

2016-02-17_09-35-57.png

2016-02-17_09-35-25.png

  • Author

two versions 13 and 14.

Here is the screenshot

 

Untitled.png

Edited by chadski021

Ok, let's make sure you have the lingo right.  When you mentioned "view table" I assumed  you meant "table view".  So be clear to let us know what layout you are seeing or not seeing something.

  • Author

Ow sorry not table i mean layout.

  • Author

Just to follow on this.

Edited by chadski021

it's because your time end (even though on a different date) is not greater than 6am, so the relationship from the 7am and later timeslots is not valid.

You'd be better off using a timestamp field for the relationship instead of separate date and time fields.  The end-time field does not know it belongs to the next day...

  • Author

What will happen is that i will create start timestamp and end timestamp is that correct?

  • Author

How about the relationship on the Date global fields?

you wouldn't need a relationship on the date or time fields, just one on a new timestamp field in the Time table (that is a combination of the global date and the time field)

and you'll need new timestamps field in Tasks, one for start and one for end and base the relationship on these.

  • Author

Thank you it seems to be working fine. By the way how do i calculate the endtimestamp? Right now i am using 3 fields Hours to Complete, Start Timestamp and End Timestamp. I know @comment provided me a calculation for this but i deleted the thread.

Edited by chadski021

Don't delete threads, even if they are confusing.  There's always something to be learned from it.

You calculate the ending timestamp just like you do for the starting timestamp:

Timestamp ( taskDateEnd ; taskTimeEnd )

 

 

  • Author

Another thing, Using the calculation is there a way to skip the weekends?

Why not do a search for Weekend Calculations. Here, I’ll give some hints.

Brian Dunning's Custom Functions site Here  I already use a search word of Weekend for you. Do a Google search using these words site:fmforums.com Weekend Calculations

Let me know if you don’t find what you want. :)

  • 1 month later...
  • Author

@Lee Smith thanks finally solve my issue.

:waytogo:

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.