Forum Discussion
ChrisChris
9 years agoQrew Assistant Captain
Carlos,
Did you do anything differently to the code to make the buttons work in your reports? I applied the apptoken parameter to the query string and the buttons work with apptokens enabled, but in a report the buttons do not work.
Chris
CarlosCarlos
9 years agoQrew Assistant Captain
Chris, no nothing different.
Here's the code to one of the buttons I did:
Here's the code to one of the buttons I did:
var text action = URLRoot() & "db/" & Dbid() & "?a=API_editRecord&key="& [Item] & "&_fid_699=1" & "&_fid_700=" & URLEncode(User()) & apptoken=abcdefg1234567;
var text url = "javascript:" & "$.get('" & $action & "',function(){" & "$.jGrowl('Growl notification text goes here', {life: 5000, theme: 'jGrowl-green'});" &"});" &"void(0);";
var text button = "<a class='Vibrant Alert' href=\"" & $url &"\"" & "> Do action and Growl " & "</a>";
$button