User avatar
johan
GpsGate
Posts: 14375
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

Fix: Right click on vehicle does not work after update.

Fri Mar 09, 2018 2:35 pm

ISSUE

Right click on vehicle list no longer works.

CASE

It is the 3rd party "Gauges" plugin that is causing this problem. It is using undocumented APIs.

SOLUTION

You can either disable this plugin. Or you can send back some hints to the developer on how to fix the problem.

Here is the info he needs:

All on JavaScript/Client side:

Currently used API: GpsGate.Server.Directory.GetLatestGateRecords
Should use whats already loaded in the UI:

eg:
var manager = Context.getApp().getVehicleManager();
var user = manager.getVehicle('USER NAME OR ID);

user.recordData contains all KeyValue pairs of FieldIDs-Data where data has a date and value

Those can be localized by using: Franson.LatestRecords.getLocalizedRecordValue(user, FieldID)
Context.getApp().getMappedFields() can be used to get all the mapped filed.
Regards,
Johan

GpsGate Support

Return to “GpsGate Server - How to setup and use”