I have table of โpersonsโ and a tabble of family โrelationsโ between these people.
The relations table has a virtual column of the type โperson A is the son of person Bโ. In โperson viewโ all his/her relations are listed, but: when you click on any of these relations the intermediary โrelationsโ view is opened. I want to open directly the view of the other person. How should I do this?
Unless Iโm mistaken, the link is a ref column. It is also possible to make inline actions that function in the same way but give you more control as to where you want them to go.
I was trying to write about this technique in the following tip:
But, unfortunately, I was pretty confused (just learning) at the time so this tip really needs to be rewritten. And, another problem is that AppSheet doesnโt seem to include a good explanation of how to do this in its documentation. I wonder if anyone else know where to get a good explanation.
In the app editor, go to Behavior > Actions and add a new action:
relations-table
App: go to another view within this app
LINKTOROW([related-person-id], "person-view-name")
Replace relations-table
with the name of the โโjumpโ intermediary tableโ; replace related-person-id
with the name of the column of that intermediary table that contains the Ref
value of the related person; and replace person-view-name
with the name of the view of the persons table in which to display the related personโs row.
In the configuration of the table view that displays the list of relations, set the Row Selected
event action to this newly-created action.
Thanks
One extra question: is it possible to know the person-id of the original view to adjust [related-person-id]?
There is no way to do the equivalent of โgive me the person-id
of the person currently displayed on screenโ. But I would expect that your relations-table
has another column (in addition to the related-person-id
column weโre already using) that points back to that person.
User | Count |
---|---|
35 | |
35 | |
28 | |
23 | |
18 |