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



No Booth - the addition of that feature _caused_ the grief.

Re-read what I said about "added an extra parameter" - it started failing only _after_ I added the length.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Jul 15, 2019, at 4:44 PM, Booth Martin <booth@xxxxxxxxxxxx> wrote:

Jon, good. Thank you. IWS needs a Secretary of Explaining Things. :)

As you load the array's rows, you are incrementing an index. That count is also your array name_LENGTH. That should skirt the issue, whatever it is, that is causing grief.


On 7/15/2019 11:48 AM, Jon Paris wrote:
I have a working REST/JSON Web Service generated by IWS (for the curious Booth's challenge to me to find a better way to describe the process than the current docs made me revisit it this weekend).

The service takes a URL of the form system stuff/sertvicename/cat/02 where cat is the parameter name and 02 is the value.

It works just fine but when there are less than the maximum number of rows it outputs multiple empty elements.

To deal with this I added an extra parameter with array name_LENGTH as the name and told the wizard to detect length. ...
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.



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.