M
MatheusMokwa
Guest
Thank for the feedback again Peter, you're very helpful. Again, for me this is something totaly new and unfortunatelly I still didn't get the validation, for example got this class, where I put ERROR and REJECT. METHOD PUBLIC VOID ReadItem( INPUT filter AS CHARACTER, OUTPUT DATASET dsItem): SUPER:ReadData(filter). ASSIGN BUFFER ttItem:ERROR = TRUE BUFFER ttItem:REJECTED = TRUE BUFFER ttItem:ERROR-STRING = "code error string". END METHOD. But when I check the service, it stills returning me the same Json: { "dsItem": { "ttItem": [{ "Itemnum": 1, "ItemName": "Fins", "Price": 24.0, "Onhand": 13022, "Allocated": 9399, "ReOrder": 1, "OnOrder": 433, "CatPage": 1, "CatDescription": "These real shark-skin fins will knock 'em dead at the beach. They'll see you coming from miles away while you're wearing the Original \"Fins\" by Bench\/Lee. ", "Category1": "Diving", "Category2": "Footwear", "Special": "1", "Weight": 4.0, "Minqty": 5 }] } } Shouldn't it return to me some kind of error in the json? How can I add this properties that you mentioned (msg/field/tbl/id) to my response?
Continue reading...
Continue reading...