mounir.youssef Posted July 13, 2018 Share Posted July 13, 2018 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){} });}[/code]am i using an old visualize.js file ? please advisethanks! Link to comment Share on other sites More sharing options...
mounir.youssef Posted July 13, 2018 Author Share Posted July 13, 2018 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 Link to comment Share on other sites More sharing options...
ybablyuk Posted August 6, 2018 Share Posted August 6, 2018 I think problem can be in cache. Can you try clear browser caches Link to comment Share on other sites More sharing options...
mounir.youssef Posted August 7, 2018 Author Share Posted August 7, 2018 thanks for your answer. the solution was to use v.adhocView function and not the v.AdHocView with "A" in uppercase Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now