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



Hello guys!

I am starting to practice this concept and here is my first "rookie" problem.  I
just want to enter a part number(15 characters long) as a parameter to an HTML
page and display the description and other general information.

My API to pull the string looks like this:
 *
 * QtmhGetEnv
 * API that the program will use to retrieve the query string
DGetEnvData       PR                  ExtProc('QtmhGetEnv')
D  Data                               Like(EnvData)
D  AvailLen                     10I 0 Const
D  ReturnedLen                  10I 0
D  EnvName                      30A   Const
D  EnvNameLen                   10I 0 Const
D  Error                              Like(APIError)

... and in my calculations:
C                   CallP     GetEnvData(EnvData : %Len(EnvData) :
C                             EnvDataLen : QueryString :
C                             %Len(QueryString) : APIError )

However, when I enter a valid part number (let's say 1303022) my results on the
page are blank and check the API variables:

EnvData:ITEM=13030200
EnvDataLen:12
QueryString:QUERY_STRING
APIError:?
Resulting Item Number:3030200

As you see, the first character (1) is gone and there is an extra zero at the
end,
when the real item is 1303022 (parameter that you still see on the address bar
on the browser.  Due to the fact that this item is not in database, the page is
blank.

I do not know if I have provided enough information but I hope somebody is able
to throw some light here.

TIA

Peter Vidal
Programmer Analyst
PALL Aeropower Corp.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.