Forum Discussion

ChrisSwirtz2's avatar
ChrisSwirtz2
Qrew Cadet
6 years ago

Need Formula Field to always navigate to report of child records

See attached Excel file for explanation of what I am looking for but in short, I am looking to replace a report link field with a formula field that will always take me to the report of child records where is 1 or 100 of them.

------------------------------
Chris Swirtz
------------------------------
  • You can make a URL formula button to run any report.
    A report link field is just a built in feature to run a report with one extra filter - that being how the Report Link field is configured, typically but not necessarily where the Record ID# field on the parent matches the field [Related Parent]] on the child record.

    So, first step is to make your perfect report with an <ask the user>  for [Related Parent]
    Run the report, answer the question and observe the URL.

    Now make a formula URL to mimic that URL

    URLRoot() & "db/" & [_DBID_of the child table found in advanced properties] & "?a=q&qid=99&nv=1&v0=" & [Record ID#]

    So translated that says:
    Go to my Realm and then to the child table and run report #99 which has 1 question and the answer to the zeroth question (don't ask me why but computers sometimes like to start to count from zero) is [Record ID#] of the parent record.

    ------------------------------
    Mark Shnier (YQC)
    Quick Base Solution Provider
    Your Quick Base Coach
    http://QuickBaseCoach.com
    mark.shnier@gmail.com
    ------------------------------
    • ChrisSwirtz2's avatar
      ChrisSwirtz2
      Qrew Cadet
      so if the DBID of the child record is bp9s6xp7v how would that get entered into this formula? Every way I add it I get a syntax error, but I'm sure I'm doing it wrong.


      ------------------------------
      Chris Swirtz
      ------------------------------
      • MarkShnier__You's avatar
        MarkShnier__You
        Icon for Qrew Legend rankQrew Legend
        look at the advance properties tab for the child table.  ASt the bottom it will give the table alias like

        _DBID_CHILDREN

        so you just put that in the square brackets like below including the leading underscore

        [_DBID_CHILDREN]

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