Jump to content
We've recently updated our Privacy Statement, available here ×

Example using DOM element as container


geruiz
Go to solution Solved by Scott Andersen,

Recommended Posts

Hi,

Are there any examples where a DOM element is used as a container? The documentation says that this is possible:

...

  "container": {
      "oneOf": [
          {
              "type": "object",
              "additionalProperties" : true,
              "description": "DOM element to render report to"
          },
         {
             "type": "string",
             "description": "CSS selector for container to render report to."
         }
      ]
  },

......

 

but none of the ways are working for me:

adv = v.adhocView({
    resource: "/public/viz/Adhoc/Table1",
    container:$("#container")
});

or

adv = v.adhocView({
     resource: "/public/viz/Adhoc/Table1",
     container: document.getElementById("container")

});

I get the error: "An unexpected error has occurred : TypeError: e.ownerDocument is undefined"

 

And what is the purpose of the "additionalProperties" parameter?

Thanks

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...