Forum Discussion
JasonJohnson
8 years agoQrew Assistant Captain
Here is a sample of the solution, thanks to Kirk Trachy!
// Begin button style
var text bgcolor = "#A5E294";
var text txtcolor = "black";
var text style = "style=\"text-decoration: none; box-shadow: 3px 3px 1px #888888; background:" & $bgcolor & "; border-radius: 3px; padding: 5px 8px; color: " & $txtcolor & "; display: inline-block; font: bold 700 24px/1 \" Calibri\", sans-serif; text-align: center; text-shadow:none;";
// End button style
var text URL= URLRoot() & "db/"& Dbid() & "?a=API_EditRecord&rid="& [Record ID#] &
"&_fid_882=1"
&"&rdr="
&URLEncode(URLEncode(URLRoot() & "db/"& [_DBID_Billing] & "?a=API_AddRecord" &
"&_fid_6=" & [Location ID]&
"&_fid_7=" & [Printer Bill Amount]&
"&_fid_8=" & [Project ID]&
"&_fid_9=" & [Install Date]&
"&_fid_10=" & [Type of Cancellation]&
"&_fid_11=" & [Install Bill Amount]&
"&_fid_12=" & [PO Number]
& "&rdr="
& URLEncode( URLRoot() & "db/"& [_DBID_Billing] & "?a=API_AddRecord" &
"&_fid_6=" & [Location ID]&
"&_fid_7=" & [Printer Bill Amount]&
"&_fid_8=" & [Project ID]&
"&_fid_9=" & [Install Date]&
"&_fid_10=" & [Type of Cancellation]&
"&_fid_11=" & [Install Bill Amount]&
"&_fid_12=" & [PO Number]
& "&rdr="
& URLEncode( URLRoot() & "db/"& [_DBID_Billing] & "?a=API_AddRecord" &
"&_fid_6=" & [Location ID]&
"&_fid_7=" & [Printer Bill Amount]&
"&_fid_8=" & [Project ID]&
"&_fid_9=" & [Install Date]&
"&_fid_10=" & [Type of Cancellation]&
"&_fid_11=" & [Install Bill Amount]&
"&_fid_12=" & [PO Number]))));
"<a " & $style & " href=\"javascript:" & "$.get('" & $URL & "', function(){" & "location.reload();" &
"});" & "void(0);\">The Button Issue maybe</a>
// Begin button style
var text bgcolor = "#A5E294";
var text txtcolor = "black";
var text style = "style=\"text-decoration: none; box-shadow: 3px 3px 1px #888888; background:" & $bgcolor & "; border-radius: 3px; padding: 5px 8px; color: " & $txtcolor & "; display: inline-block; font: bold 700 24px/1 \" Calibri\", sans-serif; text-align: center; text-shadow:none;";
// End button style
var text URL= URLRoot() & "db/"& Dbid() & "?a=API_EditRecord&rid="& [Record ID#] &
"&_fid_882=1"
&"&rdr="
&URLEncode(URLEncode(URLRoot() & "db/"& [_DBID_Billing] & "?a=API_AddRecord" &
"&_fid_6=" & [Location ID]&
"&_fid_7=" & [Printer Bill Amount]&
"&_fid_8=" & [Project ID]&
"&_fid_9=" & [Install Date]&
"&_fid_10=" & [Type of Cancellation]&
"&_fid_11=" & [Install Bill Amount]&
"&_fid_12=" & [PO Number]
& "&rdr="
& URLEncode( URLRoot() & "db/"& [_DBID_Billing] & "?a=API_AddRecord" &
"&_fid_6=" & [Location ID]&
"&_fid_7=" & [Printer Bill Amount]&
"&_fid_8=" & [Project ID]&
"&_fid_9=" & [Install Date]&
"&_fid_10=" & [Type of Cancellation]&
"&_fid_11=" & [Install Bill Amount]&
"&_fid_12=" & [PO Number]
& "&rdr="
& URLEncode( URLRoot() & "db/"& [_DBID_Billing] & "?a=API_AddRecord" &
"&_fid_6=" & [Location ID]&
"&_fid_7=" & [Printer Bill Amount]&
"&_fid_8=" & [Project ID]&
"&_fid_9=" & [Install Date]&
"&_fid_10=" & [Type of Cancellation]&
"&_fid_11=" & [Install Bill Amount]&
"&_fid_12=" & [PO Number]))));
"<a " & $style & " href=\"javascript:" & "$.get('" & $URL & "', function(){" & "location.reload();" &
"});" & "void(0);\">The Button Issue maybe</a>