Select to view content in your preferred language

data expression using $map in a FeatureSetbyName (or ID) shows as 'undefined' variable

200
3
Jump to solution
3 weeks ago
clt_cabq
Occasional Contributor III

I'm writing a data expression and can make the FeatureSetByPortalItem function work, but when trying to use FeatureSetbyName the statement shows an error where $map is 'undefined'. Its unclear to me why either of those two options should fail? I thought they were both functional for data expressions, but perhaps not? 

0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

Dashboards don't have the $map profile variable.

View solution in original post

3 Replies
KenBuja
MVP Esteemed Contributor

Dashboards don't have the $map profile variable.

clt_cabq
Occasional Contributor III

Welp, that is why then. Its confusing because the documentation for those functions indicate they are for working with dashboards. thanks @KenBuja.

0 Kudos
KenBuja
MVP Esteemed Contributor

Yes, that is confusing. The documentation should point to the Dashboard group instead of Databoard data, since other Dashboard profiles do give access to the $datapoint profile variable, which those two functions can utilize.