MelanieMercadel
4 years agoQrew Trainee
Formula URL Syntax Error (Case Function)
Hello -
I'm unable to resolve a syntax error. I copied a formula and tried to add a Case function, but am now getting a syntax error.
The original formula that works fine:
URLRoot() & "db/" & [_DBID_TP_MODEL_RESOURCE] & "?a=API_AddRecord&apptoken=dkmnkvc6xxfffbyjn4imbopoynw&_fid_55=32&_fid_38=" & [Record ID#] & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#])
The edited formula with the error:
URLRoot() & "db/" & [_DBID_TP_MODEL_RESOURCE] & "?a=API_AddRecord&apptoken=dkmnkvc6xxfffbyjn4imbopoynw&_fid_55=" &
Case([TP Model Def - Name],
"Clinical","32",
"Syn One","27",
"GCS","23",
"REMS","25",
"FSP","29",
"Systems Only","1",
"Early Phase (Clinical)","20")
&_fid_38=" & [Record ID#] & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#])
The syntax error highlights the first underscore in the first bit on the last line "&_fid_38..."
Thanks in advance for your help!
------------------------------
Melanie Mercadel
------------------------------
I'm unable to resolve a syntax error. I copied a formula and tried to add a Case function, but am now getting a syntax error.
The original formula that works fine:
URLRoot() & "db/" & [_DBID_TP_MODEL_RESOURCE] & "?a=API_AddRecord&apptoken=dkmnkvc6xxfffbyjn4imbopoynw&_fid_55=32&_fid_38=" & [Record ID#] & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#])
The edited formula with the error:
URLRoot() & "db/" & [_DBID_TP_MODEL_RESOURCE] & "?a=API_AddRecord&apptoken=dkmnkvc6xxfffbyjn4imbopoynw&_fid_55=" &
Case([TP Model Def - Name],
"Clinical","32",
"Syn One","27",
"GCS","23",
"REMS","25",
"FSP","29",
"Systems Only","1",
"Early Phase (Clinical)","20")
&_fid_38=" & [Record ID#] & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=er&rid=" & [Record ID#])
The syntax error highlights the first underscore in the first bit on the last line "&_fid_38..."
Thanks in advance for your help!
------------------------------
Melanie Mercadel
------------------------------