Hello everybody! Sorry for my English. I hope I will be understood. I've got such a problem to solve... I need to make ArrayOfParcel according to I've got parameter
I need to write it in proper way but I don't have any idea how to do it. Could you help me? Any clues? Thank you in advance for every single answer. Kris
First, please create the XDTO package in Common/XDTO packages. You can also right-click on XDTO packages and select Import XML schema to import the XSL.
Then, please, try the following syntax to create an XDTO object of the created type:
Code
ArrayOfParcel = XDTOFactory.Create(XDTOFactory.Type("http://SubstituteXDTOPackageURL", "SubstituteArrayOfParcelXDTOType"));
While SubstituteCondition Do
Parcel = XDTOFactory.Create(XDTOFactory.Type("http://SubstituteXDTOPackageURL", "SubstituteParcelXDTOType"));
Parcel.Weight = WeightValue;
Parcel.Type = TypeValue;
ArrayOfParcel.Add(Parcel);
EndDo;