paulwiersema
Hi,
We are using the js client in COMMAND mode with the fields individually specified. On the adapter side, we are pushing the data as a map to the kernel. What is being received at the client is what appears to be an index item list, including the entire list of fields, the field name to index map and then the list of data items, similar to this:
{"jy":1,"iy":"FLIGHTS","au":false,"ma":{"Zb":null,"sb":24,"list" :Smile_Ah: "key","command","flightNum","depArptCd","formattedSchedDepartureTime","formattedBestDepartureTime","departureGate","departureStatus","depDelay","arrArptCd","formattedSchedArrivalTime","formattedBestArrivalTime","arrivalGate","arrivalStatus","arrDelay","jeopPax","incopPax","impactPax","totalPax","runStatus","rbkPrct","oaRbkPrct","avgLtns","procTime"],"Cs":{"key":1,"command":2,"flightNum":3,"depArptCd":4,"formattedSchedDepartureTime":5,"formattedBestDepartureTime":6,"departureGate":7,"departureStatus":8,"depDelay":9,"arrArptCd":10,"formattedSchedArrivalTime":11,"formattedBestArrivalTime":12,"arrivalGate":13,"arrivalStatus":14,"arrDelay":15,"jeopPax":16,"incopPax":17,"impactPax":18,"totalPax":19,"runStatus":20,"rbkPrct":21,"oaRbkPrct":22,"avgLtns":23,"procTime":24}},"Od" :Smile_Ah: 2,1,"ZZ592120190602XYZABC","ADD","5921","XYZ","06/02 06:59 PM","06/02 06:59 PM","C32","Routine","00:00","ABC","06/02 08:23 PM","06/02 09:13 PM","A4","Routine","00:50","--","--","--","--","NEW","--","--","--","--"]}
Is there any way to coerce the data back into the map or do we have to do that by hand on the client side?
There is another point of confusion, as well, in that the specified index values appear to be one number off. For instance, above, we see "key" : 1, but in the Od list, the key is actually the third field (index 2). How would we reconcile that?
Thanks,
Paul