º¸°í¼ÀÇ °øÅëÇÔ¼ö´Â ¸®Æ÷Æ®µðÀÚÀ̳ʿ¡¼ ¸®Æ÷Æ®ÅÛÇø´ÀÇ Functions À̺¥Æ®¿¡ Á¤ÀÇÇÕ´Ï´Ù.
ÀÌ °øÅëÇÔ¼ö¸¦ ¿ÜºÎ ÆÄÀÏ·Î °ü¸®ÇÏ°í °æ·Î¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. (2015³â 2¿ù OZ 6.0 Report Viewer Release ¿¡ Ãß°¡µÊ)
viewer.external_functions_path Æз¯¹ÌÅÍ·Î °øÅëÇÔ¼ö¸¦ Á¤ÀÇÇÑ ÆÄÀÏ °æ·Î¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
°øÅë ÆÄÀÏ·Î °ü¸®ÇÒ ¼ö ÀÖÀ¸¹Ç·Î, °øÅë ÇÔ¼ö¸¦ ¼öÁ¤ÇÒ ¶§ ¿©·¯ °³ÀÇ OZR ÆÄÀÏÀ» ¿¾î¼ ÀÏÀÏÀÌ ¼öÁ¤ÇؾßÇÏ´Â ¹ø°Å·¯¿òÀ» °³¼±ÇÒ ¼ö ÀÖ½À´Ï´Ù.
ozp:// °æ·Î·Î ¼³Á¤ÇÏ¸é ¿ÀÁî¼¹öȨ/WEB-INF/repository_files/ °æ·Î¸¦ °¡¸£Åµ´Ï´Ù.
http:// °æ·Î·Îµµ ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.
<È£Ãâ ÆäÀÌÁö ¿¹ : js_ex.jsp>
<script type="text/javascript" > function SetOZParamters_OZViewer(){ var oz; oz = document.getElementById("OZViewer"); oz.sendToActionScript("connection.servlet","http://127.0.0.1/oz70/server"); oz.sendToActionScript("connection.reportname","js_ex.ozr"); oz.sendToActionScript("viewer.external_functions_path","ozp://js/common.js"); //oz.sendToActionScript("viewer.external_functions_path","http://127.0.0.1/oz70/js/common.js"); return true; } start_ozjs("OZViewer","http://127.0.0.1/oz70/ozhviewer/"); </script> |
<Âü°í>
- ÆĶó¹ÌÅÍ¿¡¼ ¼³Á¤ÇÑ ÆÄÀÏ¿¡ ÀÔ·ÂµÈ ÇÔ¼ö¿Í ¸®Æ÷Æ® ÅÛÇø´ÀÇ FunctionsÀ̺¥Æ®¿¡ ÀÔ·ÂµÈ ÇÔ¼ö¸¦ ÇÔ²² »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ´Ü, ÇÔ¼ö À̸§ÀÌ Áߺ¹µÈ °æ¿ì ¸®Æ÷Æ® ÅÛÇø´ÀÇ FunctionsÀ̺¥Æ®¿¡ ÀÔ·ÂµÈ ÇÔ¼ö·Î µ¿ÀÛÇÕ´Ï´Ù.
- viewer.external_functions_path °æ·Î¿¡ ÆÄÀÏÀÌ ¾øÀ» °æ¿ì º¸°í¼°¡ ¹ÙÀεùµÇÁö ¾Ê½À´Ï´Ù.
¸®Æ÷Æ® ÅÛÇø´ÀÇ '¹Ì¸®º¸±â ¿É¼Ç'¿¡ °æ·Î¸¦ ÁöÁ¤ÇÏ¸é ¸®Æ÷Æ® µðÀÚÀ̳ʿ¡¼ ¹Ì¸®º¸±âÇÒ ¶§µµ ¿ÜºÎ ÇÔ¼ö¸¦ ·ÎµùÇÒ ¼ö ÀÖ½À´Ï´Ù.
(¹Ì¸®º¸±â ¿É¼ÇÀº µðÀÚÀ̳ʿ¡¼ ½ÇÇàÇÒ¶§¸¸ ÀνĵǸç, À¥ºê¶ó¿ìÀú¿¡¼ ½ÇÇàÇÒ ¶§´Â ¹«½ÃµË´Ï´Ù.)
<common.js ¿¹>
function ReplaceAll(txt, originTxt, replaceTxt) { var arrTemp = new Array(); arrTemp = txt.split(originTxt); var revisedTxt = arrTemp.join(replaceTxt); return revisedTxt; }
function Trim(str) { str = str.replace(/(\s+$)/g,''); str = str.replace(/(^\s*)/g,''); return str; } |
ÀÌÁ¦ common.js¿¡ Á¤ÀÇµÈ ÇÔ¼ö¸¦ ÀÚ¹Ù½ºÅ©¸³Æ®¿¡¼ ÀÌ¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
* Âü°í : °øÅ뽺ũ¸³Æ® ¿¹Á¦ ÷ºÎÇÕ´Ï´Ù - ozr.util.js, ozr.json.js, ozr.eform.js
|