31
Views
5
Comments
Solved
Table widget inside another table widget
Question

Hi All

I am working on a reactive application and it has  a table record in it. In a particular column of that table I have another table.

It is working fine when I don't have any data in second table. But as soon as there is data in the second table, "cannot read property setattribute of undefined outsystems" error is thrwon. How to get rid of the error?

Rank: #143
Solution

Hi Shubham,

You can try that example once in the list record.

I have attached an oml please look it once.


Vijay M-


ListTable.oml

mvp_badge
MVP
Rank: #19

Hi Shubham Agarwal,

What is the Source List of each of the Tables? Two different lists or the same list?

Rank: #1984

Jorge Martins wrote:

Hi Shubham Agarwal,

What is the Source List of each of the Tables? Two different lists or the same list?

 Hi Jorge 

Basically the structure is like this:


I have a structure which has many attributes. One of the attribute is a list of another structure.

And I am receiving data from Rest API. So in the main table I have the parent list as a source and for a particular record I have made a webblock in which I am passing the secondary list(attribute) for another table.

 So for the above eg I am displaying demo list as parent and for that particular record I am passing current.Attribute2(a full list) in the child webblock(which has second table).

Champion
Rank: #230

Hi,

Are you using any components of the outsystems UI?

And one more question, you put the second table through a Block, right?

I've had this problem once when trying to use the "AccordionItem" component without using the "Accordion" component.


Hope this helps.

Rank: #143
Solution

Hi Shubham,

You can try that example once in the list record.

I have attached an oml please look it once.


Vijay M-


ListTable.oml

mvp_badge
MVP
Rank: #73

Just an FYI, this bug has been fixed in Platform Server version 11.10.0 or later.

  • Fixed "Cannot read property 'setAttribute' of undefined" error when creating nested tables with Table Records widget in Reactive Web App. (RTAF-2995)

Regards,

Nordin