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 Join to answer
Community showcase
Fabian Lopez
Published Dec 28, 2017 in Teamwork

Atlassian User Group (AUG) Leader - A look under the hood (Part 1)

...type of food and beverages that can be served, specially if you are using company conference rooms or break rooms, it can be a problem if it is not addressed in the right way. The message on the...

440 views 3 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot