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:
Chris Radcliffe
Past 24 Hours:
0
Prev. 24 Hours:
1
Overall:
5187
People Online:
Visitors:
501
Members:
0
Total:
501
Online Now:
New Topics
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
Lawson Business Intelligence/Reporting/Crystal
Domain Name Change
3/5/2024 7:45 PM
Our domain name needs to change and was hoping I c
S3 Customization/Development
Cobol calling Shell Script
2/29/2024 1:27 PM
Has anyone created or modified a Lawson Cobol prog
Infor ION
ION vs IPA
2/29/2024 1:24 AM
We had a person new to Lawson and Infor go to Info
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1348
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Lawson Design Studio
Any books on using javascript in design studio?
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
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
Senior Member
Posts: 3348
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/.
You are not authorized to post a reply.