• Thenmozhi
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 5
    Replies
Hi,I have a plan to write ADM 201 .Any pattern changer for ADM 201 after Sep 14 2015 ?
i am trying to get records from contact table here, i got id vales ,but i didn't get Name,Firstname values got some error like

Notice: Undefined property: stdClass::$Contact in E:\xampp\htdocs\php-toolkit\user_login_session\getRecors.php on line 54
Notice: Trying to get property of non-object in E:\xampp\htdocs\php-toolkit\user_login_session\getRecors.php on line 54


$query = "SELECT Id,Name,FirstName from Contact ";
$response = $mySforceConnection->query($query);

foreach ($response->records as $record)
{

echo '<tr><td>'.$record->Id[0].'</td> (its working)

<td>'.$record->fields->Name.'</td></tr>'; (here my error)
    
 }

 
Here my Webservice code :
                     
                            Authentication authentication = new Authentication();
                            authentication.Username = "aaa";
                            authentication.Password = "bbb";
                            authentication.Domain = "http://my-pc:myport/tfs";
                            authentication.ServerURL = "http://localhost:myport/tfs";
                            WorkItem newBug = new WorkItem(DevelopmentProject(authentication).WorkItemTypes["Bug"]);
                            newBug.Fields["Title"].Value = "Attchments";
                            newBug.Attachments.Add(new Microsoft.TeamFoundation.WorkItemTracking.Client.Attachment("C:\\Users\\estsys\\Desktop\\test\\test.txt", "TextFile"", "TextFile"));
newBug.Save();   


above code is working ..... but, how can i use salesforce attachment path in the above code.......
i am trying to get records from contact table here, i got id vales ,but i didn't get Name,Firstname values got some error like

Notice: Undefined property: stdClass::$Contact in E:\xampp\htdocs\php-toolkit\user_login_session\getRecors.php on line 54
Notice: Trying to get property of non-object in E:\xampp\htdocs\php-toolkit\user_login_session\getRecors.php on line 54


$query = "SELECT Id,Name,FirstName from Contact ";
$response = $mySforceConnection->query($query);

foreach ($response->records as $record)
{

echo '<tr><td>'.$record->Id[0].'</td> (its working)

<td>'.$record->fields->Name.'</td></tr>'; (here my error)
    
 }

 

i am getting this error,

 

Time Limit Exceeded

Your request exceeded the time limit for processing

 

There is a visulforce page(as PDF) which is called from other VF page, on clicking a button.

The error comes occasionally, when the button is clicked.

 

need help urgently.

Hi..,

 

I have variable in my contoller it is Double Data type variable which will have values like 56.789.

I want to round-off these values using javascript and display this variable value on my visualforce page.For this  I can use toFixed or toPrecision function available in Javascript.

 

Can anyone please suggest how to pass this controller variable value to the javascript function and display the truncated value on Visualforce page.

 

 

Thanks

Srilakshmi B