Cancel
Showing results for 
Search instead for 
Did you mean: 

[Bug?][PS 14.1.0.1294] Nested tables inherit upwards?

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Hello,

 

I've encountered an issue where nested tables of MU instances inherit their contents "backwards" to their class object. Please see the attached model file.

 

Toggle comments on line 9 in the method to test cutting/not cutting inheritance.

 

Some issues summarized:

 

  1. @.ClassTable[1,1].openDialog doesn't work.
    a) Right click -> Open ".MUs.Part:1.ClassTable" works, but it isn't the nested table we want to show
    b) Right click -> Open "NestedTable1" doesn't open the "NestedTable1" for the MU instance, it opens it for the class MU (.MUs.Part)
  2. Changing a value in the nested table of the MU instance somehow inherits the contents back up to the class MU's nested table.
    a) Workaround: Cut content inheritance on the MU instance nested table before changing its contents.

This only seems to happen with nested tables. Other data types seem to work as expected.

 

Are these bugs? Perhaps I'm not following on some basics Smiley Happy

4 REPLIES

Betreff: [Bug?][PS 14.1.0.1294] Nested tables inherit upwards?

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello 7SEG,

 

The problem is that when you access @.ClassTable[1,1] you get the sub table of the the original table since the content is inherited.

 

When you now assign a value to a cell in this sub table the system no longer knows that you got this sub table through an instance.

 

This is also the reason why @.ClassTable[1,1].openDialog doesn't seem to have an affect after you called .MUs.Part.ClassTable[1,1].openDialog. It just does nothing since it's the same table which is already open.

 

So the only solution is what you did, turning off the inheritance manually.

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Betreff: [Bug?][PS 14.1.0.1294] Nested tables inherit upwards?

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Hello Ralf,

 

Thank you very much, this problem made me dizzy after a while! I wonder - if these nested tables have content inheritance by default, why is the option to cut inheritance of this nested table not available to us in the GUI? Perhaps I haven't found it but the button in the Lists group is grayed out (by the way - clicking it very fast enables the user to bypass the grayed out functionality.. See the attached video)

 

My expected result of the code was getting the sub table of the instance, and once I write a value to it the inheritance to the sub table instance is broken, since this is how most (if not all) objects I've worked with behave. But sub tables seem to be an exception to this with no clear way to cut inheritance or show that the sub table is inherited via the GUI? The inheritance must be cut via code?

 

Thank you.

 

Betreff: [Bug?][PS 14.1.0.1294] Nested tables inherit upwards?

Siemens Phenom Siemens Phenom
Siemens Phenom

It works a little different. The nested list in this case doesn't have content inheritance switched on. In fact you get the nested list of the origin.

As you wrote the only way to handle this is too turn off inheritance via code.

 

We have to investigate why you can bypass the grayed out functionality. Perhaps the UI is not updated fast enough.

Regards,

Ralf
------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution.

Betreff: [Bug?][PS 14.1.0.1294] Nested tables inherit upwards?

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Thank you for the good explanation Ralf Smiley Happy I will keep this in mind for next time.