Forum Discussion
ChayceDuncan2
7 years agoQrew Cadet
My recommendation with that much going on is you're better off in the long run just writing some quick javascript to accomplish your goal. Makes it much easier to scale if you want to add a 5th, or 6th... so on.
Your syntax in a url button would look like:
"javascript: {" &
"$.get('" & $DeliveryDateInOS & "');" &
"$.get('" & $PickUpDateInOS & "');" &
"$.get('" & $ProcessRec & "');" &
"window.location.replace('" & URLRoot() & "db/" & Dbid()&"?a=dr&rid="&[Order Number]) & "');" &
"}"
The $.get() commands will call out to perform the editRecord Calls - then when complete it does your redirect via window.location.replace. Quick note if you go this route and want to add to it - make sure you're putting single quotes in your $.gets() - its a little hard to see written above. So the real syntax looks like $.get(' but since its a quick base formula it has to have double quotes for the formula like "$.get('"
Chayce Duncan | Technical Lead
(720) 739-1406 | chayceduncan@quandarycg.com
Quandary Knowledge Base
Your syntax in a url button would look like:
"javascript: {" &
"$.get('" & $DeliveryDateInOS & "');" &
"$.get('" & $PickUpDateInOS & "');" &
"$.get('" & $ProcessRec & "');" &
"window.location.replace('" & URLRoot() & "db/" & Dbid()&"?a=dr&rid="&[Order Number]) & "');" &
"}"
The $.get() commands will call out to perform the editRecord Calls - then when complete it does your redirect via window.location.replace. Quick note if you go this route and want to add to it - make sure you're putting single quotes in your $.gets() - its a little hard to see written above. So the real syntax looks like $.get(' but since its a quick base formula it has to have double quotes for the formula like "$.get('"
Chayce Duncan | Technical Lead
(720) 739-1406 | chayceduncan@quandarycg.com
Quandary Knowledge Base