Skip to main content
Jul 29, 2019 8:55 AM UTC
Solved

Dynamic infotable problem.

Hello. I've got an issue.

 

The problem boils down to one general issue: I've got an infotable with four boolean properties, and each property is assigned to a shape. Based on the value of the property, the specific shape is visible or not. I have connected the infotable properties (some are true, some false) to the shapes, but all the shapes are visible, when in reality, some should be hidden.

 

I have a thing shape with a service that populates an Infotable property. On my actual thing, when I click the infotable, I can see that one of the infotable values is modified from its default value. But it doesn't display on the mashup.

 

I have connected the Dynamic Thing Template, and I have connected the GetPropertyValues service, from where I pull the infotable data. But it doesn't connect.

 

Can anyone help with this regard? Thanks.

rjanardanAnswer
Jul 29, 2019 10:43 AM UTC

You should probably use an Auto Refresh Widget in the mashup so that the service to retrieve values is called periodically. 

6 replies

Jul 29, 2019 9:17 AM UTC

Hello,

 

Are you sure you are actually executing this service? I.e. you bound it to your mashup's OnLoad event.

 

/ Constantine

RaduAuthor
Jul 29, 2019 9:24 AM UTC

Hello.

 

Thank you for your response.

 

When I connected the service, I also made sure to check the "Mashup Loaded?" checkbox, so I don't believe it is that.

 

Even if the service is disconnected to the property, and I give some values to the infotable property by hand, it still doesn't display the values in the mashup.

rjanardanAnswer
Jul 29, 2019 10:43 AM UTC

You should probably use an Auto Refresh Widget in the mashup so that the service to retrieve values is called periodically. 

RaduAuthor
Jul 29, 2019 10:45 AM UTC

Thank you for your response.

 

I am currently using the ServiceInvokeCompleted event attached to the GetPropertyValues service to retrieve values once they change -- is that the same thing as having an auto-refresh widget?

 

Thanks.

Jul 29, 2019 11:28 AM UTC

If I understood correctly, you are chaining the ServiceInvokeCompleted event of the service that changes the property value to trigger GetPropertyValues. I believe in this case, you will still need an Auto Refresh widget to update the mashup with the new data retrieved by GetPropertyValues.

Alternatively, you could use GetProperties and check the option Automatically update values when able. In this case Auto Refresh widget is not required.