Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view
How can i generate embedded url for my reports and chart so directly showing in another source.

Thanks
Environment community 6
in API and SDK by (220 points)

1 Answer

+2 votes
 
Best answer

Hi

if you want to display a Knowage analysis within an HTML page, you can use this URL:

<knowage server domain>/knowage/servlet/AdapterHTTP?ACTION_NAME=EXECUTE_DOCUMENT_ANGULAR_ACTION&OBJECT_LABEL=<label of the document to be displayed>&PARAMETERS=<parameters>&TOOLBAR_VISIBLE=<true / false>

"PARAMETERS" contains values for analytical drivers: they must be concatenated this way:

<URL name for driver 1>=<value for driver 1>&<URL name for driver 2>=<value for driver 2>&....

and then URL-encoded before composing the main URL.

Keep in mind that you should provide a way to authenticate users, maybe with a SSO system.

As an alternative, you can exploit Knowage JavaScript SDK: look at Read the Docs [1] for details, in particular you can use injectDocument or getDocumentHtml methods.

Hope this helps

Best regards

[1] https://knowage.readthedocs.io/en/latest/user/JS/README/index.html#knowage-javascript-api

by (2.3k points)
edited by
thanks for answer @davide.zerbetto.

i created cockpit with parameter but when i hide toolbar in external url that time parameter selection option also hide.
so what is the solution for display only parameter in embedded mode without edit document option?

Thanks again
Dear @kdandani
at the time being there is no way to display only the parameter selection panel.
AS a workaround, you can display you own parameter selection panel and then propagate the parameters in the URL to knowage (I modified the previou answer to consider also parameters).
Anyhow, the edit button is displayed to admin and to the cockpit creator; if the user is not an admin and he is not the creator of the cockpit, you should not see that button, therefore you could also display the toolbar...
Best regards
Thanks again for your help

still i have just one problem.

if i am use another user than tool bar withoutedit option displayed but chart not displaying, am i do some wrong?

thanks
Hi
maybe the dataset is not visible by the other user?
Please open a new thread about this other issue.
Best regards

Hi, I'm trying to do what you described. Simple question: the parameters to add, where do I get them?

Thank you.

"PARAMETERS" refers to analytical document's drivers. I modified the previous reply, I hope now it is more clear.

Regards
...