AlinMihalcea1
8 years agoQrew Assistant Captain
API_EditRecord with rdr to a different table where you API_GenAddRecordForm
Wanting to create a URL button that will edit a record using API_EditRecord and redirect to a new table where by using a API_GenAddRecordForm create a new record.
Is this even possible?
"javascript:if(confirm ('Are you sure you want to edit this record?')){location.assign('/db/" & Dbid() & "?act=API_EditRecord&apptoken=xxx&rid="&URLEncode([Record ID#]) & "&_fid_132=Canceled&rdr="&URLEncode(URLRoot() & "db/" & URLEncode([_DBID_STORE]) & "?a=API_GenAddRecordForm\n\n&_fid_151=" &URLEncode([Related Store #])&"\n\n&_fid_179=" &URLEncode([Related Project Quote])&"\n\n&_fid_437=" & URLEncode([Record ID#])& "\n\n&_fid_344=" & "Trip Charge"& "\n\n&z=" & Rurl())& "')}
Is this even possible?
"javascript:if(confirm ('Are you sure you want to edit this record?')){location.assign('/db/" & Dbid() & "?act=API_EditRecord&apptoken=xxx&rid="&URLEncode([Record ID#]) & "&_fid_132=Canceled&rdr="&URLEncode(URLRoot() & "db/" & URLEncode([_DBID_STORE]) & "?a=API_GenAddRecordForm\n\n&_fid_151=" &URLEncode([Related Store #])&"\n\n&_fid_179=" &URLEncode([Related Project Quote])&"\n\n&_fid_437=" & URLEncode([Record ID#])& "\n\n&_fid_344=" & "Trip Charge"& "\n\n&z=" & Rurl())& "')}