ERROR TypeError: v.AdHocView is not a function

0

Hi, 

using jasperserver 7.1.0 with visualize.js tool. i m able to render dashboard and reports.However when trying to render an adhoc view it throws "ERROR TypeError: v.AdHocView is not a function" .

DisplayAdHocViewPlaceHolder(value : any): void {
    visualize({
                // already authenticated, so proceed with resource rendering
              },
              function(v) {
                  v.AdHocView({
                      resource:  value,          // value should have the resource uri
                      container: "#placeholder",
                      error:     handleError,
                      success:   handleSuccess
                  });
                  function handleSuccess(){
              };
              function handleError(err){}
    });
}

am i using an old visualize.js file ?

please advise

thanks!

mounir.youssef's picture
Joined: Feb 16 2018 - 3:59am
Last seen: 5 months 4 days ago

v.AdHocView should be replaced by v.adHocView as per the visualize.js file. i was following the user guide that mention the AdHocView with A uppercase

mounir.youssef - 1 year 3 days ago

2 Answers:

0

I think problem can be in cache. Can you try clear browser caches

ybablyuk's picture
128
Joined: Oct 17 2012 - 12:51am
Last seen: 9 months 12 hours ago
0

thanks for your answer. the solution was to use v.adhocView function and not the  v.AdHocView with "A" in uppercase

mounir.youssef's picture
Joined: Feb 16 2018 - 3:59am
Last seen: 5 months 4 days ago
Feedback
randomness