Forum Discussion
UrsulaLl
8 years agoQrew Assistant Captain
Ended up doing some funky stuff to get it working right. I am posting it here just in case anyone else comes across this issue.
var Text encoded = URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#];
var Text linkBase = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&AppToken=XXXX&rid=" & URLEncode ([Record ID#])& "&_fid_233=yes&_fid_254=" & Now() & "&rdr=" & $encoded;
"<a class='Vibrant' href='#'
onclick=\"javascript:
$.getScript('" & URLRoot() & "db/" &Dbid() & "?a=dbpage&pagename=SCRIPT.JS&rand='+Math.random());
$.get('" & $linkbase & "',function(){" & "location.reload(true);" & "});"
& "void(0);\">
</a>"
Whew, this one took a lot of brain use, glad I got it working
var Text encoded = URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#];
var Text linkBase = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&AppToken=XXXX&rid=" & URLEncode ([Record ID#])& "&_fid_233=yes&_fid_254=" & Now() & "&rdr=" & $encoded;
"<a class='Vibrant' href='#'
onclick=\"javascript:
$.getScript('" & URLRoot() & "db/" &Dbid() & "?a=dbpage&pagename=SCRIPT.JS&rand='+Math.random());
$.get('" & $linkbase & "',function(){" & "location.reload(true);" & "});"
& "void(0);\">
</a>"
Whew, this one took a lot of brain use, glad I got it working
- GauravSharma38 years agoQrew CommanderHi Ana,
I have a scenario where I need to first refresh the record then, edit the same record and update the parent record. Can you please help me with that?
If you want, you can take a look at my question here.
Do let me know if you need any further information.
Thanks,
Gaurav