Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
User Experience
Lawson Smart Office
Attachments in LSO
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
HireIQ
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5264
People Online:
Visitors:
295
Members:
0
Total:
295
Online Now:
New Topics
Lawson S3 Procurement
Tolerance Settings
3/31/2025 2:01 PM
I've been trying to set a tolerance for some t
Dealing with Lawson / Infor
Printing Solutions other than MHC
3/27/2025 1:00 PM
What are others using for printing solutions besid
Lawson S3 Procurement
Green check marks in Lawson 9.0.1
3/20/2025 4:55 PM
Hi, How to remove green check mark on items when o
Lawson S3 HR/Payroll/Benefits
Pay Rate History to Show All Positions
2/26/2025 3:34 PM
Does anyone know how to modify payratehistory.htm
Infor CloudSuite
How to build a Pre-Prod tenant
2/7/2025 1:28 AM
After we finished our implementation and ended our
Lawson S3 Procurement
Browser issue with RQC Shopping
1/28/2025 5:49 PM
Since the recent Chrome/Edge updates, our RQC shop
Lawson S3 Procurement
S3-Procurement New Company
1/22/2025 10:38 PM
My Accounting Department has created a new Company
S3 Customization/Development
JUSTIFIED RIGHT
1/15/2025 7:41 PM
Is there a way in Lawson COBOL to make a character
S3 Systems Administration
ADFS certificate - new cert
12/3/2024 9:38 PM
The certificates on the windows boxes expired and
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1375
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
User Experience
Lawson Smart Office
Attachments in LSO
Please
login
to post a reply.
3 Replies
0
Subscribed to this topic
11 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
sVaye
Basic Member
Posts: 10
9/20/2011 5:17 PM
Has anyone been able to work with attachments in LSO? With Portal I could use writeattachrec and getattachrec, but I haven't been able to work with Attachments in LSO so far.
Karin
Veteran Member
Posts: 57
9/26/2011 6:10 PM
Split
In LSO we use JScript. There is no direct support but you can try the following.
I should mention that those 2 CGI programs are quite antiquated and I know that IOS has created some ‘actions’ that they would prefer we use:
ADDATTACHMENT
CHANGEATTACHMENT
DELETEATTACHMENT
LISTATTACHMENTS
READATTACHMENT
Here’s an example of building a LISTATTACHMENTS API (in C#):
// build the ListAttachments base API
StringBuilder listApi = new StringBuilder();
listApi.AppendFormat("{0}{1}", S3Constants.ActionFrameworkPath, S3Constants.ListAttachments);
listApi.AppendFormat("?dataArea={0}", form.Productline);
listApi.AppendFormat("&fileName={0}", tableName);
listApi.AppendFormat("&indexName={0}", indexName);
listApi.Append("&outType=XML");
baseApi = listApi.ToString();
Then you have to append a key string. Here’s an example of a fully constructed API:
/lawson-ios/action/ListAttachments?dataArea=PATCH901&fileName=PURCHORDER&indexName=PCRSET7&outType=XML&K1=3535&K2=20100507&K3=333&K4=&K5=0
sVaye
Basic Member
Posts: 10
10/3/2011 12:33 PM
Split
Thanks for the help. I was able get started with the StringBuilder, but am having trouble using the S3Constants.ActionFrameworkPath and S3Constants.ListAttachments. Can you tell me what library they're in?
Karin
Veteran Member
Posts: 57
10/3/2011 3:50 PM
Split
In 9.1.3 the S3Constants are in Lawson.Shared.S3 I think the dll is LawsonShared.dll.
The two constants corresponds to ActionFrameworkPath = "/lawson-ios/action/" and ListAttachments = "ListAttachments" so just using those strings will do the trick or using the S3Constant that would be more robust for future change ... even though I don't see why they would change.
Regards
Please
login
to post a reply.