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



HI Booth
Yes , You can do in single Input ( Datastructure )

Define an Input datastructure for Sqlrpgle program
Input DS has four fields ( program name, section of that program, user
name, and a log statement of incidental information.)

So when you select Post method, Input parm ( will be data structure so no
need of defining any parms)

How to pass input parms for webservices

Pass the parms in Body .

{ " program name" :Value,
"program": Value,
"user" : Value,
"Log" : Value}

Hope it makes sense

Thanks
Anshul


On Sun, Aug 11, 2019 at 8:24 PM Booth Martin <booth@xxxxxxxxxxxx> wrote:

I believe I am interested in Post. Simply put, I wish to write a row in
a DB/2 file with SQLRPGLE using these 4 parameter fields: program name,
section of that program, user name, and a log statement of incidental
information.

The url will be prepared and submitted by a JavaScript file in the ifs.
The JavaScript file will be referenced by an .html file the ifs.

I am thinking I could do this with a data structure and a single parm
but I am also thinking that that is probably bad practice; that maybe I
should figure out how the rest of the world does it.

On 8/11/2019 6:01 PM, anshul narang wrote:
I believe yes. What kind of method you are using? Post/Get/Put/Delete?
Are
these fields are independent fields or they are part of single input
datastructure?

You dont need uri path template for these i believe. Please share the
code
. I can help you with that:)

Thanks
Anshul
--
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.