I was trying to create a custom column on the device list component that would show a tag as a link to another page.
I added my custom block and inside the template I wrote
> [{{device.tags.MyTag.[0]}}](some_url).
However, after I do this, it works fine only on the admin panel preview, but the moment I go to my dashboard, the tag value does not show at all. After some research, I found that it’s exactly the same problem as shown here: Event List Custom Column - Not showing data in Experience view - Help - Losant Forums - forums.losant.com/
However, there is no such thing as “Allow Updates” under the Device List Block as far as I can tell, is this a bug, or is there something I am missing?
Thank you,
The problem is similar, yes. Specifically in the case of the Device List Block, a tag value is only available to render in a Custom Column if you have included a Device Tag Column for that specific tag.
The thinking there is that many users store sensitive information in those device tags - information they do not want to expose to their Experience Users - and if we sent the whole device with those tags down to the browser for the purpose of rendering in a Custom Column, that information could be extracted from the block’s data API response. By including a column for that tag, you (the Losant user / dashboard developer) have opted in to its display.
Now, this isn’t the first time this has come up so I will see if we can add an option to the block / custom column config to return the full device object, and not the “sanitized” object we return currently.
If all you are trying to render is the value of the tag and have it link to a URL, you can just as easily do that with a Device Tag Column, using your same template.