Action button to Related Table View

Iโ€™m not sure if Iโ€™m using the right language, but I have some table relationships set up and working the way I want, but instead of listing the related tables, I would like a button that would go to the same spot as if I hit โ€œviewโ€ on the bottom of the inline related table list. In the example below, there would be a button that said โ€œSchoolsโ€ and another for โ€œDistrict Directoryโ€, but those inline reference tables would be gone.

Hopefully that makes some sort of sense! Thanks in advance.

Solved Solved
1 6 498
1 ACCEPTED SOLUTION

Well, I kept messing around 'till I got it to work. Iโ€™m not sure exactly why this works yet, but it is starting to make sense:

LINKTOFILTEREDVIEW(โ€œSchools_Inlineโ€, [Related Schools]=[DISTRICT].[Related Schools])

I think in this case [DISTRICT] is the name of the reference row? But I also have a table named DISTRICT. I think it would make more sense if I had a better naming convention.

If time allows for someone to explain what is going on in the syntax, Iโ€™d love to hear it just to grow my understanding. @Steve Thanks for getting me pointed in the right direction, as always!

View solution in original post

6 REPLIES 6

Steve
Platinum 4
Platinum 4

The button would be an action of type App: go to another view in this app with a Target expression of:

LINKTOFILTEREDVIEW("Schools_Inline", [Related Schools])

Note that Iโ€™m guessing on Schools_Inline; youโ€™ll need to identify or choose the desired table view.

That sounds like exactly what I need, but I am getting this error. The name of the related table is Schools_Inline like you guessed. Iโ€™ve tried it with multiple inline references and tables and keeping getting the same error. Thoughts?

It seems from examples that I could find that the [Related Schools] portion needs to reference something, but Iโ€™m not sure what it is supposed to reference?

Example: LINKTOFILTEREDVIEW(โ€œSchools_Inlineโ€, [Related Schools]=?something?)

Just not sure what to put the ?something? spot!

Well, I kept messing around 'till I got it to work. Iโ€™m not sure exactly why this works yet, but it is starting to make sense:

LINKTOFILTEREDVIEW(โ€œSchools_Inlineโ€, [Related Schools]=[DISTRICT].[Related Schools])

I think in this case [DISTRICT] is the name of the reference row? But I also have a table named DISTRICT. I think it would make more sense if I had a better naming convention.

If time allows for someone to explain what is going on in the syntax, Iโ€™d love to hear it just to grow my understanding. @Steve Thanks for getting me pointed in the right direction, as always!

Iโ€™m not sure why that works either, haha. I would have gone with:

LINKTOFILTEREDVIEW(โ€œSchools_Inlineโ€, [District]=[_THISROW])

@Marc_Dillon That worked, too, but your solution is much more straightforward and I think I can actually understand why it works. It looks like I somehow figured out a way to do it a roundabout way but still end up at the same result. I have a few more of these to put into this app and Iโ€™ll use your expression syntax for sure!

Top Labels in this Space