Focal Point
[SOLVED]How to remove "Layouts" tab from Active Dashboard-Document Composer-WebFOCUS8

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

July 03, 2014, 02:36 PM
Rifaz
[SOLVED]How to remove "Layouts" tab from Active Dashboard-Document Composer-WebFOCUS8
Hi All,

Please help me out in removing "Layouts" tab from Active Dashboard.This is the default tab gets created while choosing AHTML.



I'm in WebFOCUS 8.

Thanks,
Rifaz

This message has been edited. Last edited by: Rifaz,


-Rifaz

WebFOCUS 7.7.x and 8.x
July 04, 2014, 12:43 AM
Rifaz
I guess, it can't be done directly. Correct me, if i'm wrong?

We need to modify correspoding js files, is it so?


-Rifaz

WebFOCUS 7.7.x and 8.x
July 06, 2014, 02:05 AM
Rifaz
Finally, modified arcompound.js file accordingly and its solved.


-Rifaz

WebFOCUS 7.7.x and 8.x
January 19, 2017, 01:46 PM
Hallway
I know that this is an old post, but I wanted to share this solution that I found in case anyone else is searching for an easier solution. I found out that you can just put in an HTML FORM at the end of the LAST component to be able to modify the js and CSS of the active dashboard.

The following code is an example of how it works on my end in WF 8105M:

ENGINE INT CACHE SET ON
SET PAGE-NUM=NOLEAD
SET EMPTYREPORT=ON

COMPOUND LAYOUT PCHOLD FORMAT AHTML
SECTION=Section_1, LAYOUT=ON, PAGESIZE=LETTER, ORIENTATION=PORTRAIT, SHOW_GLOBALFILTER=OFF, ACTIVE_UNITS=PTS, PAGECOLOR=RGB(255 255 255), $
PAGELAYOUT=1, NAME='Page 1', TEXT='Page 1', LEFTMARGIN=0.25, RIGHTMARGIN=0.25, TOPMARGIN=0.25, BOTTOMMARGIN=0.25, $
COMPONENT=Table_1, COMPONENT-TYPE=REPORT, POSITION=(0.21875 0.489583), DIMENSION=(4 3), $
PAGELAYOUT=2, NAME='Page 2', TEXT='Page 2', LEFTMARGIN=0.25, RIGHTMARGIN=0.25, TOPMARGIN=0.25, BOTTOMMARGIN=0.25, $
COMPONENT=Table_2, COMPONENT-TYPE=REPORT, POSITION=(0.25 0.25), DIMENSION=(5 5), $
END

SET COMPONENT=Table_1

TABLE FILE ibisamp/car
BY CAR.COMP.CAR
BY CAR.ORIGIN.COUNTRY
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
ENDSTYLE
END

SET COMPONENT=Table_2
TABLE FILE ibisamp/car
SUM CAR.BODY.SEATS
BY CAR.CARREC.MODEL
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
ENDSTYLE
END

-HTMLFORM BEGIN
<style>
.arDashboardBar {
   font-family:Arial,tahoma,verdana;
   font-size:12px;
   font-weight: bold;
   background: white;
   background-color:#A9351A;
   color:white;
}
.arDashboardBarButton {
   padding-left:4px;
   padding-right:4px;
   padding-top:4px;
   padding-bottom:4px;
   text-align:center;
   font-weight:normal;
   background: white;
   background-color:#A9351A;
   color:white;
}
.arDashboardBarButtonSelected {
   padding-left:4px;
   padding-right:4px;
   padding-top:4px;
   padding-bottom:4px;
   text-align:center;
   font-weight: bold;
   background: white;
   background-color:white;
   color:#A9351A;
}
</style>
<script>
	ibiMsgStr['paglinetext'] = "Records %frcs-%lrcs of %trcs total records, Page %inds of %pgs<span id='smsg%tn'><\/span>";
	ibiMsgStr['Layouts'] = "View by: &|nbsp;&|nbsp;&|nbsp; ";
</script>
-HTMLFORM END

COMPOUND END





Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
January 20, 2017, 08:25 AM
Teri Newton
Thank you. This solution is perfect! Just yesterday, I spent hours looking at “arcompound.js” and could not figure out what part to change. You saved me from a lot of frustration. Good One



January 20, 2017, 08:44 AM
BabakNYC
I believe the documented method for removing or replacing Layout is as follows:

Create a javascript file in apps/baseapp call it irpcusf.js
Put the following code in the js file:


// JScript source code
// ArApi is set to the activeReport object
var ArApi = null;
function user_init() {
if(ArApi==null) ArApi=new getAReportObj();
// ADD CUSTOM CODE HERE
}
// This overwrites the text presented prior to the panels.
ibiMsgStr['Layouts'] = "";



If you want to replace Layouts with something else just put that word between the "" in the ibimsgStr line in the bottom.

See page 265 of http://documentation.informati...ech/wfactivetech.pdf

This message has been edited. Last edited by: BabakNYC,


WebFOCUS 8206, Unix, Windows
April 19, 2017, 01:56 AM
DineshJGoundai
Hi All,

I'm not able to remove the 'Layouts' label when scheduling the Active Dashboard report.

Can you please help me on this?


WebFOCUS 8105 | 8206
Windows, All Outputs
April 20, 2017, 01:37 PM
BabakNYC
Did you create irpcusf.js file as above and put it in baseapp directory?

Does 'Layouts' show up when you run the report Live as well or only when you schedule?


WebFOCUS 8206, Unix, Windows
April 21, 2017, 01:14 AM
DineshJGoundai
I just created irpcusf.js in the same directory where the active dashboard fex was created.

I moved the js file to baseapp. Now it's working.

Thanks BabakNYC!!


WebFOCUS 8105 | 8206
Windows, All Outputs
April 21, 2017, 07:44 AM
BabakNYC
baseapp is always in the path. Consequently, any code you want to have visible by all components should be placed in baseapp.


WebFOCUS 8206, Unix, Windows