Rogue Wave Server Studio > Rogue Wave Server Studio Advanced Features > Creating Several Table Representations in the Same View > Warning
 
Warning
Problem
You must keep in mind that several nodes will be eventually notified by the server. Therefore, if you leave your view in this state—that is, without defining any condition on the representation—Rogue Wave Server will have to create two IlsSwTable objects for each node notified, one for the InputLineTable representation and another for the OutputLineTable representation. However, this is impossible, because Rogue Wave Server can create only two sets of Views data sources, one for InputLineTable and one for OutputLineTable, and these Views data sources cannot be shared by several instances of IlsSwTable at the same time.
Solution
Moreover, this is not the result we expect. What we want to do is to display input lines and output lines only for one selected node. This is why we have set representation conditions for this table, namely
...
propagate inputLines when (rpStatus==2);
propagate outputLines when (rpStatus==2);
...
which define the representation status of the node. The application has to ensure that only one node can have its representation status set to 2 at any given time.
In other words, you must at all costs avoid the situation where more than one table representation are connected to a set of Views data sources. Only the last table representation created will be actually connected to the set of Views data sources. The IlsSwRow object that references the unattached table will try to assign values to non-existing data sources. An error message will be issued and the values will be lost.

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.