[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Truncation of NSStrings to EO width property



Hello,

NT 4 SP 4/WO 4

I've noticed some new behavior with WO 4, in that if you create an EO
that has an attribute with a width of, say, 500 specified in the
EOModel, and bind that attribute to a WOText, WO will bind a null value
to that attribute if the length of the text in the WOText is greater
than 500.

Is there a way to catch that "exception", somehow?  --so either the text
can be truncated, say, or an error page can be returned?  Before I
checked the length, and if it was greater than 500, I returned an error
page and had the user revise the WOText.  Now I can't see a way to tell
if something was entered with a length greater than a certain amount,
because if it's greater than what's specified in the EOModel, it's value
after binding is null.

Thanks,
Ian