Hello Avinash,
Download the files from here. schedule embed fix.zip (730.7 KB)
Steps to resolve open in new window scheduling issue when embedded in iframe
- Remove the following jar file which is located in “hi/apache-tomcat-9/webapps/hi-ee/WEB-INF/lib”
- Add the following jar files (provided in attachment) in “hi/apache-tomcat-9/webapps/hi-ee/WEB-INF/lib”
-
Open the file called web.xml which is located in “hi/apache-tomcat-9/webapps/hi-ee/WEB-INF” in any text editor
-
Uncomment the following code snippet in the file and save it>
<filter>
<filter-name>cross-origin</filter-name>
<filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>
<init-param>
<param-name>allowedHeaders</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>allowedMethods</param-name>
<param-value>GET,PUT,POST,DELETE,OPTIONS</param-value>
</init-param>
<init-param>
<param-name>allowedOrigins</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>preflightMaxAge</param-name>
<param-value>3600</param-value>
</init-param>
<init-param>
<param-name>chainPreflight</param-name>
<param-value>false</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>cross-origin</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-
Restart the server
-
Open the file called report-open.js which is located in “hi/apache-tomcat-9/webapps/hi-ee/js/adhoc” in any text editor
-
Search for “.parent” with case sensitive and exact string in the file and replace it with empty string
-
Save the file
-
Open the file called bootstrap.js which is located in “hi/apache-tomcat-9/webapps/hi-ee/js/vendors” in any text editor
-
Search for “window.parent” with case sensitive and exact string in the file and replace it with empty string
-
Save the file
-
Do a hard reload of the page where the open in new window scheduling is seen
Thank You
From Team Helical.