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
Setting a Checkbox on intial Load
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:
37
Members:
0
Total:
37
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
Unanswered
Unresolved
Active Topics
Most Liked
Most Replies
Search Forums
Advanced Search
Prev
Next
Forums
User Experience
Lawson Design Studio
Setting a Checkbox on intial Load
Please
login
to post a reply.
1 Replies
0
Subscribed to this topic
13 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Robert Spurr
Veteran Member
Posts: 130
New Poster
Congrats on posting!
5/7/2010 2:54 AM
I've created a design studio modification of RQ10 for RSS approval with a checkbox. I want to inquire on a table and set the checkbox based on the value I retrieve. I have no problem reading the value to update the table but reversing the process doesn't seem to work. Does anyone have an example of setting a checkbox?
Thanks
Robert
Robert Spurr
Veteran Member
Posts: 130
New Poster
Congrats on posting!
5/7/2010 2:06 PM
Split
I solved the problem and thought I would share. My not be the best solution but it worked. My first problem was that I couldn't change the state of the checkbox (Checked Unchecked)
if(vCols[20].firstChild.data == "Y")
{
lawForm.setElementValue("_l252","Y");
}else
{
lawForm.setElementValue("_l252","N");
}
if(vCols[21].firstChild.data == "Y")
{
lawForm.setElementValue("_l253","Y");
}else
{
lawForm.setElementValue("_l253","N");
}
This however caused another problem. When I try to update a table if was setting the values to false even if the checkbox was checked. As it turned out the solution above only effected the form but not the current state so I had to read the current state instead.
var vCheck = lawForm.getElementValue("_l252");
if(vCheck == "Y")
{
vCollection = vCollection + "&CAP-FLAG01-CD=Y";
}else
{
vCollection = vCollection + "&CAP-FLAG01-CD=N";
}
var vCheck1 = lawForm.getElementValue("_l253");
if(vCheck1 == "Y")
{
vCollection = vCollection + "&CAP-FLAG02-CD=Y";
}else
{
vCollection = vCollection + "&CAP-FLAG02-CD=N";
}
Hope this helps
Please
login
to post a reply.