Forum Discussion

AndrewFry's avatar
AndrewFry
Qrew Assistant Captain
6 years ago

Bring down record #

I have three tables:
  • Work Orders
  • Jobs
  • Notes
I have the following relationships established between them:
Work Orders < Jobs
Work Orders < Notes
Jobs < Notes

The notes table is embedded in both the Jobs & Work Orders forms.

When I input a note into the Notes table, embedded in the Work Orders form, it works as expected.
It captures the Work Order record number and all of the other pertinent data points.

However, when I input a note into the Notes table, embedded in the Jobs form, it captures everything except the related Work Order record number.

The Job is related to a Work Order, and I need that work order record number to be brought down to the note being input into the job form (via the embedded notes table in the job form).

Both the Work Order and Job are saved, and thus a recorded number is generated, prior to the note being input.

Any thoughts, ideas, suggestions?

------------------------------
Andrew
andrew.fry25@gmail.com
------------------------------
  • Hi Andrew,
    It sounds like you need to have a Lookup Field for Work Order # in the relationship between Work Orders and Jobs. Then place a Lookup Field for that field inside of the Jobs to Notes relationship.
    Hope that helps!

    ​​

    ------------------------------
    John Crosland
    ------------------------------
    • AndrewFry's avatar
      AndrewFry
      Qrew Assistant Captain
      John,

      Thanks for the suggestion. I already had the Work Order record # coming down to the Job Table, but forgot to bring it down to the Notes Table from the Jobs table.

      However, I now have two ​​​​fields in my Notes table for basically the same thing: Work Order Record #. One via the ​relationship of Notes & Work Orders and the other via the relationship of Notes & Jobs.

      That doesn't seem ideal to me .....

      ------------------------------
      Andrew
      andrew.fry25@gmail.com
      ------------------------------
      • JohnCrosland's avatar
        JohnCrosland
        Qrew Trainee
        Depending on the design of your process, then you can remove that as a lookup field, and you can just populate the Related WO in Notes at creation based on the Related WO in Jobs. 

        This is made simpler if you keep both fields in Notes, and run an action or automation that will set the WO Number inside of Notes based on the WO Number from Job when the Related Job value inside of Notes changes.

        If you want to do it based on the change inside of Job, then you can set up an automation to set the WO Number inside of Notes, based on the Related Job being equal to the Key from the Job table.

        Let me know if you have any more questions or issues.

        ------------------------------
        John Crosland
        ------------------------------