What is the way to call service url directly in PHP page for generating the Reporting?Example:-
Whether below code is achievable or not?In My PHP Page
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="modernizr.min.js" type="text/javascript"></script> <link href="jquery-ui-1.8.17.custom.css" rel="stylesheet" type="text/css"/> <script src="jquery-1.6.4.min.js" type="text/javascript"></script> <script src="jquery-ui.min.js" type="text/javascript"></script> <script src="infragistics.loader.js" type="text/javascript"></script> </head> <body> <!-- Report Viewer Loader --> <script type="text/javascript"> var serviceEndpoint= "http://myserver.com/myservice.svc/getUserdetails/"; $.ig.loader({ cssPath: 'http://es.infragistics.com/samplesbrowser/i/Reporting/ReportViewer/Styles', scriptPath: 'http://es.infragistics.com/samplesbrowser/i/Reporting/ReportViewer/Scripts', resources: 'igReportViewer', ready: function () { $(function () { $("#viewer").igReportViewer({ renderSettings: { definitionUri: "Infragistics.Web.ReportLibrary;component/ReportDesigns/UsersList.igr", serviceEndpointUri: serviceEndpoint }, width: 720, height: 520, pageFit: 'fitToWidth' }); }); } }); </script> <div id="viewer" ></div> </body> </html>
Hi,
Yes that code should be fine in a PHP app. Note that this is just javascript and HTML, so it is not dependent on any web framework/technology. You can even put it in a simple HTML page. Please note that the php page needs to be in the same domain as the SVC (The service behind the service endpoint).
Hope it helps. Thanks,
Angel
Thanks for your comments.
I will check now.
Hi
No need now.
If any issues , i will ask you. Thanks
Tamilmani Mohan
hey,
just checking if you need any additional help with this. thanks
ok, let me know if you need further assistance.
Thanks,