Ariba Supplier OnRamp 7.1 | webMethods Ariba Supplier OnRamp Documentation | webMethods Ariba Supplier OnRamp Installation and User’s Documentation | The pub.ariba.supplier Folder in the WmAribaSupplier Package | pub.ariba.supplier.attachment.collection | pub.ariba.supplier.attachment.collection:getWrapperFromCollection
 
pub.ariba.supplier.attachment.collection:getWrapperFromCollection
WmAribaSupplier. Extracts the attachmentWrapper object in the collection at a particular index or with a particular id.
Input Parameters
attachmentWrapperCollection
The attachmentWrapperCollection object.
index
If specified, the index of the attachmentWrapper to return. 0 is the first attachmentWrapper. If index is specified, id should not be specified.
id
The attachmentWrapper to extract that for which contains the id indicated.
If id is specified, index should not be specified.
Output Parameters
attachmentWrapper
The attachmentWrapper object that is returned. The value is empty if the index is invalid or if no attachmentWrapper exists with the id specified.
Usage Notes
Each attachment in a collection should have a unique id. If two attachmentWrappers contain the same id, using the id parameter will return the first occurring attachmentWrapper.