Forum Discussion
Ok so I am now trying to create formula in child...
Formula:
//Adds new DECISION STATUS CHANGES record with status = "Approved"
var text SIGNIN = URLRoot() & "db/main?a=SignIn";
var text apptoken = "b6w3x2vddzcyk3c8upwsnbu5vqbw";
var text APPROVED =
URLRoot() & "db/" & Dbid() &
"?a=API_AddRecord" &
"&rid=" & URLEncode ([Record ID#]) &
"&apptoken="& $apptoken &
"&_fid_25=" & "Approved" &
//"&_fid_42=" & Now() &
//"&_fid_32=" & ToText(User()) &
"&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() &
"?a=dbpage&pageID=2");
$SIGNIN &
"&NextURL=" & URLEncode($APPROVED)
For some reason this is opening in the wrong table altogether, my LEAVE REQUEST table (the parent of REQUEST DECISIONS which is parent of DECISION STATUS CHANGES).
Table #1 | FACULTY | buk4s62z5 |
Table #2 | LEAVE REQUESTS | buk4s623u |
Table #3 | LEAVE TYPES LIST | buk4s625z |
Table #4 | APPROVERS LIST | buk4s627y |
Table #5 | REQUEST DECISIONS | buk4s629y |
Table #6 | DECISION STATUS LIST | buk4s63bx |
Table #7 | DECISION STATUS CHANGES | buk4s63ek |
Can anyone see why it's not accessing DECISION STATUS CHANGES table?
- MarkShnier__You14 days agoQrew Legend
I think I would do it this way.
var text APPROVED =
URLRoot() & "db/" & [DECISION STATUS CHANGES] &
"?a=API_AddRecord" &
"&rid=" & URLEncode ([Record ID#]) &
"&apptoken="& $apptoken &
"&_fid_25=" & "Approved" &
//"&_fid_42=" & Now() &
//"&_fid_32=" & ToText(User());var text LandingPage = URLRoot() & "db/" & AppID() &
"?a=dbpage&pageID=2");$Approved
& "&rdr=" & URLEncode($LandingPage)
I'm not sure that you need that Sign On Step.
If you find that you do, it would look like
But if you do
$SIGNIN
& "&NextURL=" & URLEncode($Approve)
& URLEncode("&rdr=" & URLEncode($LandingPage))