Forum Discussion
IvanWeiss
5 years agoQrew Captain
Flip around the display record. You do not display it first, the API can edit the record and you can display it after
rewrite the formula completing your api edit record first. After that put an & next line should be
"&rdr=" & URLEncode(URLRoot() & "db/" & [_DBID_JOBS] & "?a=dr&rid=" & [Maximum Related Job]);
You complete the action and use the rdr to navigate after that.
------------------------------
Ivan Weiss
------------------------------
rewrite the formula completing your api edit record first. After that put an & next line should be
"&rdr=" & URLEncode(URLRoot() & "db/" & [_DBID_JOBS] & "?a=dr&rid=" & [Maximum Related Job]);
You complete the action and use the rdr to navigate after that.
------------------------------
Ivan Weiss
------------------------------
WallaceYeboah
5 years agoQrew Member
Thanks for the response Ivan. The formula still seems to not be working
Here is the updated formula:
URLRoot() & "db/" & "db/" & Dbid() & "?a=API_EditRecord" & "&_fid_1146=1" & "&rdr=" & URLEncode(URLRoot() & "db/" & [_DBID_JOBS] & "?a=dr&rid=" & [Maximum Related Job])
I get this error when I test
------------------------------
Wallace Yeboah
------------------------------
Here is the updated formula:
URLRoot() & "db/" & "db/" & Dbid() & "?a=API_EditRecord" & "&_fid_1146=1" & "&rdr=" & URLEncode(URLRoot() & "db/" & [_DBID_JOBS] & "?a=dr&rid=" & [Maximum Related Job])
I get this error when I test
<qdbapi>
<action>API_EditRecord</action>
<errcode>102</errcode>
<errtext>
Invalid request - we cannot understand the URL you specified.
</errtext>
</qdbapi>
------------------------------
Wallace Yeboah
------------------------------