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
Any books on using javascript in design studio?
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Zac Shields
Past 24 Hours:
0
Prev. 24 Hours:
2
Overall:
5210
People Online:
Visitors:
449
Members:
0
Total:
449
Online Now:
New Topics
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson S3 HR/Payroll/Benefits
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
Lawson S3 Procurement
RQ13 Approval Info
10/17/2024 2:12 PM
When a Requisition is approved on RQ13, what table
S3 Customization/Development
Read and Write CSV file COBOL
10/9/2024 2:53 PM
Does anyone have a quik example of a program that
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1372
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
User Experience
Lawson Design Studio
Any books on using javascript in design studio?
Please
login
to post a reply.
3 Replies
0
Subscribed to this topic
12 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
KEVIN POINDEXTER
New Member
Posts: 3
6/23/2006 1:07 PM
Anyone know of any resources on coding JavaScript in design studio? Found Lawson resources lacking, I am a cobol programmer needing to learn JavaScript, need to code some edits, we have created our own system code and have copied and modified Lawson programs with our own edits, easy to do but not a good idea, need to use JavaScript for edits like; use line item fields as the key for a DME call to check a value in a field in the retrieved record before a change or add, check the first two digits of the activity field against the first two digits of the accounting unit, etc., playing with
function FORM_OnBeforeTransaction(val)
if (val == "A" || val == "C") but I not sure how to loop through all the detail lines, would a beginner JavaScript book be helpful? have not had any luck getting user exits to work, again Lawson resources lacking on the subject, had an answerthink consultant tell us he has never got them to work, would like to revisit user exits some day if I can find more info on them, thanks for any info on some good resources
John Henley
Posts: 3353
6/23/2006 3:57 PM
Kevin, I have taught a number of sessions and worked with several clients on both COBOL/user exit development as well Design Studio JavaScript.
My first bit of advice would be to revisit the idea of using Design Studio to implement these edits, the reason is two-fold:
1) the edits will only be applied when the user interacts with the form via Design Studio. If the form is accessed via ProcessFlow AGS, Excel addins, etc., the edit WILL NOT be done. If your intention is to enforce business rules, I would ALWAYS recommend coding them in COBOL user exits.
2) the second reason is more a pet peeve of mine, so allow me to step on my soapbox. Each time Lawson has taken a new direction for the presentation layer of its products--and we've been thru several (OCS/Javascript, COM+, Design Studio), etc--they have provided NO MIGRATION PATH. Therefore, by coding these in Design Studio JavaScript, EXPECT THAT ANY INVESTMENT YOU MAKE MAY BE LOST. If you made them in COBOL/user exits, they would have survived each change in the presentation layer...
Now, with that in mind, if you do decide to stick with Design Studio, you're going in the right direction...any edits should be made in OnBeforeTransaction. A lot of people (and Lawson's documentation) incorrectly point you to onBlur or onChange...which is a stupid way to do it.
For a starting point, I would recommend the latest O'Reilly book on JavaScript. Most of the knowledge I have picked up has been via other examples relevant to Lawson from various CUE sessions and the Lawson KB.
As for the number of detail lines, you did have to hard code the number of lines, but I think there is now a property (not sure which version it became available) that you can get that from....
for (var nRow=0; nRow < 3; nRow++)
{
// clear the value on the form
lawForm.setFormValue("text_reference","",nRow);
}
KEVIN POINDEXTER
New Member
Posts: 3
6/23/2006 5:43 PM
John,
Thank you so much for the reply. I will definitely take another look at user exits. The problem is when one or our developers tried to create a user exit, he could not get it to work and the Lawson documentation was lacking in detail. Then a consultant told us he has never be able to get them to work, so we gave up on the idea. Based on your recommendation, I will take a crack at user exits. Any recommendations on user exit resources? Also, the company I work for would consider bringing in a consultant whose brain we could pick for a few days. Let me know if you have a referral for an expert in design studio, user exits and process flow. We are getting ready to start developing our first process flow. We are near Tampa and a local consultant would be a plus but not a requirement.
Thanks,
Kevin
emorahan
New Member
Posts: 2
8/8/2006 4:49 PM
Kevin,
Not sure if you got this issue resolved yet, but simple user exits are pretty easy to create, what exactly was the problem that your developer encountered when creating one. One thing would be to make sure you created the usrobj folder under $LAWDIR/productline/.
Please
login
to post a reply.