You need to sign in to do that
Don't have an account?
Christian Juul Mikkelsen
Date field with value null shows date today
I have a visualforce page and a controller.
In the controller I have a list of objects of wrapper class with a salesforce object as a variable. If the there is data in the wrapper class but not in the salesforce object (it is null), then the visualforce page shows the date of the salesforce object as date today (note that the variable is null).
I tried using an if statement i the apex outputfield but it is not allowed. So I had to use a outputText instead and use TEXT(object.datefield) but then the date is not formated which is not ideal.
Have any of you tried this?
I have noticed that there has been a similar issue before: https://success.salesforce.com/issues_view?id=a1p30000000T4O2AAK
In the controller I have a list of objects of wrapper class with a salesforce object as a variable. If the there is data in the wrapper class but not in the salesforce object (it is null), then the visualforce page shows the date of the salesforce object as date today (note that the variable is null).
I tried using an if statement i the apex outputfield but it is not allowed. So I had to use a outputText instead and use TEXT(object.datefield) but then the date is not formated which is not ideal.
Have any of you tried this?
I have noticed that there has been a similar issue before: https://success.salesforce.com/issues_view?id=a1p30000000T4O2AAK
Thanks
the code that adds the subscription to the wrappper class: The visualforce page: