Play-SQL-Forms: How to display linked data?

Hi Adrien

On http://www.play-sql.com/forms/you describe the possibility to display records from other tables in the record browser. How does that work? I can't find any documentation about that feature.

Daniel

1 answer

1 accepted

Hi Daniel,

You need to go to your spreadsheet and define a column as a foreign key to another table:

  • Go to the properties of the column.
  • In the field "Formula", type "=" then select "Lookup a value from another table"
  • Select the target table, the ID and the value to display.
  • Next time you insert the "Record Browser" macro for this spreadsheet, it will automatically add a panel with a link to the other table.

Does that help?

Adrien

Hi Adrien, thanks for the quick response.

Ok, this works. But I hoped, I could do something like this (display the dependent values as a table):

Example

Is this possible or could you implement that? This would be a killer feature, IMHO.

Daniel

Some of it is possible. In the editor, copy the panel that Play SQL has generated. Then you can change the details: The column of origin, the table of destination... In fact you don't need the foreign key on the table, but it easier to let Play SQL generate it the first time you do it. .

If it's a 1-n relationship, the panel is repeated. I don't remember if I went as far as enabling tables. I don't think so. At least you can have one panel per linked record.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Sven Peters
Published Mar 29, 2018 in Teamwork

Team Tour Tools and Practices - Slides and Videos

...their time to upgrade. We will also email and alert all their end users about the upcoming move and give them everything they need. We will migrate all their Hipchat teammates, rooms, chats, message...

919 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you