You need to sign in to do that
Don't have an account?
Anil Chundu
Opportunity name with date is populating wierd month value
Hi
I have a problem with opportunities creation that when i click on new opportunity(Overridden with Javascript), opportunity name starts with date will be showing wierd. My logic for new opportunity is
//String for the Date String nameDateFormat = 'yyyy/mm/dd'; //Create the Opportunity Name 'Created Date - Organisation Name - Contact Name' String oppName = Datetime.now().format(nameDateFormat) + ' - ' + con.Account.Name + ' - ' + con.Name;
Opportunity name is populating for example 2015/38/31 - JNTU University - David
when i cancel and click on new opportunity that Month 38 got increased to some 40 like that.
I don't know how solve this issue.
is this becuase of any time settings for a particular users?
Please help me on this asap.
Thanks in advance
Anil.
I have a problem with opportunities creation that when i click on new opportunity(Overridden with Javascript), opportunity name starts with date will be showing wierd. My logic for new opportunity is
//String for the Date String nameDateFormat = 'yyyy/mm/dd'; //Create the Opportunity Name 'Created Date - Organisation Name - Contact Name' String oppName = Datetime.now().format(nameDateFormat) + ' - ' + con.Account.Name + ' - ' + con.Name;
Opportunity name is populating for example 2015/38/31 - JNTU University - David
when i cancel and click on new opportunity that Month 38 got increased to some 40 like that.
I don't know how solve this issue.
is this becuase of any time settings for a particular users?
Please help me on this asap.
Thanks in advance
Anil.
Let me know know if works for you.
when i copy paste this piece of code it showing in my question without spaces + ' - ' + con.Account.Name + ' - ' + con.Name;
It is working for other profile users, not working for a particular a other profile user.
Hope you got it..
Thank you