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



how does the webfaced RPG search program access the inpout string from the 
netdata macro?

Larry Kleinman
Kleinman Associates, Inc.
212-949-6469
203-255-4100



"Raul A. Jager W." <raul@xxxxxxxxxx> 
Sent by: web400-bounces@xxxxxxxxxxxx
06/10/2005 06:09 PM
Please respond to
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>


To
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
cc

Subject
Re: [WEB400] using net.data and webfacing together






I wrote a RPG program to search the customer. It receives two parms, the 
first is data about the customer (name, phone, birthday, etc) and the 
second is the link where to send the data.
like this:
lookfor="Raul Alberto Jager"  (from other link, or an input fiel in a 
form)
sendto="hhtp://server/directory/macro?data=watever&customernumber="
function(in char(60) lookfor, in char(250) sendto)
EXEC /QSYS.LIB/...SEARCH.PGM (RPG)

The search program generates a list with all the customers that meet the 
lookfor criteria, with a link that sends the user to the sendto + number

It is unlikely that you can use my program, but you can use the same 
structure in yours.
____________________________________________________________
Larry Kleinman wrote:

>Does anyone have an idea how to handle the following:
>
>Several different net.data macros ask the user to enter a customer number 

>as input for various inquiries (all items bought by a customer, all sales 

>reps who handle a customer, all invoices sent to a customer, etc.)  We 
>have a pretty good customer search program written in RPG which has been 
>webfaced.  We'd like to have the different net.data macros "call" the 
>webfaced customer search, have the user click on the desired customer, 
>then have the customer number "returned" to the net.data macro.
>
> I'm thinking that the net.data macro could include "?calling 
>program=MACRO1" as part of the URL that calls the webfaced search, and 
>then have the RPG program somehow interrogate this to find the name of 
the 
>net.data macro that called it.  (Is this in an environment variable, and 
>can i get that from a webfaced program?)  If that is possible, then 
adding 
>a HREF in the webfaced program that goes back to the appropriate net.data 

>macro should be fairly easy.
>
>Larry Kleinman
>Kleinman Associates, Inc.
>212-949-6469
>203-255-4100
> 
>



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.