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
We got a recommendation by the employee who was responsible, but left in a career move. At the time, 18 months ago, he recommended this book:
"JavaScript by Example", by Ellie Quigley, Prentice-Hall, NJ, 2004, ISBN 0-13-140162-9 (paperback). List price on the back cover is $44.99.
I hope that this helps.
About the user exit: That's the correct approach for what you want to do.
The resource to use is the Application Development Workbench (ADW) Standards technical manual. The section on User Exits there is the 'official' guide.
The user exit that will do the job for you nicely is the "B" (Beginning) user exit, where you can check the condition that you are looking for and return an error condition.
I have attached the document that I made, which diagrams how User Exits work, in Word 2000 format. (This is my own work, it does not copy anything that came from Lawson Software.)