cancel
Showing results for 
Search instead for 
Did you mean: 

onClick() event in SAc Scripting,

adnama
Discoverer
0 Kudos
147

I am really stuck and i didn't find anything helpful, 

I want to show measure and dimension on click event through button through scripting in sac story.

my model name is "account" my measure name is "net_sales" my dimension type is account. appearantly there is no error in it. but i am not getting anything when click on button 

 

 


// Chart_1.getDataSource().setDimensionFilter("Account", ["Revenue"]);

// Chart_1.getDataSource().setMemberDisplayMode(Feed.CategoryAxis,"net_sales");

Chart_1.addDimension("account",Feed.CategoryAxis2);

// Chart_1.addDimension("account",Feed.CategoryAxis2);
console.log(['dimension',Chart_1.addDimension("Revenue",Feed.CategoryAxis2)]);

Chart_1.addMeasure("[account].[parentId].&[A100000]",Feed.ValueAxis);
console.log(['measure',Chart_1.addMeasure("[account].[parentId].&[A200100]",Feed.ValueAxis)]);

 

// Chart_1.addMeasure("[account].[parentId].&[A200100]",Feed.ValueAxis);

 

Accepted Solutions (0)

Answers (0)