Set multiple values to one of the Model's condition from Chart

  • 1
  • Question
  • Updated 1 year ago
  • In Progress
  • (Edited)
I have a chart (column), when user clicks on one of the series, I want to set List of AccountId (multiple values) to one of the data model's condition. 

I used {{rows.0.AccountID}} & {{rows.AccountID}}, in both the scenarios i'm getting only one AccountId not the list of them.

Is it possible to set multiple values to a condition from chart series? If yes, how do I do that?
Photo of Priya

Priya

  • 478 Points 250 badge 2x thumb

Posted 1 year ago

  • 1
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,674 Points 20k badge 2x thumb
I'd look into using a snippet. I typically looked to see which parameters I receive and then figure out if it's a go.
Photo of Priya

Priya

  • 478 Points 250 badge 2x thumb
Is there any way to achieve it by declarative approach?
If No, can you tell me how to access chart's series data inside JS snippet?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,674 Points 20k badge 2x thumb
Almost certain there isn't.
Photo of Priya

Priya

  • 478 Points 250 badge 2x thumb
Could you help me on how to access chart's series data inside JS snippet?
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,674 Points 20k badge 2x thumb
Sure. Create a snippet with the following:

var params = arguments[0],
$ = skuid.$;

console.log(params);

Then in the console you'll be able to review what you get as parameters and subsequently update your condition as required. Giving you any more than this I'd have to charge you for it. ;)