sendEvent's display param?


(Convinced ST will never be unbroken…) #1
sendEvent(name: "contact", value: "open", display: true, descriptionText: "Contact is open")

In the above, what is the purpose of “display: true”, and what would be the result of setting it to false?


(Jjhamb) #2

I think display: false will prevent event to show up in activity log.


(Convinced ST will never be unbroken…) #3

That was my guess as well, but it doesn’t seem to be the case. At least not on Android.


(Convinced ST will never be unbroken…) #4

Anybody know? @urman, @mager ?


(Andrew Urman) #5

If you have extra events turned on then you will see all events, but if you don’t displayed: false will hide them. Same on the logs page for the device.


(Convinced ST will never be unbroken…) #6

Thanks Andrew. So this has nothing to do with the activity panel in the mobile app? Only the IDE?


(Andrew Urman) #7

no it should effect the mobile activity list too. If you have extra events turned on then you get all events hidden or not, but if you don’t then you will only see displayed events.


(Convinced ST will never be unbroken…) #8

Hmmm… I must have them turned on. How do I turn them off?


(Convinced ST will never be unbroken…) #9

I found the setting under support. It is not activated. Still seeing the events though… and even if I remove the “descriptionText” param, I am still seeing an event (with somewhat different text I guess it assembles on its own). )c:

Given this:

http://solutionsetcetera.com/stuff/code.png

So should I be seeing these?

http://solutionsetcetera.com/stuff/activity.png


(Convinced ST will never be unbroken…) #10

I am still looking for some clarification here. Anybody?


(Convinced ST will never be unbroken…) #11


Nobody knows?


(Adam Lanners) #12

Hi Scott, try using “displayed:false” instead of display.

sendEvent(name: "test", value: "false", descriptionText: "display event is false", displayed: false)

(Convinced ST will never be unbroken…) #13

Thanks Adam… I’ll give it a try and let you know.

-SiP

Edit: That was it! Thanks again.