Hi guys,
I have started setting up a dashboard and am having an issue that I think is related to settable virtual data sources.
On the page I have an svg graphic with some values displayed and some buttons that set values. Some settable values (using the ng-click function) are writing to modbus registers and some to virtual data points. All of the modbus points are working fine but I cannot get the virtual data point to set. I have them both set up the same way. If I use a ma-set-point-value on the same dashboard to set the virtual data point it work ok. Am I supposed to do something different for a Virtual Data Point with ng-click?
When I open the dashboard I get the following error:
WARN 2020-04-09T23:17:21,833 (com.infiniteautomation.mango.rest.v2.ServerRestV2Controller.postClientError:428) - Client error
[user=admin, cause=<marker inkscape:stockid="Arrow1Lstart" orient="auto" refY="0" refX="0" id="Arrow1Lstart" style="overflow:visible" inkscape:isstock="true">, location=http://localhost:8080/ui/view-page/5b203b4b-fee2-4365-8899-8c65a0f8143e, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0, language=en-GB, date=2020-04-09T23:17:21.617+01:00, timezone=Europe/London]
ReferenceError: google is not defined
at i (http://localhost:8080/ui/mangoUi~ngMango.js?v=8cb0234a2dec15eb57f3:18:435685)
at le/< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:7418)
at ke (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:56689)
at ae (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:51498)
at ce/< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:44367)
at ce/< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:44384)
at ce/< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:44384)
at ie/< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:43580)
at link (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:152726)
at le/< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:7418)
at ke (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:56689)
at ae (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:51498)
at ce/< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:44367)
at ie/< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:43580)
at fe/< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:46787)
at r (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:44729)
at f (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:49982)
at compile/</</< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:152197)
at u/</< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:94777)
at u/< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:94915)
at $digest (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:100341)
at $apply (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:102518)
at i/c< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:124858)
at Qr/this.$get</</this.completeTask (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:122819)
at un/this.$get</</a.defer/r< (http://localhost:8080/ui/mangoUi~ngMango~ngMangoServices.js?v=2fcf97988116666c7bfe:78:34332)
Heres a sample of the markup im using:
Modbus Data Source:
<ma-get-point-value point-xid="ResetMax" point="ResetMax"></ma-get-point-value>
<div ma-selector="#ResetButtonAll" ng-click="ResetMax.setValue(9)"></div>
Virtual Data Source:
<ma-get-point-value point-xid="GloveClass" point="GloveClass"></ma-get-point-value>
<div ma-selector="#GloveClass0" ng-click="GloveClass.setValue(0)"></div>