Discussions

Expand all | Collapse all

New Record in Another App

  • 1.  New Record in Another App

    Posted 04-18-2018 19:34
    I have two apps.  I would like to have a button on a dashboard (app A) that would create a new record in a table in the other app (appB).  When creating this new record, I would like data to prepopulate with set value.  I will want to change this code to paste a different value depending on the location I put this button.  This button could potentially be added to several other apps.


  • 2.  RE: New Record in Another App

    Posted 04-18-2018 20:00
    All you have to do is build the URL. I use one to create helpdesk tickets from any dashboard. Like you, I change the field value based on the app the button is on. Below is an example:
    https://"yourcompany".quickbase.com/db/"yourDBID"?a=API_GenAddRecordForm&dfid=16&_fid_142="your field value"


  • 3.  RE: New Record in Another App

    Posted 04-18-2018 20:09

    Gil,

    Interesting. the dfid of 16 is the form being used to create the record via the button, and - question - you have dfid 16 set up with pre-populated field values?




  • 4.  RE: New Record in Another App

    Posted 04-18-2018 20:16
    Yes, I set it to a specific form because there are many other forms in the table and I pre-populate fields based on where the button is located. This helps identify where the button was clicked.


  • 5.  RE: New Record in Another App

    Posted 04-18-2018 20:17
    I like it. :)