Forum Discussion
ROBERTSACHS
7 years agoQrew Cadet
I created a test field (fid=155) and tried this:
var text URLONE = URLRoot() & "db/" & Dbid()
& "?act=API_EditRecord&_rid=" & [RecordID#]
& "&_fid_155=" & URLEncode("Hello");
var text URLTWO = URLRoot() & "db/" & Dbid()
& "?a=dr&rid=" & ToText([RecordID#]);
$URLONE
& "&rdr=" & URLEncode($URLTWO)
that did not work. No update to the field.
I also commented out the URLTWO etc. and used the javascript
"javascript:" &
"$.get('" &
$URLONE &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
That did not work either.
What am I doing wrong?
var text URLONE = URLRoot() & "db/" & Dbid()
& "?act=API_EditRecord&_rid=" & [RecordID#]
& "&_fid_155=" & URLEncode("Hello");
var text URLTWO = URLRoot() & "db/" & Dbid()
& "?a=dr&rid=" & ToText([RecordID#]);
$URLONE
& "&rdr=" & URLEncode($URLTWO)
that did not work. No update to the field.
I also commented out the URLTWO etc. and used the javascript
"javascript:" &
"$.get('" &
$URLONE &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
That did not work either.
What am I doing wrong?