Forum Discussion
QBuserQBuser
8 years agoQrew Cadet
Thanks for the info on the app token.
The number of children varies depending on the selection, but a minimum of 5. The current button I am working on adds 5 records. Is there something I can add to the URL formula to save the parent record first and then create the children?
Here is my current formula:
var text SetFocus = URLRoot()&"db/"&[_DBID_FOCUS_TASKS]
& "?act=API_EditRecord&rid=1"
& "&_fid_6=" &[Record ID#];
var text RunImport= URLRoot()& "db/"&[_DBID_TREATMENT_BATCHES]& "?a=API_RunImport&ID=10";
var text RefreshRecord= URLRoot()&"db/"&Dbid()&"?a=dr&rid="& ToText([Record ID#]);
$SetFocus
&"&rdr="& URLEncode($RunImport)
&URLEncode("&rdr="& URLEncode($RefreshRecord))
The number of children varies depending on the selection, but a minimum of 5. The current button I am working on adds 5 records. Is there something I can add to the URL formula to save the parent record first and then create the children?
Here is my current formula:
var text SetFocus = URLRoot()&"db/"&[_DBID_FOCUS_TASKS]
& "?act=API_EditRecord&rid=1"
& "&_fid_6=" &[Record ID#];
var text RunImport= URLRoot()& "db/"&[_DBID_TREATMENT_BATCHES]& "?a=API_RunImport&ID=10";
var text RefreshRecord= URLRoot()&"db/"&Dbid()&"?a=dr&rid="& ToText([Record ID#]);
$SetFocus
&"&rdr="& URLEncode($RunImport)
&URLEncode("&rdr="& URLEncode($RefreshRecord))