Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to add sysparm_view in iframe url

Ramkumar Rajend
Tera Expert

Hi,

I want to add a sysparm_view parameter into iframe URL but when I tried with the following url

/req/sysapproval_approver_list.do?sysparm_query=approver=javascript:getMyApprovals()^state=requested^ORDERBYsys_created_on&sysparm_view=ess

the query conditions are fine, view is also setting to ess. The problem is when I am clicking NEXT button in the list of records it is displaying a blank page.

To debug this i was testing it by removing each query in URL, finally found something like when i remove sysparm_view from URL it works fine that is its moving to next 20/50 set of records.

Can anyone show some insights on adding sysparm_view in Iframe URL. Everything i am testing in Geneva

5 REPLIES 5

Ashish Kumar Ag
Kilo Guru

If you are using a IFrame to display, no need to use site suffix in URL. Only use



sysapproval_approver_list.do?sysparm_query=approver=javascript:getMyApprovals()^state=requested^ORDERBYsys_created_on&sysparm_view=ess



Hope this will work for you.


Hi Ashish,



I tried this as well, but no luck


srinivasthelu
Tera Guru

Hi Ram,



It is working fine for me after clicking the next button i could see remaining 5 records.


Screen Shot 2016-02-10 at 2.31.50 PM.png



Am i missing something? Could you please test this page separately.



Thanks


Srini


Hi Srinivas,



Thanks for your reply.



Even when i checked in other Geneva personal instance, it is working fine. But i guess its only happening in my instance.



Also i found this in one of wiki links



Note: Some browsers suppress iFrames because of they use an X-Frame-Options header value of SAMEORIGIN. The X—Frame-Options header was introduced in Internet Explorer 8 RC1, to help detect and prevent frame-based redressing. The SAMEORIGIN value causes the browser to render a blank page instead of the target page of the <frame> or <iframe> when the frame target is not on the same origin as the page itself. Support for this header has been implemented in Safari 4.0, Chrome 4.1.249.1042, and Firefox 3.6.9.



I am using IE11.



Any idea about the above note?