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 Design Studio
Add Custom Drop Down list
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Wayne Willis
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5190
People Online:
Visitors:
231
Members:
0
Total:
231
Online Now:
New Topics
Lawson Landmark
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
IPA/ProcessFlow
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
S3 Customization/Development
Cobol - Extract Current Time
4/24/2024 7:21 PM
How do you extract just the Current System Time in
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
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
1354
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 Design Studio
Add Custom Drop Down list
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
maalimsimo
Veteran Member
Posts: 49
6/21/2012 1:02 PM
I need to add a custom drop down list with just about 4 items, to the Lawson AC10.1 'Output Description' field, using Design Studio. Has anyone ever done this before (even on a different form)? If so, could you kindly share your notes, experience, etc.?
Thanks in advance.
Maalim.
David Williams
Veteran Member
Posts: 1127
6/21/2012 1:41 PM
var rcList = document.getElementById("VALUES_l67") // _l67 is the Field Nbr of my ListBox
var span = document.createElement("span");
while(rcList.hasChildNodes())
{
rcList.removeChild(rcList.childNodes.item(0)) // Remove it
}
var apprs=new Array()
apprs=aprList.split(",")
for (a=0;a
{
var disp=apprs[a].substr(0,apprs[a].indexOf("-"))
var desc=apprs[a].substring(apprs[a].indexOf("-"))
var span = document.createElement("span")
span.setAttribute("text",desc) // long desc
span.setAttribute("tran",disp) // transaction value
span.setAttribute("disp",disp) // display value
rcList.appendChild(span)
}
maalimsimo
Veteran Member
Posts: 49
6/25/2012 2:43 PM
Thanks, David.
One follow-up question though: how and where do I specify the values to display on the drop-down list?
David Williams
Veteran Member
Posts: 1127
6/25/2012 6:54 PM
In my example I used an array and cycled through it. You can just use the span.setAttribute and rcList.appendChild for the 4 values you want to build.
span.setAttribute("text","Description1") // long desc
span.setAttribute("tran","Transaction1") // transaction value
span.setAttribute("disp","Display1") // display value
rcList.appendChild(span)
You are not authorized to post a reply.