Jump to navigation Jump to search
ReadFromTableName(tableName as String, Id as string) as Boolean
This function will read the attachments based on the TableName and Id string.
This example loads all attachments related to calculationnumber 12345
Dim attachmentlist As PDCEXT.PdcAttachmentList = PDC.App.AttachmentList if attachmentlist.ReadFromTableName("DO_CALC", "12345") then if attachmentlist.Count > 0 then For index = 0 to attachmentlist.count - 1 Dim attachment as PDCEXT.PDCAttachment = attachmentlist.Items(index) Next end if end if
Changed in 2022 R3