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 Smart Office
Field Personalization on CB20
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:
0
Prev. 24 Hours:
0
Overall:
4988
People Online:
Visitors:
54
Members:
0
Total:
54
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 Smart Office
Field Personalization on CB20
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
Jackie H
Basic Member
Posts: 12
2/25/2016 5:41 PM
We've been having issues with spaces being entered either at the beginning or the end of the CBT-TRANS-NBR when manually input. The field size is up to 10 alpha characters. We've requested users enter 10 characters to eliminate this issue, but they get creative and the addition of spaces causes an issue with locating the transaction later. Is there a way to personalize the field on the form to require exactly 10 characters be entered?
Vince
Veteran Member
Posts: 37
2/25/2016 7:20 PM
Split
What you need to accomplish this is to attach some script to the form.
Below is JScript for Smart Office. Portal/Design Studio would also support this, but with different script.
[CODE] public function OnBeforeTransaction(sender: Object, e: CancelTransactionEventArgs) { if (e.FunctionCode != "A" && e.FunctionCode != "C") return; var transFld = "CBT-TRANS-NBR" var transNbr = form.GetElementValue(transFld); if (String.IsNullOrEmpty(transNbr) || transNbr.Length < 10 || transNbr.Contains(" ")) { ConfirmDialog.ShowAttentionDialog("Bank Transaction Entry", // import Mango.UI "Please enter 10 non-blank characters for Transaction Number", null) var textBox: TextBox = form.GetElement(transFld); textBox.Focus(); e.Cancel = true; } } [CODE]
Vince
Veteran Member
Posts: 37
2/25/2016 8:05 PM
Split
Jackie H
Basic Member
Posts: 12
2/26/2016 2:09 PM
Split
Thanks - we will give that a try.
Please
login
to post a reply.