Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]How to remove "Layouts" tab from Active Dashboard-Document Composer-WebFOCUS8

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]How to remove "Layouts" tab from Active Dashboard-Document Composer-WebFOCUS8
 Login/Join
 
Guru
posted
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
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Guru
posted Hide Post
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
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Guru
posted Hide Post
Finally, modified arcompound.js file accordingly and its solved.


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Master
posted Hide Post
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:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Member
posted Hide Post
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



 
Posts: 23 | Location: Cincinnati, OH | Registered: September 25, 2013Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Member
posted Hide Post
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
 
Posts: 22 | Registered: May 24, 2016Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Member
posted Hide Post
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
 
Posts: 22 | Registered: May 24, 2016Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED]How to remove "Layouts" tab from Active Dashboard-Document Composer-WebFOCUS8

Copyright © 1996-2020 Information Builders