value vs rawValue

1,347 views
Skip to first unread message

Amal Elaine

unread,
May 2, 2009, 10:01:20 PM5/2/09
to Adobe LiveCycle Developers
So I've been parsing fields and changing values in field events to the max.  I often get burned because I did a "field.rawValue" when I should have done a "field.value", or vice versa.
 
Can someone help me understand the difference?  And when you would use ".value" vs ".rawValue"? 
 
Thanks in advance,
Sign me
"saturday-night-scripting-oh-goodness-my-life-could-use-a-jumpstart"
E
 

--
Amal Elaine Photography
http://www.pbase.com/amal007

Duane Nickull

unread,
May 2, 2009, 10:53:17 PM5/2/09
to live...@googlegroups.com
RawValue is the unformatted value. The type depends upon the type of
object. For example, objects that require a color value, this property
specifies a comma-separated list of values for each color
component of the color space in the form r,g,b.
Alternatively, the rawValue property of a field object is a string
representing the actual value displayed in the field, or the field¹s bound
value.

The value object encloses a single unit of data content. There is also a
formattedValue which is the formatted value of the object.

Duane


On 5/2/09 7:01 PM, "Amal Elaine" <amale...@gmail.com> wrote:

> So I've been parsing fields and changing values in field events to the max.  I
> often get burned because I did a "field.rawValue" when I should have done a
> "field.value", or vice versa.
>  
> Can someone help me understand the difference?  And when you would use
> ".value" vs ".rawValue"? 
>  
> Thanks in advance,
> Sign me
> "saturday-night-scripting-oh-goodness-my-life-could-use-a-jumpstart"
> E
>  

--
Sr. Technical Evangelist ­ Adobe Systems
Chair ­ OASIS SOA RM Technical Committee
Manager ­ Adobe LiveCycle ES Developers List
Blog: http://technoracle.blogspot.com
Twitter: duanechaos
TV Show: http://www.duanesworldtv.org
Band: http://www.myspace.com/22ndcentury

Reply all
Reply to author
Forward
0 new messages