Hi All
Cross posting to Web list as well.
In my current pgm that is called from my Web Server I return arrays for each element.
I want to return a DS array instead.
Current Parameters
Dcl-pr WOMOrdTypR;
Envir Char(2);
Type Char(2) Dim(20);
Description Char(25) Dim(20);
Fail Char(100);
End-pr;
Dcl-pi WOMOrdTypR;
Envir Char(2);
Type Char(2) Dim(20);
Description Char(25) Dim(20);
Fail Char(100);
End-pi;
Which returns this from the service
{
"TYPE": [
"DS",
"EX",
"LT",
"NC",
"RM",
"RW",
"SL",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"DESCRIPTION": [
"Drop Ship",
"Expedited Order",
"Literature Packed",
"No Charge",
"Remake",
"Re-Work",
"Standard Lead",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
""
],
"FAIL": ""
}
I want it to return
[
{
"TYPE": "DS",
"DESCRIPTION": "Drop Ship"
},
{
"TYPE": "EX",
"DESCRIPTION": "Expedited Order"
},
{
"TYPE": "LT",
"DESCRIPTION": "Literature Packed"
}
]
How do I define this as a DS so the service returns what I want?
I am looking for some good documentation on templates, I am assuming this is what I want but have never used it.
Subject to Change Notice:
WalzCraft reserves the right to improve designs, and to change specifications without notice.
Confidentiality Notice:
This message and any attachments may contain confidential and privileged information that is protected by law. The information contained herein is transmitted for the sole use of the intended recipient(s) and should "only" pertain to "WalzCraft" company matters. If you are not the intended recipient or designated agent of the recipient of such information, you are hereby notified that any use, dissemination, copying or retention of this email or the information contained herein is strictly prohibited and may subject you to penalties under federal and/or state law. If you received this email in error, please notify the sender immediately and permanently delete this email. Thank You
WalzCraft PO Box 1748 La Crosse, WI, 54602-1748
www.walzcraft.com<
http://www.walzcraft.com> Phone: 1-800-237-1326
As an Amazon Associate we earn from qualifying purchases.