sendEvent's display param?

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?

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

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

Anybody know? @urman, @mager ?

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.

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

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.

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

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

I am still looking for some clarification here. Anybody?

1 Like


Nobody knows?

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

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

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

-SiP

Edit: That was it! Thanks again.