× 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.



or...if you don't want to buy a solution and you are using RPG and
CGI...with an existing HTML page that you design and store and read from the
IFS (this isn't rocket science...)....you could use code such as the
following to replace your own custom data tags in existing HTML:

In this example,  the scan is looking for the value "TSTATE" embedded in the
text. In this case, the value TSTATE is in an HTML control such as:

<INPUT TYPE="TEXT" NAME="TSTATE" READONLY />

where the HTML control above is part of the entire HTML source, stored, in
this example, in the variable named "Text".

Assuming field "yourDBVariable" contained the value "ILLINOIS",  the "Text"
field will contain the following upon completion:

<INPUT TYPE="TEXT" NAME="TSTATE" VALUE="ILLINOIS" READONLY />



  *
 C                   Eval      Rz = %Scan('TSTATE':Text)
 C                   If        Rz > 0
 C                   Eval      RString = ' Value="' + %Trim(yourDBVariable)+
 C                                '"'
 C                   Eval      Text = %Replace(%Trim(RString):Text:Rz + 8
 C                                    :0)
 C                   Endif
  *

 C                   Eval      Brwsrdta = %Trim(Brwsrdta) + %Trim(Text)
 C                   eval      BrwsrDtaln = %len(%trimr(BrwsrDta))
 C                   Callb     'QtmhWrStout'
 C                   Parm                    BrwsrDta
 C                   Parm                    BrwsrDtaln
 C                   PARM                    APIErr
  *


Shannon O'Donnell


----- Original Message ----- 
From: "Schadd Gray" <list@xxxxxxxxxxxxx>
To: "Web Enabling the AS400 / iSeries" <web400@xxxxxxxxxxxx>
Sent: Wednesday, October 01, 2003 8:09 PM
Subject: Re: [WEB400] Question on Filling Data into HTM from PF


> I would not re-invent the wheel, if I where you.  May I suggest RSP (RPG
> Server Pages).
>
> http://www.damontech.com/rsp/solutions.htm
>
> Schadd Gray
> Damon Technologies, Inc.
> www.damontech.com
>
> ----- Original Message ----- 
> From: "Stephen Smith" <stevesmithemail@xxxxxxxxx>
> To: <web400@xxxxxxxxxxxx>
> Sent: Tuesday, September 30, 2003 6:19 PM
> Subject: [WEB400] Question on Filling Data into HTM from PF
>
>
> > Hello *All, I got a PF with order details and a HTM
> > template with fields like <%ORDNO%>,<%ITEM%> etc...
> >
> > And I need to fill and generate a HTM for each
> > customer with order details.
> >
> > Any ideas or sample pgms out there ?
> >
> > Please help !
> >
> > Thnx
> > Steve
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Shopping - with improved product search
> > http://shopping.yahoo.com
> > _______________________________________________
> > This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
> > To post a message email: WEB400@xxxxxxxxxxxx
> > To subscribe, unsubscribe, or change list options,
> > visit: http://lists.midrange.com/mailman/listinfo/web400
> > or email: WEB400-request@xxxxxxxxxxxx
> > Before posting, please take a moment to review the archives
> > at http://archive.midrange.com/web400.
> >
> >
>
> _______________________________________________
> This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
> To post a message email: WEB400@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/web400
> or email: WEB400-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/web400.
>
>
>



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.