May 3, 2024
Posted by Lisa Ackerman

Hi Bryant:

Yes, actually; take a look at the code snippet in Lab 7.4:

`

client.data.CurrentPump = client.getCollaborationContext().Pump;

client.getWidget(“PumpString”).text = “Pump : ” + client.data.CurrentPump.PumpId;

var ds = client.getDataStreamByName(“Pump”);

var p = new TimedQueryParameters();

p.whereClause = {

PumpId: client.data.CurrentPump.PumpId

};

client.modifyTimedQuery(ds,p);

client.getWidget(“PumpLocationMap”).map.setZoom(14);

`

I bolded the first line, which is collecting all the Collaboration data, including current event data, to the Client.  You can “print” that to see what-all there is.

–lisa

© Vantiq 2024 All rights reserved  •  Vantiq Corporation’s Privacy Policy and Cookie Policy