-DEFAULT &COUNTRY = 'FOCNONE'; TABLE FILE CAR SUM SALES BY COUNTRY BY CAR BY MODEL WHERE COUNTRY EQ '&COUNTRY' ON TABLE SET STYLESHEET * TYPE=DATA, COLUMN=COUNTRY, FOCEXEC=CAR1 (COUNTRY=COUNTRY), TARGET=WINCAR1, $ ENDSTYLE ON TABLE HOLD AS H001 FORMAT HTMTABLE END -RUN -HTMLFORM BEGIN <script type="text/javascript"> self.moveTo(0,0); // Move to the top left corner self.resizeTo(screen.availWidth,screen.availHeight); // Resize to the available screen size self.focus(); // Bring window to the front </script> !IBI.FIL.H001; -HTMLFORM END
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |
-DEFAULT &COUNTRY = '_FOC_NULL'; TABLE FILE CAR SUM SALES BY COUNTRY BY CAR BY MODEL WHERE COUNTRY EQ '&COUNTRY' ON TABLE SET STYLESHEET * TYPE=DATA, COLUMN=COUNTRY, JAVASCRIPT=drillto('CARINST' COUNTRY 'Example Drilldown using jQuery'), $ ENDSTYLE ON TABLE HOLD AS H001 FORMAT HTMTABLE END -RUN -HTMLFORM BEGIN <!DOCTYPE html> <head> <style type="text/css"> -* I'm using the id of each div to assign CSS #divdrill { position: absolute; top: 100px; left: 200px; background-color: #fff; z-index: 100; border: 1px solid; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; } #hdrdrill { background-color: #f00; width: 100%; -moz-border-top-left-radius: 5px; -moz-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px; -webkit-border-top-right-radius: 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; } #btndrill { height: 16px; width: 20px; float: right; background-image: url(/ibi_html/javaassist/icons/Exit16.gif); background-repeat :no-repeat; } span { padding: 3px; } </style> <!-- Within WF8, these JS and CSS Libraries are installed as standard --> <script src="/ibi_apps/ibi_html/javaassist/jquery/jquery_min.js"></script> <script src="/ibi_apps/jquery/jquery-ui.min.js" type="text/javascript"></script> <link type="text/css" rel="stylesheet" href="/ibi_apps/jquery/jquery-ui.css" /> <!-- This is thejQuery that is executed on drilldown click All it does is to remove the drilldown div (in case it already exists) and then create an outer div containing 3 inner divs, 2 for the heading and 1 for the drill down report content. The 2 heading divs contain the title plus the image for closing the pop-up. --> <script type="text/javascript"> function drillto(fex, country, title) { // If the drill down div exists then "close it" if ($("#divdrill")) {closeit();} // Build the div collection that will house the drill down report var myhtml = "<div id='divdrill'>"; myhtml += "<div id='hdrdrill'><span>"+title+"</span>"; myhtml += "<div id='btndrill' onclick='closeit();'></div>"; myhtml += "</div><div id='divnum_1'></div></div>"; // Append the div collection to the document body $("body").append(myhtml); // Build the URL required to execute the drill down report var _ajaxurl = "/ibi_apps/WFServlet?IBIAPP_app=ibisamp"; _ajaxurl += "&|IBIF_ex="+fex+".fex&|COUNTRY="+country; // and insert the html from the drill down report as the innerHtml $.get(_ajaxurl, function(data){$("#divnum_1").html(data)}); // This is the "magic" that allows the drill down div to be dragged! $( "#divdrill" ).draggable(); } // Remove the div collection function closeit() { $("#divdrill").remove(); } </script> </head> <body style="overflow: hidden;"> !IBI.FIL.H001; </body> </html> -HTMLFORM END
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |
-DEFAULT &COUNTRY = '_FOC_NULL'; TABLE FILE CAR SUM SALES BY COUNTRY BY CAR BY MODEL WHERE COUNTRY EQ '&COUNTRY' ON TABLE SET STYLESHEET * TYPE=DATA, COLUMN=COUNTRY, JAVASCRIPT=drillto('CARINST' COUNTRY 'Example Drilldown using jQuery'), $ ENDSTYLE ON TABLE HOLD AS H001 FORMAT HTMTABLE END -RUN -HTMLFORM BEGIN <!DOCTYPE html> <head> <style type="text/css"> </style> <!-- Within WF8, these JS and CSS Libraries are installed as standard --> <script src="/ibi_apps/ibi_html/javaassist/jquery/jquery_min.js"></script> <script src="/ibi_apps/jquery/jquery-ui.min.js" type="text/javascript"></script> <link type="text/css" rel="stylesheet" href="/ibi_apps/jquery/jquery-ui.css" /> <!-- This is thejQuery that is executed on drildown click All it does is to remove the drilldown div (in case it already exists) and then create an outer div containing 3 inner divs, 2 for the heading and 1 for the drill down report content. The 2 heading divs contain the title plus the image for closing the pop-up. --> <script type="text/javascript"> function drillto(fex, country, title) { // If the drill down div exists then "close it" if ($("#divdrill")) {closeit();} // Build the div collection that will house the drill down report var myhtml = "<div id='divdrill'></div>"; // Append the div collection to the document body $("body").append(myhtml); // Now set attributes on the drill down div to define it as a modal dialog $("#divdrill").dialog( { autoOpen : false ,closeOnEscape : true ,resizable : true ,width : 600 ,height : 350 ,position : "" ,show : {effect: "clip", duration: 300} ,hide : {effect: "clip", duration: 300} ,stack : true ,modal : true }) // Build the URL required to execute the drill down report var _iframeurl = "/ibi_apps/WFServlet?IBIAPP_app=ibisamp"; _iframeurl += "&|IBIF_ex="+fex+".fex&|COUNTRY="+country; var _url = ""; _url += "<iframe style='width:99%; height:99%;' src='"+_iframeurl+"'>"; _url += "</iframe>"; $("#divdrill").html(_url); $("#divdrill").dialog("open", ""); $("#divdrill").dialog("option", "title", title); } // Remove the div collection function closeit() { $("#divdrill").remove(); } </script> </head> <body style="overflow: hidden;"> !IBI.FIL.H001; </body> </html> -HTMLFORM END
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |
quote:Originally posted by Tony A:
... of course there is a much better method by making the pop-up modal.
Same comment on including within an HTML composer page ....-DEFAULT &COUNTRY = '_FOC_NULL'; TABLE FILE CAR SUM SALES BY COUNTRY BY CAR BY MODEL WHERE COUNTRY EQ '&COUNTRY' ON TABLE SET STYLESHEET * TYPE=DATA, COLUMN=COUNTRY, JAVASCRIPT=drillto('CARINST' COUNTRY 'Example Drilldown using jQuery'), $ ENDSTYLE ON TABLE HOLD AS H001 FORMAT HTMTABLE END -RUN -HTMLFORM BEGIN <!DOCTYPE html> <head> <style type="text/css"> </style> <!-- Within WF8, these JS and CSS Libraries are installed as standard --> <script src="/ibi_apps/ibi_html/javaassist/jquery/jquery_min.js"></script> <script src="/ibi_apps/jquery/jquery-ui.min.js" type="text/javascript"></script> <link type="text/css" rel="stylesheet" href="/ibi_apps/jquery/jquery-ui.css" /> <!-- This is thejQuery that is executed on drildown click All it does is to remove the drilldown div (in case it already exists) and then create an outer div containing 3 inner divs, 2 for the heading and 1 for the drill down report content. The 2 heading divs contain the title plus the image for closing the pop-up. --> <script type="text/javascript"> function drillto(fex, country, title) { // If the drill down div exists then "close it" if ($("#divdrill")) {closeit();} // Build the div collection that will house the drill down report var myhtml = "<div id='divdrill'></div>"; // Append the div collection to the document body $("body").append(myhtml); // Now set attributes on the drill down div to define it as a modal dialog $("#divdrill").dialog( { autoOpen : false ,closeOnEscape : true ,resizable : true ,width : 600 ,height : 350 ,position : "" ,show : {effect: "clip", duration: 300} ,hide : {effect: "clip", duration: 300} ,stack : true ,modal : true }) // Build the URL required to execute the drill down report var _iframeurl = "/ibi_apps/WFServlet?IBIAPP_app=ibisamp"; _iframeurl += "&|IBIF_ex="+fex+".fex&|COUNTRY="+country; var _url = ""; _url += "<iframe style='width:99%; height:99%;' src='"+_iframeurl+"'>"; _url += "</iframe>"; $("#divdrill").html(_url); $("#divdrill").dialog("open", ""); $("#divdrill").dialog("option", "title", title); } // Remove the div collection function closeit() { $("#divdrill").remove(); } </script> </head> <body style="overflow: hidden;"> !IBI.FIL.H001; </body> </html> -HTMLFORM END
T
http://[server][:port]/ibi_apps/WFServlet?IBIF_webapp=/ibi_apps&IBIC_server=[servername]&IBIWF_msgviewer=OFF&IBIAPP_app=[app folder names]&&IBIMR_drill=IBFS,RUNFEX,IBIF_ex,true&IBIF_ex=IBFS:/WFC/Repository[/rest of full path]/[your fex name]
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |
http://localhost:8080/ibi_apps/rs/ibfs/WFC/Repository/RESTful_Web_Services/ Car_Reports/Sales_for_a_Specific_Country.fex?IBIRS_action=run&COUNTRY=JAPAN
<script> function pop2(url,winname) { window.open(url, winname , "width=750,scrollbars=yes,resizable=yes, top=230, left=180, height=600"); } </script>
_icon_js/A450= '<A HREF=''javascript:pop2("/approot/exec_welcome/exec_alerts_def.htm","FAQ")''>'| info_icon |' </A>';
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID |
<script src="/ibi_apps/jquery/js/jquery-ui.min.js" type="text/javascript"></script> <link type="text/css" rel="stylesheet" href="/ibi_apps/jquery/css/jquery-ui.css" />
In FOCUS since 1986 | WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2 | ||
WebFOCUS App Studio 8.2.06 standalone on Windows 10 |