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
OnClick Question
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
OnClick Question
Please
login
to post a reply.
4 Replies
0
Subscribed to this topic
13 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Chris12
Veteran Member
Posts: 150
New Poster
Congrats on posting!
1/16/2014 8:39 PM
I have a screen in DS which contains multple buttons. I would like to have multiple onClick events (one for each button) ....
How do I segrate the onClick events such that each button knows what OnClick function to use ...
This one is killing me
Robert Spurr
Veteran Member
Posts: 130
New Poster
Congrats on posting!
1/16/2014 8:48 PM
Split
the OnClick button has a variable call 'id'. Every object in design studio is assigned an 'id'. For buttons it will something like 'push7'. All you need to do check the the 'id' to determine the action you want to take.
if(id=="push7")
{
//Do something
}
Chris12
Veteran Member
Posts: 150
New Poster
Congrats on posting!
1/17/2014 12:04 AM
Split
Thanks Robert ....
But how to a link the button to the function ....
It seems when I click the button (ie push 7) it does nothing
Terry P
New Member
Posts: 0
1/17/2014 12:32 AM
Split
With the button you're trying to use, click on the Properties for it. You'll see at the bottom "Action". When you open that, then typically you'll click the radio option for "Function". When you do that, all your custom functions are listed. Create a function you want to execute when the button is pushed.
Chris12
Veteran Member
Posts: 150
New Poster
Congrats on posting!
1/17/2014 12:38 PM
Split
Thanks all .... in my if statement I only had "=" and not "==" ....
Thanks so much
Please
login
to post a reply.