Quantcast
Channel: SCN: Message List - SAP Manufacturing Integration and Intelligence (SAP MII)
Viewing all articles
Browse latest Browse all 4841

Re: UI5 Viz Charts and MII Data - Multiple Rowsets

$
0
0

Hi Swaroop,

 

Using the iChart java applets in MII 11.5 and 14 "just works" out of the box with a PCo or Tag query that returns multiple Rowsets. We have hundreds of these charts in production today.

Moving to MII 14 we had hoped to use the HTML 5 charts and grids but find they don't work for lots of reasons.

The only success I've had in even getting 2 tags to display on an i5Chart is by hard linking a Display Template to a Query Template in the workbench. This performs terribly (over a minute to render easy cases) and I've profiled the page to discover that the time is being spent inside something called "CombinedRowsetsQuery". Obviously that is not the name of my query template so I have to make the following assumptions:

1) Multiple rowsets are known by SAP to not be usable with the UI5 controls.

2) SAP provides this shim method "CombinedRowsetsQuery" to combine the rowsets data when it detects multiple rowsets are returned by a QT,

3) That method is performing horribly because the data is production floor data and the timestamps go down to the second. It is a rare case that the DateTimes exactly match.

 

So as for parsing and flattening the data myself that is possible but the performance will still be terrible as I will have to do on the client what MII is doing on the server. Also I will be consuming way more memory than necessary as there will be lots of nulls and redundancies in a data structure that holds values for all 3 tags for every possible timestamp.

That also introduces new code and possible failure points that I don't think should be necessary.

 

The example I provided uses the "Get Response in Multiple Rowsets" setting in the PCo Workbench and it's turned off. That way the data is already in a single rowset when loaded into the model. As you can see, the Viz chart draws each tag in its own section of the x-axis, which is not what we're looking for,

 

I've worked with other JS charting packages that allow you to define each series to be drawn independently. I was hoping there was such a way to interact with VIZ charts,


Viewing all articles
Browse latest Browse all 4841

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>