O4WUpdate for Textarea (O4W)
At 21 APR 2012 05:03:04PM jackie jones wrote:
O4WUpdate works for Textbox but not for Textarea.
UNIT field is textbox
DESC field is a textarea
O4WTextbox("","","","UNIT","UNIT")
O4WTextarea("","","","DESC","DESC")
UNITDATA='EA'
DESCDATA='This is the description'
O4WUpdate("UNIT,UNITDATA,textReplace)
O4WUpdate("DESC",DESCDATA,textReplace)
Can anyone see whats wrong?
Thanks!
At 21 APR 2012 10:09PM bshumsky wrote:
O4WUpdate works for Textbox but not for Textarea.
UNIT field is textbox
DESC field is a textarea
O4WTextbox("","","","UNIT","UNIT")
O4WTextarea("","","","DESC","DESC")
UNITDATA='EA'
DESCDATA='This is the description'
O4WUpdate("UNIT,UNITDATA,textReplace)
O4WUpdate("DESC",DESCDATA,textReplace)
Can anyone see whats wrong?
Thanks!
Hi, Jackie. The O4WTextArea call has different parameters than the O4WTextbox call:
O4WTextBox(Text, size, maxlen, name, ID, StyleInfo)
O4WTextArea(Text, width, height, wrap, name, ID, StyleInfo)
When you created the DESC text area, I'm assuming you meant to name it and give it the ID of DESC, but you're off by one parameter, so it doesn't have an ID. Since there is no ID, it can't be changed by O4WUpdate.
If you changed your call to this:
O4WTextarea("","","","", "DESC","DESC")
(which has an extra set of quotes, forcing the text area to use the default value for "wrap") I think you'll find it works.
Hope that helps,
- Bryan Shumsky
At 23 APR 2012 11:33AM jackie jones wrote:
Ok Thanks!