06-19-2016 02:45 PM
As part of a web application development using SAS STP, we are tryign to integrate the same with JQgrid, wherein we are referencing the following global forum paper "http://support.sas.com/resources/papers/proceedings16/6960-2016.pdf",
For testing purpose we were trying to replicate the example mentioned in the paper, however we are not able to see the output in the HTML page, tihough our stored process is running absolutely fine.
Can someone please look into the sample HTML and STP we have created and advise what are we doing wrong.
06-19-2016 04:59 PM
I've just tested your code and it works ok.
Are you familiar with how the debug consoles on Chrome / Firefox work? If the name of your SAS web tier host is indeed sasva.demo.sas.com, you need to make sure that the AJAX request is actually being made. You should be able to copy the jqGrid URL property into your browser and see your data.
Where are you hosting your .html file? You should try putting it in a subdirectory of Lev1/Web/WebServer/htdocs/ so it is behind the same reverse proxy.
Other simple things to look at - Streaming output needs to be enabled on your stp obviously. Again, check that the output was correct through the SPWA, easily done by copying and pasting the URL into a new tab.
Make sure you have a look at the console and network tabs of your browser's debug console. What browser are you using?
06-19-2016 05:46 PM
- the html file is stored in the HTDOCS folder
- The STP URL works one, and shows the JSON output.
- All access individual jqgrid to test its accessibility.
- testing it using both IE ver 11 and Chrome ver 51.x
Can you please share the screenshot,
06-19-2016 05:57 PM
06-20-2016 04:28 AM
06-20-2016 07:10 AM
Here's a list of things to consider in that case:
- You should change this line:
You should not need to specify the full hostname and the protocol if you are loading your .html file correctly. This will make your code more portable and ensures you're not having problems with same origin policy or a mismatch when switching between http/https.
I expect your DataGrid.txt file you attached is called DataGrid.html in your system, and when stored inside your htdocs directory, you should be loading it with a URL like
As Vasilij suggests, you should spend some time getting comfortable with the DevTools console and the Network tab - all of these problems should be pretty obvious from there.