Adding list or table record inside another list or table record
6008
Views
15
Comments
Implemented
Frontend (App Interfaces)
Platform Server Release Oct.2019 CP1

It is good to allow adding a list or table record inside another list or table records. It is useful when presenting multiple value content of a connected entity or list of attachments using the table record row value as filter to the added (child) list or table record.

2014-02-07 17-02-43
Vasco Pessanha
Changed the category to
Frontend
Merged this idea with 'Allow ListRecords inside ListRecords' (created on 24 Jul 2018 17:30:42 by Carlos Alexandrino)

Whenever it is necessary to list lists within lists on a screen it is necessary to use web blocks. The possibility of instantiating a ListRecord within a row of another ListRecord would solve this problem



This comment was:
- originally posted on idea 'Allow ListRecords inside ListRecords' (created on 24 Jul 2018 by Carlos Alexandrino)
- merged to idea 'Adding list or table record inside another list or table record' on 03 Jan 2019 16:03:52 by Justin James
2014-02-07 17-02-43
Vasco Pessanha
Changed the category to
Frontend


This comment was:
- originally posted on idea 'Allow ListRecords inside ListRecords' (created on 24 Jul 2018 by Carlos Alexandrino)
- merged to idea 'Adding list or table record inside another list or table record' on 03 Jan 2019 16:03:52 by Justin James
Merged this idea with 'Display List Records in a Table Record Cell' (created on 19 Nov 2018 09:00:59 by Tushar Panpaliya)

This comment was:
- originally posted on idea 'Allow ListRecords inside ListRecords' (created on 24 Jul 2018 by Carlos Alexandrino)
- merged to idea 'Adding list or table record inside another list or table record' on 03 Jan 2019 16:03:52 by Justin James

I have a use case where I want to display a list of records fetched from a database in a column Cell. So it's just a basic one to many relationship for a specific column. Outsystems don't seem to support this as of now. Would love to see this at a later point of time. 



This comment was:
- originally posted on idea 'Display List Records in a Table Record Cell' (created on 19 Nov 2018 by Tushar Panpaliya)
- merged to idea 'Allow ListRecords inside ListRecords' on 03 Jan 2019 16:01:13 by Justin James


This comment was:
- originally posted on idea 'Allow ListRecords inside ListRecords' (created on 24 Jul 2018 by Carlos Alexandrino)
- merged to idea 'Adding list or table record inside another list or table record' on 03 Jan 2019 16:03:52 by Justin James

Just remembering, that you can do this by using webblocks.



This comment was:
- originally posted on idea 'Display List Records in a Table Record Cell' (created on 19 Nov 2018 by Tushar Panpaliya)
- merged to idea 'Allow ListRecords inside ListRecords' on 03 Jan 2019 16:01:13 by Justin James


This comment was:
- originally posted on idea 'Allow ListRecords inside ListRecords' (created on 24 Jul 2018 by Carlos Alexandrino)
- merged to idea 'Adding list or table record inside another list or table record' on 03 Jan 2019 16:03:52 by Justin James

Thanks for your reply Huarlem.  That's exactly the work around I implemented. But have bumped into this scenario at multiple instances recently. So was thinking a simpler approach would just save efforts of creating a web block for each use case I have to implement.



This comment was:
- originally posted on idea 'Display List Records in a Table Record Cell' (created on 19 Nov 2018 by Tushar Panpaliya)
- merged to idea 'Allow ListRecords inside ListRecords' on 03 Jan 2019 16:01:13 by Justin James


This comment was:
- originally posted on idea 'Allow ListRecords inside ListRecords' (created on 24 Jul 2018 by Carlos Alexandrino)
- merged to idea 'Adding list or table record inside another list or table record' on 03 Jan 2019 16:03:52 by Justin James
2014-02-07 17-02-43
Vasco Pessanha
Changed the category to
Frontend


This comment was:
- originally posted on idea 'Display List Records in a Table Record Cell' (created on 19 Nov 2018 by Tushar Panpaliya)
- merged to idea 'Allow ListRecords inside ListRecords' on 03 Jan 2019 16:01:13 by Justin James


This comment was:
- originally posted on idea 'Allow ListRecords inside ListRecords' (created on 24 Jul 2018 by Carlos Alexandrino)
- merged to idea 'Adding list or table record inside another list or table record' on 03 Jan 2019 16:03:52 by Justin James
Changed the status to
Working on it
expected delivery in Q4 2019

Hi Edwin,

That's a great idea. Indeed being able to have lists inside lists and tables inside tables in a more natural way (without the need for blocks) is a frequent requirement. 

We are currently working on the next generation of web applications (a feature that will be available for early access soon), and in those apps that will be possible.

Thanks,
Tiago Simões

@Tiago,

This is good news!


Thanks,

Edwin

Changed the status to
Implemented
on 02 Oct 2018

Hi Edwin,

Thanks for your idea. We've recently released a new way of creating web applications, we are calling them reactive web apps, where it is possible to have tables inside tables. You can read more about reactive web apps in this forum post.

Cheers,
Tiago Simões 

Cheers!

This made my day!


Regards,

Edwin

Can anyone point me to the section in the guided learning where they talk about how to do the table in table with this approach?

Hi Thomas,

I don't think that is explained in any training. Although you can put a table inside a table it would probably look very awkward, as the inner table would be displayed inside a cell (maybe a list inside a list would work better). 

This being said you have two options: 

a) Use a block inside the table or list that contains the inner list or block. This might be the easiest solution.

b) If you have a structure that contains a list inside a list (e.g. a result from an external REST call, or some local variable that you have populated in a data action) you can put one widget inside another, the outer one bound to the outer list and the inner one bound to the inner list, that should be inside the current element of the inner list. 

Cheers,
Tiago Simões