Ellen_Deak
Active Member
Hello List,
I'm using the Media Object system function to get text attachments for order
header and order lines. Everything works fine, as long as there is only
attachment on the order line. If there are two text attachments, I only get
the text from the first attachment. How do I get the text from the 2nd
attachment?
Thanks,
Ellen Deak
Senior Programmer/Analyst
Elkhart Products Corporation
B7333 SP 18.1 Rev 0
AS/400 V4R5M0
---------------------------------
Here's my ER:
RV vMediaText = ""
VA rpt_mnLengthOfMediaObj_MATH01 = 0
Media Objects(GT4211A, <Get Text>, RV vMediaText, BC Document (Order No,
Invoice, etc.) (F4211), BC Order Type (F4211), BC Order Company (Order
Number) (F4211), BC Line Number (F4211))
VA rpt_mnLengthOfMediaObj_MATH01 = length([RV vMediaText])
If VA rpt_mnLengthOfMediaObj_MATH01 is greater than <Zero>
VA rpt_mnLineNumber_LNID = [BC Line Number (F4211)]
Do Custom Section(RS CreateShipmentNotes)
End If
I'm using the Media Object system function to get text attachments for order
header and order lines. Everything works fine, as long as there is only
attachment on the order line. If there are two text attachments, I only get
the text from the first attachment. How do I get the text from the 2nd
attachment?
Thanks,
Ellen Deak
Senior Programmer/Analyst
Elkhart Products Corporation
B7333 SP 18.1 Rev 0
AS/400 V4R5M0
---------------------------------
Here's my ER:
RV vMediaText = ""
VA rpt_mnLengthOfMediaObj_MATH01 = 0
Media Objects(GT4211A, <Get Text>, RV vMediaText, BC Document (Order No,
Invoice, etc.) (F4211), BC Order Type (F4211), BC Order Company (Order
Number) (F4211), BC Line Number (F4211))
VA rpt_mnLengthOfMediaObj_MATH01 = length([RV vMediaText])
If VA rpt_mnLengthOfMediaObj_MATH01 is greater than <Zero>
VA rpt_mnLineNumber_LNID = [BC Line Number (F4211)]
Do Custom Section(RS CreateShipmentNotes)
End If