ChangeAttachment
This service modifies a specified attachment.
URL (general format)
SERVER:PORT/lawson-ios/action/ChangeAttachment
Required Parameters
Parameter Key | Value Type | Parameter Description |
---|---|---|
dataArea | Alphanumeric string |
The data area where the attachment is stored |
filename | Alphanumeric string |
The file name where the attachment is stored |
indexName | Alphanumeric string |
The index used to find the attachment |
Kxx | Alphanumeric string |
The keys of the attachment. Individually specify using increasing numbers, K1=XX K2=YY K3=ZZ |
lIndex | Alphanumeric string |
The L index of this attachment |
attachmentNbr | Alphanumeric string |
The unique key of the attachment |
Optional Parameters
Parameter Key | Value Type | Parameter Description |
---|---|---|
attachmentCategory | C or U only (comment or URL) | The category of the attachment |
attachmentType | Alphanumeric string | User defined attachment type (Use return from ReadAttachment) |
Additional information
Example POST data:
SERVER:PORT/lawson-ios/action/ChangeAttachment
<ACTION>
<ATTACHMENT dataArea="PROD" fileName="EMPLOYEE" indexName="INDEX1" attachmentCategory="C" K1="XX" K2="YY" K3="ZZ"
lIndex="MM" attachmentNbr="XY">
<ATTACHMENT-NAME>the name</ATTACHMENT-NAME>
<ATTACHMENT-TEXT>the text</ATTACHMENT-TEXT>
</ATTACHMENT>
</ACTION>
Deprecated CGI information
The ChangeAttachment service replaces some functionality of the CGI: writeattach.exe
CGI URL: SERVER:PORT/cgi-lawson/writeattachrec.exe?_PDL=PROD&_FN=EMPLOYEE&_IN=INDEX1&_ATYP=C&K1=XX&K2=YY&K3=ZZ&_KS=KY&_AK=XY&_OPM=D
CGI parameters | ChangeAttachment equivalents |
---|---|
_PDL | dataArea |
_FN | filename |
_IN | indexName |
Kxx | Kxx |
n/a | lIndex |
_AK | attachmentNbr |
_ATYP | attachmentCategory |
_AUDT | attachmentType |