Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
I'm trying to add a dimension to an empty table by clicking on a button :
$element.html( "<button type='button'>Click Me!</button>" );
$element.on('click', function() {
app.getObject("PswGnt").then(function(target){
var patches = [{
"qPath": "/qHyperCubeDef/qDimensions/0",
"qOp": "add",
"qValue":"{ \"qDef\" : {\"qFieldDefs\" : [\"Dim1\"] } } "
}];
target.applyPatches( patches, true );
})
but nothing happens
any idea ?
Hi,
any errors in the console? Does the getObject call succeed?
Erik Wetterberg
no error in the console and console.log(target) succeed
And if you check web socket traffic? Any Messages?
Erik Wetterberg
Status 101 that's all