Forum Discussion

BrianneJacobsen's avatar
BrianneJacobsen
Qrew Trainee
5 years ago

Auto Fill

I don't know how to explain some of this so please bear with me.  I inherited this app from someone else who is no longer with the company, I'll call them X. 

Some background, all our bids are assigned a Project # which is the Record ID of the Bid record in our Bid Table.  That number then follows the project thru several tables to completion and is the unique identifier in projects that can have similar sounding Project Names.  We may send a bid to multiple different companies and may have several different buyouts associated with each bid.

X created a table which combines two other tables so that we can assign multiple companies to a single bid
(Bid--> Table Y <-- Company)
and created a button on the Bid form to "Assign Bid Company" that takes one to the form in Table Y to assign a record of the Bid Company.  A report on the Bid Form then shows all companies we send bids to for that project.  It works great.

I created a table which combines two other tables so that we can assign multiple buyouts to a single bid
(Bid --> Table Z <-- Buyouts)
and created a button on the Bid form to "Add Buyout" that takes one to the form in Table Z that links a buyout to the Bid and a report that shows all the buyouts associated with that project.  Again it works.

Here's my issue... When X created their button and link to Table Y the Project # field auto-populates, however, the button and link to Table Z, while it has a Project # field, doesn't auto-populate.  I have compared the Forms, the Field Properties, the Relationships, Lookup options and everything else I could think of to try and figure out how X got the Project # field to auto-populate but cannot figure it out.  Everything appears to be the same (other than the obvious  Table Y vrs. Table Z).

Please make me feel stupid and tell me it is something incredibly simple that I am overlooking.  Or just tell me how I can auto-populate the Project # field in the Table Z form! ​​​​​

------------------------------
Brianne Jacobsen
------------------------------
  • MeredithMoore5's avatar
    MeredithMoore5
    Qrew Assistant Captain
    You just add the field to the button URL. The code below will add a new record to your table and fill out what ever fields need to be brought over.

    URLRoot() & "db/" & [_DBID_DOCUMENTS] & "?a=API_GenAddRecordForm&_fid_15=" & URLEncode ([Record ID#])&"&_fid_11=" & URLEncode([Related Client])&"&_fid_13=" & URLEncode ([Related App])& "&z=" & Rurl()


    Let's break that down:

    URLRoot() & "db/" & [THIS IS THE NAME OF YOUR TABLE THAT YOU ARE CREATING A NEW RECORD FOR] & "?a=API_GenAddRecordForm&_fid_THIS IS THE FIELD ID ON THE CHILD TABLE THAT DIRECTLY RELATES TO THE TABLE THE BUTTON IS ON (PARENT RECORD ID#)=" & URLEncode ([Record ID#])&"&_fid_THIS IS ANOTHER FIELD THAT YOU WANT FILLED OUT WITH SOMETHING FROM THE PARENT TABLE=" & URLEncode([NAME OF FIELD IN PARENT TABLE])&"&_fid_13=" & URLEncode ([Related App])& "&z=" & Rurl()

    You can just keep adding fields to auto populate from the Parent Table.
    You can find the NAME OF YOUR TABLE in the table's "Advanced Settings"



    ------------------------------
    QuickBase Girl
    ------------------------------
    • BrianneJacobsen's avatar
      BrianneJacobsen
      Qrew Trainee

      Sorry, I'm still not getting it my URL are nearly identical.  Can you tell me what I would need to change on the Table Z formula?

      Table Z – doesn't auto populate:
      URLRoof()&"db/"&[_DBID_BUY_OUTS] &"?a=API_GenAddRecordForm&fid_77="&URLEncode([Record ID#])&"&dfid=10"&"z= & Rurl() 

      Table Y – auto populates:
      URLRoof()&"db/"&[_DBID_OPPORTUNITY_COMPANY_ASSIGNMENTS] &"?a=API_GenAddRecordForm&fid_7="&URLEncode([Record ID#])&"&z=" & Rurl() 



      ------------------------------
      Brianne Jacobsen
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        its URLroot  (with a t)

        ------------------------------
        Mark Shnier (YQC)
        Quick Base Solution Provider
        Your Quick Base Coach
        http://QuickBaseCoach.com
        mark.shnier@gmail.com
        ------------------------------