Forum Discussion
MCFNeil
8 years agoQrew Captain
You can do it with a formula url button. Either using the API_AddRecord or API_GenAddRecordForm.
You will have to define the values that you want to copy, but that is pretty straight forward. An example is what appears in any of your default "add" buttons.
Where the line:
You will have to define the values that you want to copy, but that is pretty straight forward. An example is what appears in any of your default "add" buttons.
URLRoot() & "db/" & [_DBID_MESSAGES] & "?a=API_GenAddRecordForm&_fid_53=" & URLEncode ([Record ID#])& "&z=" & Rurl()
Where the line:
&_fid_53=" & URLEncode ([Record ID#])& "Is the information that is being written to the new form.
- AyoubSalhi8 years agoQrew TraineeI couldn't make it work, I used API_GenAddRecordForm
URLRoot() & "db/" & [_DBID_PURCHASE_ORDERS] & "?a=API_GenAddRecordForm&_fid_6=" & URLEncode ([Record ID#])& "&_fid_29=" & URLEncode ([Vendor])& "&z=" & Rurl()
- MCFNeil8 years agoQrew CaptainI'm not 100% sure, but because the table [DBID_Purchase_Orders] is in a different app, you might have to hard code the dbid (i.e. bm4a6kyi8).
Is it in the same domain? i.e www.YOURCOMPANY.quickbase.com - AyoubSalhi8 years agoQrew TraineeYes there are in the same domain, I'm able now to copy some fields, I figured out the 'fid' values was wrong. I'll try to copy the others and see what happens. Thanks