Automatically create a record when a date expires
I have a table called "Jobs". This has a sub-table called "Workings". In the "jobs" table there is a "Date" field that I set manually. I would like to create a formula that, when the date specified in the "Date" field arrives, automatically creates a record in the "Workings" sub-table, associated with the parent table. I can't find solutions ...
4 replies
-
Why don't you just create the child record in Workings at the same time? If it's linked to the Job record, which has a date, then you can simply filter both of them out of view with a filter showing only records whose JobDate > today. Would not that work?
-
You can try this in a button on the Jobs table:
let t := this if DateFieldName < today() then let newRec := (create Workings) newRec.(Jobs := t; DateExpired := t.DateFieldName) end
Of course you need to change the names of the tables and fields so they match yours.
Let me know if that works then we can add a loop so you can add it to the Trigger after Open of the table Jobs.
Content aside
- 2 yrs agoLast active
- 4Replies
- 81Views
-
4
Following