Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm trying to populate the table property Add-ons > Data Handling > Calculation Condition & Message when creating a table using app.visualization.create:
app.visualization.create(
"table",
columns,
{
multiline: { wrapTextInCells: true },
components: [{
key: "theme",
content: { hoverEffect: true },
scrollbar: { size: "medium" }
}]
})
I've successfully done it to the fields using this:
qCalcCondition: { qCond: '=1' }
But I'm unsure how to implement it for the table object.
Found the solution by using console.log() and checking the properties of the object created from app.visualization.create()
app.visualization.create(
"table",
columns,
{
multiline: { wrapTextInCells: true },
components: [{
key: "theme",
content: { hoverEffect: true },
scrollbar: { size: "medium" }
}],
qHyperCubeDef: {
qCalcCondition: {
qCond: "=1",
qMsg: "Condition not met"
}
}
})
Found the solution by using console.log() and checking the properties of the object created from app.visualization.create()
app.visualization.create(
"table",
columns,
{
multiline: { wrapTextInCells: true },
components: [{
key: "theme",
content: { hoverEffect: true },
scrollbar: { size: "medium" }
}],
qHyperCubeDef: {
qCalcCondition: {
qCond: "=1",
qMsg: "Condition not met"
}
}
})