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