Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Integration / Customization
IPA/ProcessFlow
Array variables after user actions
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
SLockhart
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5208
People Online:
Visitors:
351
Members:
0
Total:
351
Online Now:
New Topics
Lawson Add-Ins for Microsoft Office
Deleting an Orphan Time Record with MS Add-ins
12/13/2025 7:26 PM
I have discovered an Orphan Time Record when dumpi
Lawson S3 HR/Payroll/Benefits
Secure 2.0
12/8/2025 9:06 PM
Has anyone using S3 V10 for Benefits been able to
Lawson Add-Ins for Microsoft Office
More.... ic81.2
12/5/2025 10:51 PM
We build our PAR's with MS Addins using IC81 a
Lawson Add-Ins for Microsoft Office
Uploads
11/20/2025 3:32 AM
The Next button has stopped functioning on the upl
S3 Systems Administration
Lawson Security Admin (LSA) - Securing Print Manager to self only
10/24/2025 6:27 PM
Looking for someone who would be willing to share
Lawson Add-Ins for Microsoft Office
Lawson Add-in
9/30/2025 6:51 PM
I am looking for a Lawson Add-ins query to add new
Lawson S3 Procurement
Anyone getting PO 0000 not found for company error in PO23?
9/30/2025 2:45 AM
Anyone getting PO 0000 not found for company error
Lawson Add-Ins for Microsoft Office
PO20 - Cancel PO via Add-in
9/25/2025 8:03 PM
Is it possible to cancel PO's using add-ins? I
S3 Systems Administration
S3 Payroll - PayStubs
9/18/2025 6:58 PM
Looking for a reliable solution to streamline the
S3 Systems Administration
Quick Access report
8/25/2025 7:17 PM
Looking for a good way to see who has access Lawso
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1377
Roger French
1315
mark.cook
1244
Chesca
1042
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Integration / Customization
IPA/ProcessFlow
Array variables after user actions
Please
login
to post a reply.
2 Replies
1
Subscribed to this topic
52 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
timbomom
Advanced Member
Posts: 28
New Poster
Congrats on posting!
12/16/2013 10:06 PM
Declaring arrays in start node a tarray new Array() or tarray2 new Array(2). Setting array values in assign node and in assign node javascript. Have other start node variables of other types, string, integer, boolean.
Notice that the array variables do not persist through a user action node but the other variable types do persist.
Is this a bug? I can not find documentation on this. Suggestions?
John Henley
Posts: 3364
New Poster
Congrats on posting!
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader art thou!
12/16/2013 11:28 PM
Split
See this link:
https://www.lawsonguru.co...e-after-user-action/
David Williams
Veteran Member
Posts: 1127
New Poster
Congrats on posting!
12/17/2013 10:31 AM
Split
Arrays don't persist, but you can create an array, without declaring it to be an array. Make tarray a string and then write/append your values to it with an Assign node and when you need to read the array, use a JavaScript Expression to declare a new array, assign the values from tarray to it and then do some parsing or whatever you need to do. Note that the new array you declare won't carry out of the JavaScript Expression, however.
Another way to process an "undeclared" array is to deliminate the lines of data with a "|" and the data elements within a line with a comma.
1,2,3|
4,5,6|
You can then use a DataIterator to cycle through the variable (set input to Data instead of File) so each pipe seperated line is read (Delimiter = |) seperately and then your JavaScript Expression to parse the line.
var dline=DataIterator_OutputData
var darray=new Array()
darray=dline.split(",")
var1=darray[0]
var2=darray[1]
var3=darray[3]
Please
login
to post a reply.