Focal Point
[SOLVED] !IBI.FIL - limitation??

This topic can be found at:
http://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/791105015

August 17, 2010, 12:12 PM
Neenz
[SOLVED] !IBI.FIL - limitation??
Is there a limitation to the number of !IBI.FIL in a -HTMLFORM?

I have 70 HTMLTABLE hold off's and I am putting them between -HTLMFORM BEGIN and -HTLMFORM END (running it from caster). I notice that till the 41st it looks good, but from the 42nd one eventhough I get the report styling is not being applied. The size of the HTLMTABLES are almost same.

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


WF: 7.6.8
OS/Platform: Windows, Unix
August 17, 2010, 01:22 PM
Francis Mariani
Have you tried running the fex from outside ReportCaster? ReportCaster can be a bit idiosyncratic.


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
August 17, 2010, 01:28 PM
Neenz
Yes I did try to run it from dev studio too. But I get the same output where the styling is not being applied.


WF: 7.6.8
OS/Platform: Windows, Unix
August 17, 2010, 01:53 PM
Francis Mariani
How many rows per report?

Do you have -RUN commands in the correct places, e.g. before the -HTMLFORM BEGIN?

Are each of the HOLD files named differently?


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
August 17, 2010, 02:15 PM
Neenz
Yes! I do have -RUN .
And the max number of lines in each hold is 10.


WF: 7.6.8
OS/Platform: Windows, Unix
August 17, 2010, 02:31 PM
Dan Satchell
Might be time for trial and error. Try running your -HTMLFORM with report 42 only. If that works correctly, then begin adding previous reports (41, 40, 39, etc.) until it breaks again. Do you have ENDSTYLE commands for each report?


WebFOCUS 7.7.05
August 17, 2010, 02:33 PM
Francis Mariani
Seems to be a bug, or a limitation of some kind.
I tried the code below and after 31 reports the styling stops getting applied, but this only happens if HTMLCSS is ON. Commenting the HTMLCSSS line makes the styling work, but you don't get some HTML CSS styling.

-SET &ECHO=OFF;

SET PAGE=NOLEAD
-RUN

-REPEAT END_REP FOR &COUNTER FROM 1 TO 50

TABLE FILE CAR
PRINT *
ON TABLE HOLD AS HOLD&COUNTER FORMAT HTMTABLE

HEADING
"REPORT NUMBER &COUNTER"

ON TABLE SET HTMLCSS ON

ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON, FONT='ARIAL', SIZE=8, BORDER=1, BORDER-COLOR=SILVER, $
TYPE=HEADING, COLOR=NAVY, STYLE=BOLD, $
TYPE=TITLE, COLOR=BLUE, $
ENDSTYLE
END
-RUN

-HTMLFORM BEGIN
!IBI.FIL.HOLD&COUNTER;
-HTMLFORM END

-END_REP



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
August 17, 2010, 02:46 PM
Francis Mariani
I dug a little deeper - took a look at the HTML source and found that the styling for report #32 and greater is actually commented out.


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
August 17, 2010, 02:56 PM
Neenz
Ah! That sounds wierd. But glad that it works when I commet out HTMLCSS.

But the styling looks good on PDA devices even when HTMLCSS is not commented out.


WF: 7.6.8
OS/Platform: Windows, Unix
August 17, 2010, 03:04 PM
Neenz
Thanks every one!! Please let me know if it is a known limitation.


WF: 7.6.8
OS/Platform: Windows, Unix
August 17, 2010, 03:05 PM
Francis Mariani
The problem may have to do with how many CSS classes are generated in the whole fex: .x1, .x2, .x3... .x213...


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
August 18, 2010, 03:39 AM
Tony A
quote:
The problem may have to do with how many CSS classes are generated
In which case I would recommend controlling the styling yourself by using CLASS=[css class] in the ON TABLE SET STYLE * and apply your CSS file within the -HTMLFORM BEGIN section.

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 
August 18, 2010, 06:47 AM
Anmol
I too ran the above code and it seems that it is printing all the 50 report data...upto 32 as styled and onwards not styled..


but when i viewed the source code of the report output i am seeing below warning at the end of file

(FOC757) WARNING. YOU REQUESTED PRINT * OR COUNT * FOR A MULTIPATH FILE

when i searched this code i got following lines.

The PRINT * and COUNT * commands causes the left-most path in a file to be referenced. If
the file has more than one path, data which is not part of the left most path is not printed or
counted.

Seems to be truncating some data.

Anmol.


WebFocus7.6.2, WebFocus 7.1.1,Windows
HTML, PDF and Excel
August 18, 2010, 01:08 PM
Francis Mariani
That particular error is actually a warning and it's about the PRINT * - nothing to do with the styling issue. You could change the code to say PRINT COUNTRY and the styling issue will behave the same way.


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
August 19, 2010, 03:33 AM
Ramkumar - Webfous
Is it possible to implement same way of reports in PDF? Using a Counter...


Thanks,

Ramkumar.
WebFOCUS/Tableau
Webfocus 8 / 7.7.02
Unix, Windows
HTML/PDF/EXCEL/AHTML/XML/HTML5
August 19, 2010, 05:05 AM
Dan Satchell
Remove the NOBREAK option if you want the reports on separate pages.

SET PAGE=NOLEAD
-*
-SET &MAXNUM = 50 ;
-*
-REPEAT ENDREPEAT1 FOR &COUNTER FROM 1 TO &MAXNUM
-SET &COMPOUND = IF &COUNTER EQ 1 THEN 'OPEN NOBREAK'
-                ELSE IF &COUNTER EQ &MAXNUM THEN 'CLOSE'
-                ELSE 'NOBREAK';
-*
TABLE FILE CAR
 PRINT COUNTRY
 HEADING
  "REPORT NUMBER &COUNTER"
 ON TABLE PCHOLD FORMAT PDF &COMPOUND
 ON TABLE SET STYLE *
  TYPE=REPORT, SQUEEZE=ON, FONT='ARIAL', SIZE=8, BORDER=1, BORDER-COLOR=SILVER, $
  TYPE=HEADING, COLOR=NAVY, STYLE=BOLD, $
  TYPE=TITLE, COLOR=BLUE, $
 ENDSTYLE
END
-*
-ENDREPEAT1



WebFOCUS 7.7.05