The DSR uses Iframe (launching the DSR Form using IFV=1)
Problem: when you click the "Copy" button it does what it is supposed to by duplicating task, BUT it drops you back into the DSR form without the Iframe controls - basically it looks like any other form.
The code looks like this:
var text Copy = URLRoot() & "db/" & Dbid() & "?act=API_CopyMasterDetail&relfids=80&recurse=false©Fid=6&destrid=0&sourcerid=" & [Record ID#]
var text DisplayDSR = URLRoot() & "db/" & [_DBID_TIME_CARD] & "?a=dr&rid=" & [Record ID# of Focus DSR];
$Copy
& "&rdr=" & URLEncode($DisplayDSR)
I tried modifying Display DSR by adding iframe in the end like this:
var text DisplayDSR = URLRoot() & "db/" & [_DBID_TIME_CARD] & "?a=dr&rid=" & [Record ID# of Focus DSR] & "ifv=1";
The results were that it created the duplicate task, but the it gave me a message about not having permissions to that page, so I removed it.I'm looking for help on how I can modify the button code to bring the user back to the form in iframe mode. Thanks in advance!
Side note: There is a token required on this app, but I didn't want to post that here.
------------------------------
Wade Myers
------------------------------