Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

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

Revelation Software, Inc.


At 23 APR 2012 11:33AM jackie jones wrote:

  • third_party_content/community/commentary/forums_works/f019721e00044895b866ebb00.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1