MichaelTamoush
5 years agoQrew Captain
Strange Copy Master Detail Behavior
I'm having trouble with the copy master api on mobile.
Copy Master Detail API is below. Works great on desktop. But on mobile, it makes 2 copies when the URL button is pushed (I tried 'pushing the button lighter and quicker to test if i was accidentally hitting it twice. I am not).
What is strange, is if I remove the numbers of the Report Links to copy, it works just fine on mobile. Makes only one copy. See below.
var text CopyMasterDetail = URLRoot() & "db/" & Dbid() & "?a=API_CopyMasterDetail&destrid=0&sourcerid=" & ToText([Record ID#])
& "&apptoken=xxxxxxxxxxxxxxxxxxxxxxxxxx"
& "©fid=116"
& "&relfids=75,73,191,189,193,429"; // IF I DELETE THESE NUMBERS IT WORKS FINE
var text ReturntoFieldHome = URLRoot() & "db/bpu98ejpu?a=showpage&pageid=101";
var text LandingURL = $ReturntoFieldHome;
$CopyMasterDetail
& "&rdr=" & URLEncode($LandingURL)
------------------------------
Mike Tamoush
------------------------------
Copy Master Detail API is below. Works great on desktop. But on mobile, it makes 2 copies when the URL button is pushed (I tried 'pushing the button lighter and quicker to test if i was accidentally hitting it twice. I am not).
What is strange, is if I remove the numbers of the Report Links to copy, it works just fine on mobile. Makes only one copy. See below.
var text CopyMasterDetail = URLRoot() & "db/" & Dbid() & "?a=API_CopyMasterDetail&destrid=0&sourcerid=" & ToText([Record ID#])
& "&apptoken=xxxxxxxxxxxxxxxxxxxxxxxxxx"
& "©fid=116"
& "&relfids=75,73,191,189,193,429"; // IF I DELETE THESE NUMBERS IT WORKS FINE
var text ReturntoFieldHome = URLRoot() & "db/bpu98ejpu?a=showpage&pageid=101";
var text LandingURL = $ReturntoFieldHome;
$CopyMasterDetail
& "&rdr=" & URLEncode($LandingURL)
------------------------------
Mike Tamoush
------------------------------