You need to sign in to do that
Don't have an account?

Number format in apex class
I have text field - (Reg ID) which will get update as
Reg_ID__c=Sudent_Name__c++'-'+ Class_No__c
Class_No__c --- Number field
Now i want format to be;
Reg_Id__c = Eg 1: John-000001
Eg 2: Clark-000012
Eg 3: Tom-000013
How to for format number field before concatinating.
Im getting as john-1, clark-12, Tom-13,
try this...
There might be better ways to do this...but i have this one for now...
All Answers
try this...
There might be better ways to do this...but i have this one for now...
Thanks, will try it.
Its working fine.
Thanks