This is another feature I would pay 25 cents for;
The ability to call a JS function and use the result most anywhere... For example;
I have phone #'s all over my applications, in a bunch of BOs and I will allow users to edit the phone number in any format, BUT if they enter exactaly 10 digits, then I want to format the string as (XXX) XXX-XXXX, so I have code like
IF Customers.phone WAS CHANGED AND LENGTH(Customers.phone) = 10 THEN
Customers.phone = '(' + SUBSTRING(Customers.phone,0,3) + ') ' + SUBSTRING(Customers.phone,3,6) + '-' + SUBSTRING(Customers.phone,6,10)
In about a zillion rules. It would be nice to instead have a rule line: Customers.phone = JSFormatPhone(Customers.phone)
Or, when I am displaying info on a grid, so many times, I would like to take 2 fields, concatenate them , etc. etc. And, yes, I can create additional attributes in my BO, but would be nice in the grid to say JSMyFormat(BO.attribute)
Now, I know you can call JS from Aware, I just have not seen any detailed examples, and while I am not from Missiouri (the SHOW ME state), I would like someone to show me.
Bruce
Sorry for the bad typing, but its late and I am tired...