• Christian Juul Mikkelsen
  • NEWBIE
  • 5 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
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
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

How can I determine the URL of a static resource from my Apex code?

 

I'm looking for the equivalent of the VisualForce $Resource variable, but one that I can use from with Apex code.

 

Thanks!

  • February 28, 2009
  • Like
  • 0