• RogerHand
  • NEWBIE
  • 5 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 10
    Replies
The sample app salesforce.mxml compiled fine the last time I tried it (in Beta 2), but in R3.2 there is now functionality in it that won't compile for me:
 
     [java] C:\Java\Flex\SalesforceFlexToolkit_R3.2\salesforce.mxml(453):  Error
: Type was not found or was not a compile-time constant: LeadLookup.
     [java]             var ll:LeadLookup = PopUpManager.createPopUp(this, LeadLookup, true) as LeadLookup;
I am using Flex toolkit version R3.1 and am never seeing anything in the describeSObjectResult.fields property for either a native or custom object. Other properties show up fine but the fields property, while not null, always has a length of 0.
 
Also, the ObjectUtil.toString() utility function shows the fields.
 
Code:
private function describeSObjectsSample():void {
  
  apex.describeSObjects(["Contact", "KAILEA__change__c"], 
      new AsyncResponder(describeSObjects2, genericFault));
}
    
private function describeSObjects2(describeSObjectResults:Array):void {
  for (var i:int=0; i<describeSObjectResults.length; i++) {
    describeSObject2(describeSObjectResults[i]);
  }
}    
          
private function describeSObject2(describeSObjectResult:DescribeSObjectResult):void {
  var objectName:String = describeSObjectResult.name;

  Alert.show("Object name: " + objectName
    + ", createable: " + describeSObjectResult.createable
    + ", queryable: " + describeSObjectResult.queryable
    + ", updateable: " + describeSObjectResult.updateable
    + ", custom: " + describeSObjectResult.custom
    );

  Alert.show("toString(): " + ObjectUtil.toString(describeSObjectResult));

    var fields:Array = describeSObjectResult.fields;
    Alert.show("describeSObject2() have fields? " + (fields != null));
    Alert.show("describeSObject2() fields.length: " + fields.length);
    for (var f:int=0; f<fields.length; f++) {
      var field:Field = fields[f];
      Alert.show("field: " + field.name);
    } // next field
}

 
Thanks in advance for any help!
 
-Roger
I am using Flex toolkit version R3.1 and am never seeing anything in the describeSObjectResult.fields property for either a native or custom object. Other properties show up fine but the fields property, while not null, always has a length of 0.
 
Also, the ObjectUtil.toString() utility function shows the fields.
 
Code:
private function describeSObjectsSample():void {
  
  apex.describeSObjects(["Contact", "KAILEA__change__c"], 
      new AsyncResponder(describeSObjects2, genericFault));
}
    
private function describeSObjects2(describeSObjectResults:Array):void {
  for (var i:int=0; i<describeSObjectResults.length; i++) {
    describeSObject2(describeSObjectResults[i]);
  }
}    
          
private function describeSObject2(describeSObjectResult:DescribeSObjectResult):void {
  var objectName:String = describeSObjectResult.name;

  Alert.show("Object name: " + objectName
    + ", createable: " + describeSObjectResult.createable
    + ", queryable: " + describeSObjectResult.queryable
    + ", updateable: " + describeSObjectResult.updateable
    + ", custom: " + describeSObjectResult.custom
    );

  Alert.show("toString(): " + ObjectUtil.toString(describeSObjectResult));

    var fields:Array = describeSObjectResult.fields;
    Alert.show("describeSObject2() have fields? " + (fields != null));
    Alert.show("describeSObject2() fields.length: " + fields.length);
    for (var f:int=0; f<fields.length; f++) {
      var field:Field = fields[f];
      Alert.show("field: " + field.name);
    } // next field
}

 
Thanks in advance for any help!
 
-Roger
The sample app salesforce.mxml compiled fine the last time I tried it (in Beta 2), but in R3.2 there is now functionality in it that won't compile for me:
 
     [java] C:\Java\Flex\SalesforceFlexToolkit_R3.2\salesforce.mxml(453):  Error
: Type was not found or was not a compile-time constant: LeadLookup.
     [java]             var ll:LeadLookup = PopUpManager.createPopUp(this, LeadLookup, true) as LeadLookup;
Allow me to vent for a moment ... I need to hook up my eclipse install with my Salesforce s-controls again, because I had to reinstall.
 
I search around. Finally I locate the instructions (or what I think will be the instructions), but they are now on the ADN wiki - password protected. I am asked to log in (and why must I log into different sites with my salesforce login and password. This doesn't feel secure). I gives an error when I try to log in:
 
Database errorA database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
(SQL query hidden)
from within function "User::addToDatabase". MySQL returned error "1062: Duplicate entry 'System Admin (Again Again)' for key 2 (localhost)".
 
I cannot register with another account because it already has my email address registered.
 
Deadline or no deadline, I can't seem to get to this information. Why is the eclipse install instructions hidden in a password protected area? Why must I compromise my org's salesforce login? Why (sob, sob, sob) is such a simple task so very very frustrating??
I am using Flex toolkit version R3.1 and am never seeing anything in the describeSObjectResult.fields property for either a native or custom object. Other properties show up fine but the fields property, while not null, always has a length of 0.
 
Also, the ObjectUtil.toString() utility function shows the fields.
 
Code:
private function describeSObjectsSample():void {
  
  apex.describeSObjects(["Contact", "KAILEA__change__c"], 
      new AsyncResponder(describeSObjects2, genericFault));
}
    
private function describeSObjects2(describeSObjectResults:Array):void {
  for (var i:int=0; i<describeSObjectResults.length; i++) {
    describeSObject2(describeSObjectResults[i]);
  }
}    
          
private function describeSObject2(describeSObjectResult:DescribeSObjectResult):void {
  var objectName:String = describeSObjectResult.name;

  Alert.show("Object name: " + objectName
    + ", createable: " + describeSObjectResult.createable
    + ", queryable: " + describeSObjectResult.queryable
    + ", updateable: " + describeSObjectResult.updateable
    + ", custom: " + describeSObjectResult.custom
    );

  Alert.show("toString(): " + ObjectUtil.toString(describeSObjectResult));

    var fields:Array = describeSObjectResult.fields;
    Alert.show("describeSObject2() have fields? " + (fields != null));
    Alert.show("describeSObject2() fields.length: " + fields.length);
    for (var f:int=0; f<fields.length; f++) {
      var field:Field = fields[f];
      Alert.show("field: " + field.name);
    } // next field
}

 
Thanks in advance for any help!
 
-Roger
Hello all here´s a newbie question :smileyhappy: ..., can anyone give me an example of how to get the values from a picklist using Flex Biulder 2?
 
thnx in advance!
 
I am trying to update Parent Case through an S-Control.  The field does not appear to be visible in the "Case" object, and I have looked through other objects in Apex Explorer and cant find it.  Has anyone found a way to populate this field through code? If so, what is the fields name and what object is it stored in?
 
Thanks.
When creating a custom tab with a custom object, I can add attachments to that custom object. However, the Sforce documentation appears not to support that same functionality. Is that true?

Thanks.
-- Mark