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'm displaying a WebFOCUS report created by ON TABLE HOLD FORMAT HTML in a Division. I have to dynamically resize and control the Division
. I have Javascipt code that does this but it requires that the Division have an ID parameter associated with it. WF does not include the ID parameter in the Division. Is there a way that I can create the ID using WF code at run time?
Example: WF provides this:
I want to create this:
Has anyone done this before? Thanks.This message has been edited. Last edited by: Kerry,
WF 7.7.3 Windows 2003 Server PDF HTML EXL2k
Posts: 27 | Location: NYC | Registered: February 27, 2004
Richard you are going to have to modify your Javascript
Try using getElementsByTagName this will return an array, look at the code to check it index of the div tag you want, probably 0 and using that you should be able to give it an id.This message has been edited. Last edited by: <JG>,
Yes, the reports are long and need to keep the headings and column titles fixed at the top of the screen so I used HFREEZE. So does anyone know how I can name the DIVs so the JAVASCRIPT that I have to resize the Divs will work?
Thanks.
WF 7.7.3 Windows 2003 Server PDF HTML EXL2k
Posts: 27 | Location: NYC | Registered: February 27, 2004
TABLE FILE CAR
SUM
SALES
BY COUNTRY
BY CAR
BY MODEL
BY BODYTYPE
BY LENGTH
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE HOLD AS XYZ FORMAT HTML
ON TABLE SET STYLE *
TYPE=REPORT, FONT='ARIAL', GRID=ON, $
TYPE=REPORT, HFREEZE=ON, SCROLLHEIGHT=4.5, $
END
-RUN
-HTMLFORM BEGIN
!IBI.FIL.XYZ;
<script type='text/javascript'>
document.getElementsByTagName('DIV')[1].style.height = 350;
document.getElementsByTagName('DIV')[1].style.overflow = 'auto';
</script>
-HTMLFORM END
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
francis - the issue with your last post is doesn't the htmlform begin statement cause the report to be displayed?
my issue is that WF is NOT displaying any of the content that I create with it. I am creating a host of htm files using WF and then deploying them to another of my web servers that knows nothing about WF. It is from this web server that all the content that i've created is displayed.
WF 7.7.3 Windows 2003 Server PDF HTML EXL2k
Posts: 27 | Location: NYC | Registered: February 27, 2004
Use the ON TABLE HOLD FORMAT HTMTABLE instead, then use an AJAX call to retrieve the file and insert it into the DIV tag.
Fex
TABLE FILE CAR
SUM
SALES
BY COUNTRY
ON TABLE HOLD AS baseapp/my_report FORMAT HTMTABLE
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
GRID=OFF,
FONT='ARIAL',
SIZE=9,
$
ENDSTYLE
END
You're quoting that third party framework again when a lot of shops will not permit downloads of this type (short-sighted maybe), so your solution (albeit a very good method) won't suit everyone
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Yes, I realize that not everyone will be able to use a third party JS framework. In my client base, that number is getting lower every day.
That being said, although my examples still use it, it does not take away from the root of the potential solution. For those that do not have a framework, there are still plenty of examples on the web - and in this forum - of AJAX calls without a framework. If the example makes sense, then a solution is an hour of research away. I personally think it talks to this post a wee bit!
Later
p.s. did anyone notice that the latest version of PMF actually comes bundled with this very same framework?
"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott