Focal Point
[SOLVED] How to show Panels Loading when they are waiting for Foccache to Run

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4607066396

June 16, 2020, 09:08 AM
Brandon Andrathy
[SOLVED] How to show Panels Loading when they are waiting for Foccache to Run
Hello,

I have a Portal where I run a foccache file in the background and then my panels pull data from there once the foccache query runs. My problem now is that I want to still show that things are loading while the foccache is loading.

Has anyone run into this before? I want to show some type of splash frame loading page or something when my foccache file is running. I thought about getting creative with an html page but don't know what can be feasible. I know how to use role=dialog to expand a drop-down box past a portal frame e.g. role=dialog width:320px. I'm curious if there's a way to expand an iframe in an html composer page in the same way.

Any suggestions welcome.

Thanks in advance!

This message has been edited. Last edited by: Brandon Andrathy,


WebFOCUS 8204
June 16, 2020, 05:41 PM
Brandon Andrathy
Nm, I figured out another solution. I found a gif, created a dummy table file and embedded it in HTML code. I'll display this until the foccache runs and I'll pass a parameter to the code to refresh the tile and display data.

 -DEFAULTH &&WFEMPLOYERID = '_FOC_NULL';
-DEFAULTH &&WFPRODNAME = '_FOC_NULL';

TABLE FILE _ADM_STAR
SUM
	COMPUTE Commercial/A20 = _ADM_STAR.EMPLOYER.CLIENTTYPE; AS ''
ON TABLE HOLD AS HLD FORMAT HTMTABLE
ON TABLE SET AUTOFIT ON
ON TABLE SET GRWIDTH 1
ON TABLE SET STYLE *
-*TOPMARGIN=0.1, BOTTOMMARGIN=-5, LEFTMARGIN=-1,$
TYPE=DATA, COLUMN=Commercial, JUSTIFY=CENTER, IMAGE=IBFS:/WFC/Repository/CM_Performance/Common_Content/Preloader_2.gif, SIZE=(.6 .6),$
TYPE=DATA, BORDER=OFF,$
ENDSTYLE
END

-HTMLFORM BEGIN
<html>
<head>
    <style>
        html, body, .container {
    height: 100%;
}

.container {
    display: -webkit-flexbox;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}
    </style>
    <script src="/scripts/snippet-javascript-console.min.js?v=1"></script>
</head>
<body>
    <div class="container"> 
<TABLE ID=FIRST >
!IBI.FIL.HLD;
</TABLE>
</div>
    <script type="text/javascript">
        
    </script>
</body>
</html>
-HTMLFORM END 



WebFOCUS 8204