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
Problem with lawForm.getFormValue with textarea
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:
1
Prev. 24 Hours:
0
Overall:
5187
People Online:
Visitors:
172
Members:
0
Total:
172
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
Problem with lawForm.getFormValue with textarea
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
Matt
Basic Member
Posts: 13
7/30/2007 7:34 PM
I am using a textarea in a Custom Portal form. When I type something in a blank textarea and blur out of it the lawForm.getFormValue is accurate. But if go to that field again and select some text in the middle of it and put new text in and blur out of it, the lawForm.getFormValue is not accurate. I need some help quick because I implemented some forms with textareas in production and I have shut it down because of this problem.
Example: Textarea is blank
I type "test" in it, TEXTAREA_onBlur is "test"
I go back to the field and select the "es" and type "or", TEXTAREA_onBlur is "tor". I'm expecting "tort"
John Henley
Senior Member
Posts: 3348
7/31/2007 12:53 AM
Matt, I've never been a big fan of OnBlur--for exactly the reason you specify--I just don't trust its reliability. I don't know if it's Design Studio or Portal that's at fault or not, but sometimes OnBlur just doesn't fire. The other thing I don't like about OnBlur is this: what if a user doesn't "visit" the field, and you're depending on them doing so by coding something in OnBlur?
Maybe it's just a bias of mine, since I really learned event-driven programming with Visual Basic, which also had similar quirks. The bottom line for me, and the advice I give to others is this: if you're trying to do any type of validation/edits, further processing, etc. do it in FORM_OnBeforeTransaction. If you're trying to do field defaulting based on another field, do it in OnFocus in the target field.
Matt
Basic Member
Posts: 13
7/31/2007 12:17 PM
John,
My problem is not with the onBlur. It is with the getFormValue on the textarea after I edit the data on the form like in my example. I would love to show you my example if you have some time. 804-219-1269
Matt
John Henley
Senior Member
Posts: 3348
7/31/2007 2:03 PM
What version of Design Studio are you using?
Matt
Basic Member
Posts: 13
7/31/2007 2:15 PM
3.1.7
John Henley
Senior Member
Posts: 3348
7/31/2007 4:41 PM
Matt, going back to your example....
Example: Textarea is blank
Type "test" in it, TEXTAREA_onBlur is "test"
Go back to the field and select the "es" --THEN DELETE IT-- and THEN type "or", TEXTAREA_onBlur is ???
Matt
Basic Member
Posts: 13
7/31/2007 5:36 PM
It says "tor"
John Henley
Senior Member
Posts: 3348
7/31/2007 7:18 PM
Interesting. I'd go to Lawson support on that one. My guess is that the buffer for the field is being overrun when you do the textual insert or something.
One workaround you can try is to use .getFormElement instead of getFormValue and see if that works...
lawForm.getFormElement("textxx").value
Matt
Basic Member
Posts: 13
7/31/2007 8:19 PM
That looks like that it works. The overrun also happens on setFormValue also.
You are not authorized to post a reply.