Forum Discussion
MarkShnier__You
Qrew Legend
5 years agoI gather that you are sitting on a Parent record and want to add a child and then return to the parent record in edit mode on a particular form.
Try this for the Add Child (Add Department unit) button.
var text AddDeptUnit = URLRoot() & "db/" & [_DBID_ADD_DEPARTMENT_UNIT] & "?a=API_GenAddRecordForm&_fid_6=" & URLEncode ([Record ID#]);
var text ParentInEditMode = URLRoot() & "db/" & dbid() & "?a=er&rid=" & [Record ID#]
& "&dfid=2";
$AddDeptUnit
& "&NextURL=" & URLEncode($ParentInEditMode)
replace the "2" with the form number of the Parent table that you that you want to land the user on.
In my mind & "&dfid=2";
means
"Da Form ID is 2"
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
Try this for the Add Child (Add Department unit) button.
var text AddDeptUnit = URLRoot() & "db/" & [_DBID_ADD_DEPARTMENT_UNIT] & "?a=API_GenAddRecordForm&_fid_6=" & URLEncode ([Record ID#]);
var text ParentInEditMode = URLRoot() & "db/" & dbid() & "?a=er&rid=" & [Record ID#]
& "&dfid=2";
$AddDeptUnit
& "&NextURL=" & URLEncode($ParentInEditMode)
replace the "2" with the form number of the Parent table that you that you want to land the user on.
In my mind & "&dfid=2";
means
"Da Form ID is 2"
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------