cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Widget - Sap Analytics Cloud

f_allocca
Participant
0 Kudos

Hi Expert,

I've created a custom widget in Analytic Designer on SAC, but I can't add a measure

If I click on it appear the designer

cattura.png

but it isn't the button "add a measure"

How I can add a measure for the custom widget?

Thanks

Francesco

Accepted Solutions (0)

Answers (2)

Answers (2)

avsalynin
Active Contributor

f.allocca

it'll possible only in next year

Details:

blog

roadmap

f_allocca
Participant
0 Kudos

And if I'd add it trough code like below

cattura.png

Is it impossible?

It return error because have a different types, number and chart

avsalynin
Active Contributor
0 Kudos

f.allocca try smth like this

ScriptVariable_1 = Chart_1.getDataSource().getData({[Alias.MeasureDimension]:"[Account_BestRunJ_sold].[parentId].&[Gross_Margin]"}).formattedValue;
var ScriptVarInt = ConvertUtils.stringToInteger(ScriptVariable_1);
googleGauge_1.setValue(ScriptVarInt);

console.log(ScriptVarInt);
f_allocca
Participant
0 Kudos

avsalynin i'm trying but it doesn't work

mfoeken
Active Contributor
0 Kudos

Hi Francesco,

Please take a look at this excellent blog: Build a Custom Widget in SAP Analytics Cloud, Analytics Application.

Have you declared a SetValue method? Is this method visible when trying to assign a measure via the script in your application?

Kind regards,

Martijn van Foeken | Interdobs

f_allocca
Participant
0 Kudos

Hi Martijn,

I followed this guide for the creation of custom widget, but in SetValue method I can't set the measure of a Model

mfoeken
Active Contributor
0 Kudos

Hi Francesco,

If you add the custom widget to an Analytical Application and go to the script, what is displayed when you type in the name of the widget and add a dot? Perhaps you can share a screenshot?

Kind regards,

Martijn van Foeken | Interdobs

f_allocca
Participant
0 Kudos

I visualize this

cattura.png

I can add only a number but not a Measure