• Juncalgary
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies

Hi,

 

 

As s-control going to be taken over by visualforce pages, i tried to build some pages instead of s-controls. After had one listed there, how can i call my new page from the Account laying out page, as we do with the s-controls before?

There are "Fields" "S-controls" "Buttons"...., but has no a tag i can see my Page.

 

Please give me some hint?! thanks.

I am a Salesforce developer in Calgary AB. Any company need support/developing? Drop a message to me. Thanks

Hi, I am trying to push some data to the salesforce from my web site. Here is the testing code. However, when it runs, there is an error occured with the LOGIN line: "INVALID_LOGIN: Invalid username or password or locked out."

 

 

-------

<?php

    $USERNAME = "ABC@gmail.com";
    $PASSWORD = "password";

   
    define("SOAP_CLIENT_BASEDIR", "register-plus/salesforce_php");


    require_once (SOAP_CLIENT_BASEDIR.'/SforceEnterpriseClient.php');
    require_once (SOAP_CLIENT_BASEDIR.'/SforceHeaderOptions.php');
    require_once (SOAP_CLIENT_BASEDIR.'/userAuth.php');


    try {
        $mySforceConnection = new SforceEnterpriseClient();
        $mySoapClient =      $mySforceConnection->createConnection(SOAP_CLIENT_BASEDIR.'/enterprise.wsdl.xml');
   
        $mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
       
        $sObject = new stdclass();
        $sObject->FirstName = 'Smith';
        $sObject->LastName = 'John';
        $sObject->Phone = '510-555-5555';

        $createResponse = $mySforceConnection->create(array($sObject), 'Leads');

        $ids = array();
        foreach ($createResponse as $createResult) {
            print_r($createResult);
            array_push($ids, $createResult->id);
        }

        } catch (Exception $e) {
            echo $mySforceConnection->getLastRequest();
            echo $e->faultstring;
    }
?>

Hi,

 

 

As s-control going to be taken over by visualforce pages, i tried to build some pages instead of s-controls. After had one listed there, how can i call my new page from the Account laying out page, as we do with the s-controls before?

There are "Fields" "S-controls" "Buttons"...., but has no a tag i can see my Page.

 

Please give me some hint?! thanks.

Hi, 

 

Can anyone suggest a solution to overcome the error of "Too many script statements: 200001" in apex class.

 

I wanted to display the sum of resource amount in opportunity products for an Opportunity sorted by Account wise.

 

below is the sample code:

 

query resource amount from opportunity products sort by account name

 

put the opportunity inside SET to avoid duplicates (uniqoppid)

 

put the account id inside SET to avoid duplicates ( uniqaccid)

 

for(each unique account)

{

for(each unique opportunity)

{

for( sum resource amount from all opportunity products)

{

if(uniqoppid == opportunity in opportunity products && uniqaccid == opportunity product->opportunity->account id)

{

//code to display the resource amount

}

}

}

}

 

the above code in red line is the problem. It shows too many script statements: 200001

 

 

Message Edited by Shalini on 06-09-2009 06:03 AM

Hi, I am trying to push some data to the salesforce from my web site. Here is the testing code. However, when it runs, there is an error occured with the LOGIN line: "INVALID_LOGIN: Invalid username or password or locked out."

 

 

-------

<?php

    $USERNAME = "ABC@gmail.com";
    $PASSWORD = "password";

   
    define("SOAP_CLIENT_BASEDIR", "register-plus/salesforce_php");


    require_once (SOAP_CLIENT_BASEDIR.'/SforceEnterpriseClient.php');
    require_once (SOAP_CLIENT_BASEDIR.'/SforceHeaderOptions.php');
    require_once (SOAP_CLIENT_BASEDIR.'/userAuth.php');


    try {
        $mySforceConnection = new SforceEnterpriseClient();
        $mySoapClient =      $mySforceConnection->createConnection(SOAP_CLIENT_BASEDIR.'/enterprise.wsdl.xml');
   
        $mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);
       
        $sObject = new stdclass();
        $sObject->FirstName = 'Smith';
        $sObject->LastName = 'John';
        $sObject->Phone = '510-555-5555';

        $createResponse = $mySforceConnection->create(array($sObject), 'Leads');

        $ids = array();
        foreach ($createResponse as $createResult) {
            print_r($createResult);
            array_push($ids, $createResult->id);
        }

        } catch (Exception $e) {
            echo $mySforceConnection->getLastRequest();
            echo $e->faultstring;
    }
?>