How to restrict length of an attribute - Part 2

In Continuation of my earlier post, for constraining the length of attribute, in this post i am explaining what other solution is available in out of the box Siebel application for this problem.
Attribute selected is an event which gets triggered before any attribute's value is updated, this events sends the information of the attribute and the value as property set argument.
XML representation of property set would look something like :
*from bookshelf

Now if this property set is available as argument then i think writing script to constrain its value is not a big task.

I have created this snippet, it worked in my case hope it works for others also.

function Cfg_AttributeSelected (SelectedAttribute)
 var temp = SelectedAttribute.GetChild(0);
 var sStr =  temp.GetProperty("NewVal");

Other Siebel Blogs

siebel-admin-l @ IT - toolbox

siebel-dev-l @ IT - toolbox