Forum Discussion

mmontiel's avatar
mmontiel
Qrew Member
3 days ago

Provide Link to New Record on Predecessor Record

I've created a system where when a user clicks "Create New Agreement" URL button, a new record will be created that brings over key information, including the "predecessors" record ID so that the new record can capture that this previous agreement is a "predecessor". 

However, I'm trying to figure out a way on how to link the "predecessor" record to the newly created agreement as I want a user to actively see in the "predecessor" record that this work has already been completed. Any recommendations on how to do this? Thanks!

9 Replies

  • This worked, thank you. When I create this report link, the displayed Record ID hyperlinks out to the correct "successor" but it's showing the current record's Record ID in the field. While this isn't a problem because I can display a report that shows the successor record information, I'm now trying to create a separate QB report that will filter out any record that has an existing "successor". I'm trying to do this so that users will know what records still require action (e.g. if there is no successor linked to the agreement record and the agreement is about to expire, it requires action).

    • MarkShnier__You's avatar
      MarkShnier__You
      Icon for Qrew Legend rankQrew Legend

      To answer this:

      When I create this report link, the displayed Record ID hyperlinks out to the correct "successor" but it's showing the current record's Record ID in the field. 

      I was assuming that you would show an embedded report of the corresponding record on the form as opposed to that link.  It sounds like you are using legacy forms, so just change the form properties to show the records directly on the form. 

      As for developing that report well now we are talking about brother and sister type records that are not part of a relationship seeing each other. The only way to do that is by the use of a formula query. Have you used any of those before? The syntax can be a little tricky. 

      But I can probably help you with that syntax if you tell me the Field ID that holds that Record ID of the predecessor record and I guess the exact name of that field. .

       

      • mmontiel's avatar
        mmontiel
        Qrew Member

        I'm using new forms. I ended up using the embedded report like you said and this fits the form need. 

        I was previously trying to do this but was coming across errors. However, I think it was because I was using the incorrect formula type (rich text instead of text list). I used the following formula to link the "brother/sister" records and I think I got what I need, but please let me know if I'm missing anything. 

        GetFieldValues(GetRecords("{278.EX.'"&[Record ID#]&"'}"), 3)

        Field 278 is the predecessor field, Field 3 is the record ID. It correctly pulled the successor or "Renewal Agreement" ID. 

    • MarkShnier__You's avatar
      MarkShnier__You
      Icon for Qrew Legend rankQrew Legend

      If you just want to include an embedded report of the Predecessor record on the current record, create a Report Link field type Field and configure the left side as the [Record ID#] of the Predecessor, and the right side, navigate to the same app and same table and locate the [Record ID# field]. (watch out for a pop up blocker and accept the pop up). Put the report link field on the legacy form or on new forms put a report of all records and filter it by the Report link field in the side panel.

      • mmontiel's avatar
        mmontiel
        Qrew Member

        Would this provide a link on the predecessor record (Record A) to the newly create record (Record B)? The end goal is that a user can go to Record A & see that there is already a new created agreement (Record B).