on 05-28-2016 12:03 AM
Hello experts,
I wonder if anyone knows a way to apply a pre-formatting extended fields with mask, for example "Postal Code" in Brazil has the format "00000-000" then I wonder if it is possible and how it is possible to apply the mask "NNNNN -DDD ".
Can someone help ?
Thanks
Hi
You can write logic in your after modify, say you have a extend field in XBO with name PostalCode
in aftermodify of XBO write below logic
var temp = this.PostalCode.Substring(0,8); // postal code length is 8
var temp1 = temp.Substring(0,5);
var temp2 = temp.Substring(5,3);
var Masked = temp1 + "-" +temp2;
this.PostalCode = Masked;
Output:
enter value: 12345678
Masked Value: 12345-678
Regards
Sunil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.