@mattfox I know how I can do it now at least. Thank you for your help :)
Posts made by erdi.metin
-
RE: I can't use javascript libraries on dashboard designer
-
RE: I can't use javascript libraries on dashboard designer
@mattfox said in I can't use javascript libraries on dashboard designer:
shouldn't
Firstly thank you for your response,
Can I use jquery or leaflet js or anything part of the mango in the script tag on dashboard designer? Not in Angular scope btw.
my goal is not jquery but when i try to test it,it's not work. -
I can't use javascript libraries on dashboard designer
Hi!
I'm trying to add a library this way<script src="**cdn link or js file path**" type="text/javascript"></script>
Library cannot be defined in mango although it works in html file
Just a example: i want to import jquery but I get an error like this $ is not defined -
How to access active events of data point
I'm using a watchlist while getting point data.
<ma-watch-list-get on-points-change="points = $points" watch-list-xid="WL_82d8df54-77dc-4792-ac1d-e81dbfbc609d"></ma-watch-list-get> <ma-get-point-value points="points"></ma-get-point-value> {{points[0]}}
result of this code does not include activeEvents object. But when im using <ma-point-value>
,"activeEvents":[{"comments":null,"acknowledged":false,"active":true,"acknowledgedMessage":null,"returnToNormalTimestamp":0,"message":"12_12 - nokta12_12 was below 48,00","id":1142335,"eventType":{"dataSourceId":2,"dataPointId":25,"pointEventDetectorId":101,"duplicateHandling":"IGNORE","eventType":"DATA_POINT","eventSubtype":null,"referenceId2":101,"referenceId1":25,"systemMessage":false,"rateLimited":false,"publisherId":-1},"acknowledgedTimestamp":0,"acknowledgedByUserId":0,"activeTimestamp":1585143934176,"acknowledgedByUsername":null,"alarmLevel":"CRITICAL","status":""}]
i can access activeEvents object. How can i access to activeEvents without using <ma-point-value>. Because
I want to check if the point has activeEvents.. like this<div ng-if="points[0].activeEvents"> ... <div>