Example using DOM element as container

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

 

geruiz's picture
4
Joined: Feb 3 2023 - 11:08am
Last seen: 8 hours 19 min ago

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.
 

mrajkuma - 3 months 2 weeks ago

1 Answer:

This is a known issue targeted for future release.

sanderse's picture
4507
Joined: Jul 31 2017 - 3:51pm
Last seen: 6 hours 18 min ago
Feedback
randomness