× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



YESSSS! Problem solved!

It seems like the section names (in HTML Source) should start ALWAYS in
the first position; of course, my posts mis-conducted you, gentlemen,
because you couldn't see the indentation there...
Thanks a lot to everybody put thoughts and effort in this one trying to
help me out; your posts were very welcomed and appreciated...


Florin Todor



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Florin Todor - YYZ
Concord
Sent: Monday, August 25, 2008 4:14 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: CGIDEV2


In my below e-mail it is a typo in RPG Source:

WrtHtmlToStmf('/Reporting/Table.html':819);

is after

Wrtsection('end');

Sorry for that.

Florin Todor



-----Original Message-----
From: Florin Todor - YYZ Concord
Sent: Monday, August 25, 2008 3:47 PM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: CGIDEV2


Scott, I run again the program and now I got the error for 'top'
section, too (probably I miss it to enclose in my post at the first
time...)

I don't use the ClrHtmlBuf() at all; is it possibly to run somehow in
the background?

I call GetHtml only once at beginning of the program (see below)

I checked the lines with the section names; I cannot see anything before
or after....


Hdftactgrp(*no)
*
/copy cgidev2/qrpglesrc,hspecs
/copy cgidev2/qrpglesrc,hspecsbnd
*
FED204D03WKIF E K DISK
*
/copy qrpglesrc,prototypeb
/copy cgidev2/qrpglesrc,usec
*
/Free
Gethtml('HTMLSRC':'INTRANET':'MAD204HTM1':
'<!-- $':'$ -->':'/%':'%/');
Wrtsection('top');
Wrtsection('HeaderPO');
Read ED204D03WK;
Dow not %eof(ED204D03WK);
UpdHTMLvar('Stop' :%char(D3snum));
UpdHTMLvar('PO' :D3po#);
UpdHTMLvar('SellerID':D3selid);
Wrtsection('DetailPO');
Read ED204D03WK;
Enddo;
WrtHtmlToStmf('/Reporting/Table.html':819);
Wrtsection('end');

*inlr = *on;
Return;

/End-Free

I post again the HTML Source, maybe I cannot see something...

<!-- $TOP$ -->
Content-type: text/html

<html>
<head>
<title>Bills information</title>
</head>

<BODY>
<!-- $HEADERPO$ -->

<TABLE BORDER=4 WIDTH=100%>
<TR ALIGN="Center">
<TH>Stop#</TH>
<TH>P.O.#</TH>
<TH>Seller ID #</TH>
</TR>

<!-- $DETAILPO$ -->

<TR ALIGN="Center">
<TD>/%Stop%/</TD>
<TD>/%PO%/</TD>
<TD>/%SellerID%/</TD>
</TR>
<!-- $END$ -->
</TABLE>
</BODY>
</html>


Florin Todor


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Monday, August 25, 2008 2:34 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: CGIDEV2

Hi Florin,

Florin Todor - YYZ Concord wrote:
WrtSection: Section HEADERPO not found.
WrtSection: Section DETAILPO not found.
---------------------------------------
WrtSection: Section END not found.

Hmmm... we know a little more, now. We know that it's unable to find
those sections.

Interestingly, there's no error for the 'top' section -- yet, your code
clearly shows you writing the 'top' section. You say that your output
file is blank -- how would that be if you're writing the 'top' section
successfully?

Do you use ClrHtmlBuf() at all, that it might be wiping out that 'top'
section before populating the IFS file?

You aren't calling GetHtml or GetHtmlIfs again after the initial time,
are you?

Do you do anything between the wrtsection('top') and the
wrtsection('headerpo')?

Are there any special characters on the line before or after the <!--
$HeaderPo$ --> that might cause it to fail?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.