Skip to main content
18-Opal
April 7, 2017
Question

How to setting Alert location value?

  • April 7, 2017
  • 1 reply
  • 2990 views

i want if select a Row about AlertQueryHistory

make mark on google map.

but Alert location Value was 000000:000000

how to set them?

if it was QueryPropertieHistory i can do that using addLocationValueStream or Me.Thing = item.GPS (item has real time data)

but i don't know how to set Alert location Value..

help me please~ and have a nice weekend ~~ thank you~

1 reply

5-Regular Member
April 7, 2017

Hi Seonho, how is your Alert setup on the Property? Is it on the property storing Location? As to highlighting the location on the map which corresponds to a Location value you are displaying on the Mashup, you can simply use the same service for both widgets for e.g.

1. Create mashup with horizontal layout with 2 columns

2. In one column use Grid and in another Google Map widget

3. Call the service which is returning Location for you

4. Drag and drop all the data returned by that same service in both Grid and Google Map widget, like so

5. View the Mashup and you shall have the Grid widget and Google map with same data to reference so clicking on the row in Grid will highlight the marker on the map, like so

CHASEONHO18-OpalAuthor
18-Opal
April 10, 2017

i don't need propertievalue

i just want set Alert 'location value'

i can view on the google map with QueryPropertieHistory

but i want set location value in Alert history

and my Alert set on String value

when is it equal some String

it's make Alert , and this time i want make location value

when run a Alert

5-Regular Member
April 10, 2017

seonho Cha​,

I checked the location field for Alerts and found following:

The AlertHistory DataShape doesn't contain location field.

The location actually shows because the AlertHistoryStream is a Stream.

I didn't find a way it ca be set from the Thin where the alert is generating.

It would actually require an update in the Stream entry directly in AlertHistoryStream but as per my understanding it will not be supported by PTC.

As a workaround you can try following:

Create a DataTable with Fields AlertId and location.

Now subscribe to the alert and add code to create a new entry in the DataTable when the alert is generated.

We can further use this DataTable in our mashup.