• Sebi
  • NEWBIE
  • 25 Points
  • Member since 2009

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies

Iam trying to render a document as pdf , & created a VF page but when its displaying data on the page its showing date with the time

"Tue Apr 13 00:00:00 GMT 2010"  in this format where as i want it to display just the date . how do i do it 


 

 

  • April 14, 2010
  • Like
  • 0

Is there a way to have custom buttons only appear, or even be disabled, if certain criteria is not met? For example, if Widget__c is blank or missing in an object, do not show or disable a custom button named 'Transform Widget'?

 

Any help is greatly appreciated.

  • April 14, 2010
  • Like
  • 0

Is it possible to call methods dynamically?  Something similar to call_user_func() for PHP, or even eval() for all I care at this point.

 

Any suggestions?

  • October 16, 2009
  • Like
  • 0

Is there a way to have custom buttons only appear, or even be disabled, if certain criteria is not met? For example, if Widget__c is blank or missing in an object, do not show or disable a custom button named 'Transform Widget'?

 

Any help is greatly appreciated.

  • April 14, 2010
  • Like
  • 0

Iam trying to render a document as pdf , & created a VF page but when its displaying data on the page its showing date with the time

"Tue Apr 13 00:00:00 GMT 2010"  in this format where as i want it to display just the date . how do i do it 


 

 

  • April 14, 2010
  • Like
  • 0

Is it possible to iterate over a List of Maps? In the simplest form, a Map<String,String>... I want to be able to do the following in a visual force page (simplified):

 

VisualForce Page

<apex:repeat value="{!customMap}" var="map">
{!map.name} : {!map.custom}

</apex:repeat>

 

Controller

 

public someController
{
public List<Map<String,String>> customMap = null;

public getCustomMap()
{
if (customMap == null)
{
customMap = new List<Map<String,String>>();

customMap.add(new Map<String,String>{
'name' => 'Apple',
'custom' => 'Pie'
});

customMap.add(new Map<String,String>{
'name' => 'Banana',
'custom' => 'Cake'
});
}
return customMap;
}
}

 

 Would hopefully print something like...

 

 

Apple : Pie
Banana : Cake

 

 This is obviously not working for me, any suggestions or is this not possible right now?

 

 

 

Is it possible to call methods dynamically?  Something similar to call_user_func() for PHP, or even eval() for all I care at this point.

 

Any suggestions?

  • October 16, 2009
  • Like
  • 0