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:
Jeffin Joy
Past 24 Hours:
1
Prev. 24 Hours:
0
Overall:
4988
People Online:
Visitors:
55
Members:
0
Total:
55
Online Now:
New Topics
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
Chris Martin
825
Forums
Filtered Topics
Active Topics
Most Liked
Most Replies
Search Forums
Advanced Search
Prev
Next
Forums
User Experience
Lawson Design Studio
Add Custom Drop Down list
Please
login
to post a reply.
3 Replies
0
Subscribed to this topic
13 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
maalimsimo
Veteran Member
Posts: 49
New Poster
Congrats on posting!
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader art thou!
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
New Poster
Congrats on posting!
6/21/2012 1:41 PM
Split
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
New Poster
Congrats on posting!
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader art thou!
6/25/2012 2:43 PM
Split
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
New Poster
Congrats on posting!
6/25/2012 6:54 PM
Split
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)
Please
login
to post a reply.