• 0 Points
  • Member since 2009

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
  • 0

I need to access the data types of the fields in an object in order to identify each phone, fax, email, and mail field in an object. I've done this from web services with the DescribeSObject call but the Apex DescribeFieldResult.getType method only return the display typeof the field, not the actual data type. For example, fields that display a Data Type of Fax like in the image below have a display type of Phone according the getType call. I need something that returns fax for fax fields, mail for mail fields, etc. like the DescribeSObject web service call. Does that exist in Apex?


Field Information

  • January 05, 2010
  • Like
  • 0

I'd like to pass an Apex class that I've defined as a public inner class to a Visualforce component. When I try to save the component, I get these errors:


Error: Unsupported type SimpleOuter.SimpleInner[] encountered.

Error: Apex class 'simpleouter.simpleinner' does not exist.


Here's my sample code:



public with sharing class SimpleOuter {
public class SimpleInner {
public String one;
public String two;

<apex:attribute name="phoneStatuses" type="SimpleOuter.SimpleInner[]" required="true"
description="The phone numbers and statuses to display." />


 Any ideas?


  • September 18, 2009
  • Like
  • 0