Forum Discussion
1 Reply
- MarkShnier__YouQrew Legend
sorry, I realized hat here was an error
Button to add a record
The button for the Add would be something like this
var text ADD = URLRoot() & "db/" & [_DBID_Travel_Request]
& "?act=API_GenAddRecordForm"
& "&_fid_10=Spanish"
& "&dfid=11";
var text Dashboard = URLRoot() & "db/" & AppID();
$Add
& "&NextURL=" & URLEncode($Dashboard)
You can try that button by clicking on the code it generates before trying it on the Dashboard as a URL.
For the edit button which would be presents to the user as on the results of their search the button might be like this
var text FormID=
Case([Language],
"Spanish","11",
"French", "12",
"English","2");
var text Edit = URLRoot() & "db/" & [_DBID_Travel_Request]
& "?a=er" & "&rid=" & [Record ID#]
& "&dfid=" & $FormID;
var text Dashboard = URLRoot() & "db/" & AppID();
$Edit
& "&NextURL=" & URLEncode($Dashboard)
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------