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



I can't speak for using it from node.js - but in general with XMLSERVICE anything you put into the request packet will be reflected back to you - so I would expect it should be possible.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com

On Apr 27, 2017, at 7:14 AM, Magne Kofoed <magne.kofoed@xxxxxxxxx> wrote:

Hi,

is it possible to put the field name into ipgm.js (and xmlservice) and get
the field name in the response?
I have only seen examples with field value and type (not field names).

I want to have the field name in the response from xmlservice in order to
create a better json response.
This is an JS example with a datastructure with only field value and type.

var KUNINN= [
["123456", "11A"], //CustomerNbr
["1", "5A"], //VersionNbr
["09116899999, "11A"] //SNN
];
pgm.addParam(KUNINN, {"io":"KUNINN", "len":"1"});


Regards,
Magne
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/opensource.


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.