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.
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?
ThanksThis 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, 2017
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, 2017
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, 2005
...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,
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, 2005