0 votes
1 view

Hello 

can you please give me any help regarding parameters passing from sdk , i have hosted knowage into my development server and it is running on server , and created cockpits on knowage dashboard , and i integrated the graph by using SDK , the graphs are working fine with sdk , but while passing parameters there is no difference found on graphs .

This is my sdk 

var html = Sbi.sdk.api.injectDocument({

documentLabel: 'test'

, executionRole: '/spagobi/user'

,parameters: {

startDate: "2019-01-01",

endDate : "2018-04-01"

}

,target: 'sales'

, displayToolbar: true

, displaySliders: false

, iframe: {

style: 'border: 0px;'

},

useExtUI: true

});

can you please help me regarding this issue

asked Oct 1, 2019 in API and SDK by shiva (140 points) | 1 view

1 Answer

0 votes

Hi, have you solved this issue?

I've read there is another syntax to pass parameters that did the trick for others :

var html = Sbi.sdk.api.injectDocument({

documentLabel: 'test'

, executionRole: '/spagobi/user'

,parameters: {'PARAMETERS': 'startDate=2019-01-01'} 

, displayToolbar: true ...

Also did you link the parameter you are trying to pass to an analytical driver in your document?

Both syntax didn't work for me though and knowage 7.1 fails to link a driver to a cockpit.

Hope anyone can explain that, because I find documentation is lacking on this subject.

answered Feb 5, 2020 by rlagarde (3,170 points)
I installed knowage CE 6.4.5 and everything is working fine.

I can call a cockpit document with parameters from sdk.
1,553 questions
1,017 answers
2,037 comments
2,567 users