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:
Jessica
Past 24 Hours:
2
Prev. 24 Hours:
0
Overall:
5164
People Online:
Visitors:
255
Members:
0
Total:
255
Online Now:
New Topics
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1348
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Lawson Smart Office
Attachments in LSO
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
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
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
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
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
You are not authorized to post a reply.