0 Replies Latest reply on Feb 9, 2018 8:15 AM by Johan Andersson

    Smart Reporting Java script API

    Johan Andersson

      Hello,

       

      I'm trying to publish a dashboard from Smart Reporting using the Java script API. But I cannot get it to work. If I'm logged in to SR in another tab it works just fine. But if I'm trying in a new session I'm redirected to a login screen.

       

      My script looks like this:

       

      <!DOCTYPE html>

      <html>

      <title>SmartReporting Dashboard</title>

      <body>

       

      <script src="http://xxxxx.xxx.xx/SmartReporting/JsAPI?

      dashUUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&

      width=auto&

      height=auto&

      username=username&

      password=password&

      clientOrg=xxxxx

      " type="text/javascript"></script>

      </body>

      </html>

       

      I don't like that I have to print the password in cleartext. The dashboard is supposed to show on an public screen. The best solution would be to not show the password. But since it might not be possible I will try this solution.

       

      Any ideas on how to solve this?

       

      //Johan