AmberPolston
6 years agoQrew Cadet
Formula Button to Save a Record, Generate Record ID & redirect to a different page
I have a table to track work orders. Each work order has a [Related Contract]. The work order # is generated by taking the max # of work orders associated with a contract & increasing it by one.
Next Work Order# - Formula Numeric Field - [Max Work Orders]+1
***Dynamic form rule***
When Next Work Order# <>"" and Work Order#="", Change Work Order# to the value in the field Next Work Order#
Solution but need help
I have created a workflow that will allow my user to create a new work order and only enter the [Related Contract]. This would allow the dynamic form rule to create the [Next Work Order #]. HOWEVER... I can't find a formula for a button that will do the following.
"javascript:DoSaveAdd()" & "&rdr=" &
URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#] & "&dfid=21" & "&z=" & Rurl())
Can someone please help me find a solution to this problem so I can stop creating duplicate Work Order # & confusing my entire team.
------------------------------
Amber Polston
------------------------------
Fields & Formulas
Max Work Orders (per Related Contract) - Summary field from Work Orders to the Contracts table, then a lookup field on the work order table.Next Work Order# - Formula Numeric Field - [Max Work Orders]+1
***Dynamic form rule***
When Next Work Order# <>"" and Work Order#="", Change Work Order# to the value in the field Next Work Order#
Problem or Issue
If two users create a work order at the same time, duplicate [Work Order#] being created.
Work Order # | Date Created | Record Owner |
68 | 12/23/2019 9:04 | User # 1 |
68 | 12/23/2019 9:03 | User # 2 |
Solution but need help
I have created a workflow that will allow my user to create a new work order and only enter the [Related Contract]. This would allow the dynamic form rule to create the [Next Work Order #]. HOWEVER... I can't find a formula for a button that will do the following.
- Save the record
- Generate a Record ID
- Open the same record in a different form
"javascript:DoSaveAdd()" & "&rdr=" &
URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#] & "&dfid=21" & "&z=" & Rurl())
Can someone please help me find a solution to this problem so I can stop creating duplicate Work Order # & confusing my entire team.
------------------------------
Amber Polston
------------------------------