Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All, I would like to create a mashup project with dropdown containing all measures. Is it possible and how can I do it?
Thanks!
I find a solution. The code below:
app.createGenericObject({ | ||
qMeasureListDef : { | ||
qType: "measure", qData: { title: "/title", tags: "/tags", "measure": "/qMeasure" } | ||
} | ||
}, function(reply){ | ||
var myObject = reply.qMeasureList.qItems; | ||
var str = ""; | ||
$.each(reply.qMeasureList.qItems, function(key, value) { | ||
var title = ""; | ||
var fx = ""; | ||
var combined = ""; | ||
title = JSON.stringify(value.qData.measure.qLabel) ; | ||
title = title.replace(/['"]+/g, '') | ||
fx = JSON.stringify(value.qData.measure.qDef) ; | ||
fx = fx.replace(/['"]+/g, '') | ||
$("#dropdownMeasures").append("<li value='" + fx + "'>" + title + "</li>"); | ||
}); |
Hey there,
The only way I see to get what you require is by creating a "Filter pane chart" and adding manually all fields in it.
Regards,
MB
I find a solution. The code below:
app.createGenericObject({ | ||
qMeasureListDef : { | ||
qType: "measure", qData: { title: "/title", tags: "/tags", "measure": "/qMeasure" } | ||
} | ||
}, function(reply){ | ||
var myObject = reply.qMeasureList.qItems; | ||
var str = ""; | ||
$.each(reply.qMeasureList.qItems, function(key, value) { | ||
var title = ""; | ||
var fx = ""; | ||
var combined = ""; | ||
title = JSON.stringify(value.qData.measure.qLabel) ; | ||
title = title.replace(/['"]+/g, '') | ||
fx = JSON.stringify(value.qData.measure.qDef) ; | ||
fx = fx.replace(/['"]+/g, '') | ||
$("#dropdownMeasures").append("<li value='" + fx + "'>" + title + "</li>"); | ||
}); |