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     [CLOSED] Center Data on Panel

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Center Data on Panel
 Login/Join
 
Member
posted
I working on building a simple 2x2 responsive page on a portal with global filters. Three of the panels are populated with charts and the fourth is populated with a single percentage.

In order to display the single percentage, I created a report with a single column that computes the percentage I want to display. On the report, I formatted the data and title of the column to be center-justified. However, when I added the report to the portal, the report runs and the percentage is showing as left-justified. My assumption is that the 'center-justified' formatting was just for that one column and did not provide the necessary instruction to center justify the report within the panel.

How can I center my report inside the panel?

Thanks

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 8.1.05
Developer/Power User
Windows, All Outputs
 
Posts: 6 | Location: Los Angeles | Registered: May 24, 2017Report This Post
Guru
posted Hide Post
Do you have any screenshots or code to show the issue?


-********************
Sandbox: 8206.10
Dev: 8201M
Prod:8009
-********************
 
Posts: 289 | Location: Houston,TX | Registered: June 11, 2004Report This Post
Member
posted Hide Post
I originally went with this as the style code:

TYPE=HEADING, LINE=1, SIZE=10, STYLE=-BOLD,$
TYPE=DATA,
COLUMN=N1,
BORDER-TOP=OFF,
BORDER-BOTTOM=OFF,
BORDER-LEFT=OFF,
BORDER-RIGHT=OFF,
SIZE=48,
JUSTIFY=CENTER,
$
ENDSTYLE
END

Then I copied this script from another piece of code that a consultant worked on for us

-RUN
-HTMLFORM BEGIN
<script>
var table_array = document.getElementsByTagName("table");
table_array[0].style.margin = "auto";

-HTMLFORM END

The script worked in centering the data when I report the report by itself. However, when I add the report as a resource to my portal, the data still shows left-justified.


WebFOCUS 8.1.05
Developer/Power User
Windows, All Outputs
 
Posts: 6 | Location: Los Angeles | Registered: May 24, 2017Report This Post
Expert
posted Hide Post
try this freebie:

TABLE FILE...
ON TABLE HOLD AS MYREPORT FORMAT HTMTABLE
...
END
-HTMLFORM BEGIN
<TABLE WIDTH=100%><TR><TD>!IBI.FIL.MYREPORT;</TD></TR></TABLE>
-HTMLFORM END




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Master
posted Hide Post
quote:
...copied this script from another piece of code...

Is not having the closing script tag just a typo within your post, or something you might want to try to add?

The following code...
TABLE FILE CAR
PRINT CAR BY COUNTRY
ON TABLE PCHOLD AS MYREPORT FORMAT HTML
ON TABLE SET PAGE OFF
ON TABLE SET STYLE *
  INCLUDE=IBFS:/WFC/Repository/stylesheets/ENWarm.sty, $
ENDSTYLE
END
-RUN
-HTMLFORM BEGIN
<script>
var table_array = document.getElementsByTagName("table");
table_array[0].style.margin = "auto";
</SCRIPT>
-HTMLFORM END  
...seems to center the report fine in a panel in my BIP:

This message has been edited. Last edited by: David Briars,
 
Posts: 822 | Registered: April 23, 2003Report This Post
Expert
posted Hide Post
I don't think the closing script is needed as the script will close, terminate, when the fex completes.
However, it would be better, imho, to including it for clarity.
Also, no scripting is needed in my <table> ... </table> method.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report 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     [CLOSED] Center Data on Panel

Copyright © 1996-2020 Information Builders