Cognos BI 보고서 보기 자동 새로 고침
기본적으로 HTML Item에 정기적으로 리포트를 재실행하는 JavaScript를 넣을 수밖에 없습니다만, 구현을 소개합니다.
자동 반영 이미지
보고서 실행 초기 이미지

뒷면 데이터베이스의 데이터 업데이트

5초에 한 번 보고서가 다시 실행됨

보고서에 반영된 결과

라고 하는 동작으로, 리얼타임은 아닙니다만, 5초에 1회 리프레쉬는 가능합니다.
구현 방법
보고서 중에 HTML 항목을 넣고 아래 코드를 작성하십시오.
<script type="text/javascript">
var intval;
var fW = (typeof getFormWarpRequest == "function"? getFormWarpRequest() : document.forms["formWarpRequest"]);
if ( !fW || fW == undefined)
{
fW = ( formWarpRequest_THIS_ ? formWarpRequest_THIS_ : formWarpRequest_NS_ );
}
var preFix="";
if (fW.elements["cv.id"])
{
preFix = fW.elements["cv.id"].value;
}
var nameSpace = "oCV"+ preFix;
if(intval!="")
{
self.clearInterval(intval);
intval="";
}
self["RunReportInterval"] = self.setInterval( nameSpace + ".getRV().RunReport()",'5000' );
intval = self["RunReportInterval"];
</script>
참고 문서
이쪽을 참고로 하고 있습니다. IE11, Cognos Analytics, Cognos BI 10.2.2에서도 작동 확인되었습니다.
JavaScript: Setting reports to auto refresh in Cognos Viewer with IE 6 or 7
htp://www01. 이 bm. 코 m / 쏙 rt / 드 cゔぃ에 w. ws? 우이 d = swg21342426
이쪽의 Technote도 있습니다만, 동작이 이마이치 안정하지 않았습니다. 참고까지.
Prompt API - Auto refresh a report in the Browser/Web with a timed interval
htp://www01. 이 bm. 코 m / 쏘 rt / 드 cゔぃ에 w. ws? 우이 d = swg21646893
Reference
이 문제에 관하여(Cognos BI 보고서 보기 자동 새로 고침), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/shinyama/items/214b4cb722ad874ad842텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)