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     Define File and Variable Size...

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Define File and Variable Size...
 Login/Join
 
Silver Member
posted
Question and solicitation for workaround with variable size in a define file.

Assume the following define file statement:

DEFINE FILE CAE_AGENT_PRODUCER
ROWCNT/I9 = LAST ROWCNT + 1;
TABLESTART/A7 = '< TABLE >';
TABLEEND/A8 = '< /TABLE >';
TABLEROW/A4096 = TABLESTART | '< tr > Insert a boatload of code here with td tages and all the formatting ' | TABLEEND;
END

We are doing a lot in the '< tr >' tags... and we are exceeding the A4096 length which seems to be the maximum inside the define file. the testing data we are using produces a report with 13 columns... but our production reports could have up to 30 columns or more.

does anyone know how to get past this limit?

If you need more information, let me know and I will explain the problem further.

Thanks!

Wayne

This message has been edited. Last edited by: Wayne Atchley,
 
Posts: 35 | Registered: April 20, 2006Report This Post
Platinum Member
posted Hide Post
Wayne,

Will this sort of idea solve your dilemma? Break your HTML into smaller pieces contained in multiple variables, then print them using OVER.

  
DEFINE FILE CAR
TABLESTART/A25 = '<TABLE BORDER=1>';
HTML1/A1024 = '<TR><TD>' | CAR;
HTML2/A1024  = '</TD></TR>';
TABLEEND/A12 = '</TABLE>';
END

TABLE FILE CAR
PRINT
TABLESTART OVER
HTML1 OVER
HTML2 OVER
TABLEEND 
WHERE COUNTRY EQ 'ENGLAND'
ON TABLE HOLD AS HOLDHTML
END


-HTMLFORM BEGIN
!IBI.FIL.HOLDHTML;
-HTMLFORM END


------------------------------------------------------------------------
PROD: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
TEST: WebFOCUS 7.6.2 on Unix AIX/Tomcat/Servlet Mode
 
Posts: 210 | Location: Ottawa | Registered: November 03, 2005Report This Post
Silver Member
posted Hide Post
We tried that, but when we view the generated HTML it pads the data with spaces on the print... so the HTML stuff comes out fine, but the data field (actual column in the database) comes out padded and that messes up our output.

But on the plus side, we learned a new command that we can use later. Thanks!

WA
 
Posts: 35 | Registered: April 20, 2006Report This Post
Expert
posted Hide Post
Wayne,
try using less formatting code in your td tags, just class names, and then in your output area, define your classes.
-HTMLFORM BEGIN
<HTML>
<HEAD>
<style>
td.one{ all the style attributes youwant}
td.two { more styleattributes for class two}
...etcetera
</style>
</HEAD>
<BODY>
!IBI.FIL.MYTABLE1;
!IBI.FIL.MYTABLE2; ifyou have more than 1 table
etc..whatever you have
</BODY>
</HTML>
-HTMLFORM END

We take for granted that you're absolutely sure that regular webfocus tables with boatloads of conditional styling wont work for you , for some reason.

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




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Silver Member
posted Hide Post
Thanks susannah... this is an approach we are considering. It just means we have to re-write a lot of the code we have already worked on...

Currently, our fex has over 1000 lines and only 80 is FOCUS... the rest is HTML and javascript. So, we are busy working through the problems.

Again, I appreciate the insights.

Wayne
 
Posts: 35 | Registered: April 20, 2006Report 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     Define File and Variable Size...

Copyright © 1996-2020 Information Builders