MichaelTamoush
5 years agoQrew Captain
Edit API using Formula Rich Text
I took this code from Kirks Magic Buttons, and messed with it a bit but I guess too much and it doesn't seem to work. Anyone see the error?
"<a class='Vibrant Snowy' style=\"width:310px;\" href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=xxxxxxxxxxxxxxxxxxxxxxxxxx&fid_186=CLIN 0009&_fid_175=" & [Numeric Value Field] & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#]) & "'>Assign To "& [Site Code] & "</a>"
Where field 186 is a multiple choice field with 'CLIN 0009' as one option, and field 175 is a related numeric field.
It all works except the most important part, the edit record api. Nothing seems to happen. Not sure if its not even running the edit record api, or its not actually changing the fields....I just know that nothing happens. I land on the record and nothing has been edited.
------------------------------
Mike Tamoush
------------------------------
"<a class='Vibrant Snowy' style=\"width:310px;\" href='" & Dbid() & "?a=API_EditRecord&rid=" & [Record ID#] & "&apptoken=xxxxxxxxxxxxxxxxxxxxxxxxxx&fid_186=CLIN 0009&_fid_175=" & [Numeric Value Field] & "&rdr=" & URLEncode(URLRoot() & "db/" & Dbid() & "?a=dr&rid=" & [Record ID#]) & "'>Assign To "& [Site Code] & "</a>"
Where field 186 is a multiple choice field with 'CLIN 0009' as one option, and field 175 is a related numeric field.
It all works except the most important part, the edit record api. Nothing seems to happen. Not sure if its not even running the edit record api, or its not actually changing the fields....I just know that nothing happens. I land on the record and nothing has been edited.
------------------------------
Mike Tamoush
------------------------------