• maceWindu
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 13
    Replies

if I do  a query such as this 

SELECT (SELECT Name FROM Opportunities) FROM Account in the IOS SDK ... I get a result of this:

Records (

        {

        Opportunities =         {

            done = 1;

            records =             (

                                {

                    Name = "GenePoint SLA";

                    attributes = {

                        type = Opportunity;

                        url = "/services/data/v23.0/sobjects/Opportunity/006A0000002E7YzIAK";

                    };

 

                },

                                {

                    Name = "GenePoint Lab Generators";

                    attributes =                     {

                        type = Opportunity;

                        url = "/services/data/v23.0/sobjects/Opportunity/006A0000002E7YyIAK";

                    };

                },

                                {

                    Name = "GenePoint Standby Generator";

                    attributes =                     {

                        type = Opportunity;

                        url = "/services/data/v23.0/sobjects/Opportunity/006A0000002E7YqIAK";

                    };

                }

            );

            totalSize = 3;

        };

        attributes =         {

            type = Account;

            url = "/services/data/v23.0/sobjects/Account/001A0000002SbaDIAS";

        };

    },

        {

        Opportunities =         {

            done = 1;

            records =             (

                                {

                    Name = "Test OPP";

                    attributes =                     {

                        type = Opportunity;

                        url = "/services/data/v23.0/sobjects/Opportunity/006G000000IgoBuIAJ";

                    };

                }

            );

            totalSize = 1;

        };

        attributes =         {

            type = Account;

            url = "/services/data/v23.0/sobjects/Account/001A0000002SbaEIAS";

        };

    },

 

It comes up blank but I'm not sure why.

 

The sample code has this : 

// Configure the cell to show the data.

NSDictionary *obj = [dataRows objectAtIndex:indexPath.row];

    cell.textLabel.text =  [obj objectForKey:@"Name"];

in cellForRowAtIndexPath method. I've google it a couple of hours and becasue it seems like its more of a IOS thing rather than salesforce. But maybe someone has tried to do this and solved the issue I'm having. 

 

 

 

When I create a new Native Force.com REST App in Xcode

 

And when I try to run the project in the iPad simulator I get this error, after doing all the oauth verification stuff. The programm just stops. Can anyone help figure out why its not working. I downloaded the Cloudtunes app and it works but creating your own sample app does not. 

 

WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> -[NSURL length]: unrecognized selector sent to instance 0x6c98e30


I've been trying to get to the Development part of chatter and I'm having trouble. I don't see anything that says Setup | Customize | Chatter | Feed Tracking in fact I noticed in my user profile that I'm a Chatter Dev Standard User I think this may have something to do with it can anyone help me?

I'm trying to access a custom lookup relationship field using SOQL and I was testing different queries in the FORCE IDE for Eclipse. I'm not getting the result I want and I wanted know how I can get SOQL to return the 

actual field value. 

 

SELECT custom_objectBLookup__r.CustomField__c

FROM 

custom_objectA__c

 

and I get this 

custom_objectB__c 

 

but instead I want to access the actual CustomField value 

 

"value"

 

Can someone please help me?? I'm trying to run the supposedly simple application in one of the flex tutorials only it DOES NOT WORK!!!!!! I TRIED EVERYTHING AND THE SALESFORCE DOCMENTATION IS 2247 PAGES LONG!!! HOW DO I GET STARTED WITH FLEX??? WHO DO I HAVE TO TALK TO???????? DOES ANYONE KNOW???

HERE IS THE CODE I'M TRYING TO RUN. I copied the toolkit SWC's  into my lib folder in the project in FLEX and this is the exact code that is in the tutorial that is floating around YOUTUBE??? SO WHY IN THE HELL DOES IT NOT WORK WHAT AM I MISSING????? 

 

 

 

 <?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:salesforce="http://www.salesforce.com/"
    applicationComplete="doLogin()">

    <mx:Script>
        <![CDATA[
            import com.salesforce.results.LoginResult;
            import com.salesforce.results.QueryResult;
            import com.salesforce.AsyncResponder;
            import com.salesforce.objects.LoginRequest;
            
            private function doLogin():void
            {
                var lr:LoginRequest = new LoginRequest();
                lr.username = "MY FREAKING USERNAME";
                lr.password = "MY FREAKING PASSWORD";
                lr.callback = new AsyncResponder(loginSuccess);
                force.login(lr);
            }    
            
            private function loginSuccess(result:LoginResult):void
            {
                force.query("SELECT Id, LastName FROM Contact", new AsyncResponder(querySuccess));
            }
            
            private function querySuccess(result:QueryResult):void
            {
                grid.dataProvider = result.records;
            }
        ]]>
    </mx:Script>
    
    <salesforce:Connection id="force"/>
    
    <mx:DataGrid id="grid" width="400" height="300"/>
    
</mx:Application>

if I do  a query such as this 

SELECT (SELECT Name FROM Opportunities) FROM Account in the IOS SDK ... I get a result of this:

Records (

        {

        Opportunities =         {

            done = 1;

            records =             (

                                {

                    Name = "GenePoint SLA";

                    attributes = {

                        type = Opportunity;

                        url = "/services/data/v23.0/sobjects/Opportunity/006A0000002E7YzIAK";

                    };

 

                },

                                {

                    Name = "GenePoint Lab Generators";

                    attributes =                     {

                        type = Opportunity;

                        url = "/services/data/v23.0/sobjects/Opportunity/006A0000002E7YyIAK";

                    };

                },

                                {

                    Name = "GenePoint Standby Generator";

                    attributes =                     {

                        type = Opportunity;

                        url = "/services/data/v23.0/sobjects/Opportunity/006A0000002E7YqIAK";

                    };

                }

            );

            totalSize = 3;

        };

        attributes =         {

            type = Account;

            url = "/services/data/v23.0/sobjects/Account/001A0000002SbaDIAS";

        };

    },

        {

        Opportunities =         {

            done = 1;

            records =             (

                                {

                    Name = "Test OPP";

                    attributes =                     {

                        type = Opportunity;

                        url = "/services/data/v23.0/sobjects/Opportunity/006G000000IgoBuIAJ";

                    };

                }

            );

            totalSize = 1;

        };

        attributes =         {

            type = Account;

            url = "/services/data/v23.0/sobjects/Account/001A0000002SbaEIAS";

        };

    },

 

It comes up blank but I'm not sure why.

 

The sample code has this : 

// Configure the cell to show the data.

NSDictionary *obj = [dataRows objectAtIndex:indexPath.row];

    cell.textLabel.text =  [obj objectForKey:@"Name"];

in cellForRowAtIndexPath method. I've google it a couple of hours and becasue it seems like its more of a IOS thing rather than salesforce. But maybe someone has tried to do this and solved the issue I'm having. 

 

 

 

When I create a new Native Force.com REST App in Xcode

 

And when I try to run the project in the iPad simulator I get this error, after doing all the oauth verification stuff. The programm just stops. Can anyone help figure out why its not working. I downloaded the Cloudtunes app and it works but creating your own sample app does not. 

 

WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> -[NSURL length]: unrecognized selector sent to instance 0x6c98e30


I'm trying to access a custom lookup relationship field using SOQL and I was testing different queries in the FORCE IDE for Eclipse. I'm not getting the result I want and I wanted know how I can get SOQL to return the 

actual field value. 

 

SELECT custom_objectBLookup__r.CustomField__c

FROM 

custom_objectA__c

 

and I get this 

custom_objectB__c 

 

but instead I want to access the actual CustomField value 

 

"value"

 

Can someone please help me?? I'm trying to run the supposedly simple application in one of the flex tutorials only it DOES NOT WORK!!!!!! I TRIED EVERYTHING AND THE SALESFORCE DOCMENTATION IS 2247 PAGES LONG!!! HOW DO I GET STARTED WITH FLEX??? WHO DO I HAVE TO TALK TO???????? DOES ANYONE KNOW???

HERE IS THE CODE I'M TRYING TO RUN. I copied the toolkit SWC's  into my lib folder in the project in FLEX and this is the exact code that is in the tutorial that is floating around YOUTUBE??? SO WHY IN THE HELL DOES IT NOT WORK WHAT AM I MISSING????? 

 

 

 

 <?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:salesforce="http://www.salesforce.com/"
    applicationComplete="doLogin()">

    <mx:Script>
        <![CDATA[
            import com.salesforce.results.LoginResult;
            import com.salesforce.results.QueryResult;
            import com.salesforce.AsyncResponder;
            import com.salesforce.objects.LoginRequest;
            
            private function doLogin():void
            {
                var lr:LoginRequest = new LoginRequest();
                lr.username = "MY FREAKING USERNAME";
                lr.password = "MY FREAKING PASSWORD";
                lr.callback = new AsyncResponder(loginSuccess);
                force.login(lr);
            }    
            
            private function loginSuccess(result:LoginResult):void
            {
                force.query("SELECT Id, LastName FROM Contact", new AsyncResponder(querySuccess));
            }
            
            private function querySuccess(result:QueryResult):void
            {
                grid.dataProvider = result.records;
            }
        ]]>
    </mx:Script>
    
    <salesforce:Connection id="force"/>
    
    <mx:DataGrid id="grid" width="400" height="300"/>
    
</mx:Application>