Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Trying to set up a mashup with two apps and shared filters. There is a listener on the selectionState of the first app like this:
which sets the field selectValues of the second app. This works for some fields but not all. I looked at one of the problem fields using
app.field('METRIC DATE.YEAR').getData();
compared to:
app1.field('METRIC DATE.YEAR').getData();
and it is identical in both apps. I also tried setting it directly as numeric and text:
app1.field('METRIC DATE.YEAR').selectValues([2016], true, true);
app1.field('METRIC DATE.YEAR').selectValues(['2016'], true, true);
but no luck.
Any ideas on what to try next?
Try with [] since the field name contains spaces:
app1.field(‘[METRIC DATE.YEAR]’)...
Thanks for the help with this @ErikWetterberg and @agni_gold . Turns out it is a problem of text verses numeric. Looks like all the selections from selectionState are text but my selections can be text and numeric ☹️. I'm going to force all my shared dimensions to be text.
I tried:
app1.field('METRIC DATE.YEAR').selectValues(2016, true, true);
but it throws:
e.forEach is not a function
I attached the source. Thanks!
Try with [] since the field name contains spaces:
app1.field(‘[METRIC DATE.YEAR]’)...
Thanks for the help with this @ErikWetterberg and @agni_gold . Turns out it is a problem of text verses numeric. Looks like all the selections from selectionState are text but my selections can be text and numeric ☹️. I'm going to force all my shared dimensions to be text.