• chris38
  • NEWBIE
  • 5 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
Hi,
I meet a new problem.

A custom object has been created in salesforce to call a survey.

In salesforce, a click on the survey link opens a new window where the survey appears. When the survey is finished, i wish to close the survey window and refresh the parent salesforce page.

I know to close the survey window (javascript) but i don't know how to refresh the parent page.

if i create a html page from an other, i know how to close child page and refresh the parent.
But it seems that it's different with salesforce.

Any ideas ?

Thanks,
chris
I want to select some records in a table and then modify them.
The execution failed when i try to update(Id not specified).
I don't really understand how to specify TheId for updating.
Thanks for help !

Hereafter my code :
// select some records
$query = "select * from contact where LastName like 'R%'";
$queryOptions = new QueryOptions(300);
$queryResponse = $this->mySforceConnection->query($query, $queryOptions);
$this->assertNotNull($queryResponse);
// update the field FirstName to 'Barbara'
$updateFields = array ("ID" => $this->theId, "FirstName" => 'Barbara');
$updateResponse = $this->mySforceConnection->update('Contact', $updateFields);

chris
I want to select some records in a table and then modify them.
The execution failed when i try to update(Id not specified).
I don't really understand how to specify TheId for updating.
Thanks for help !

Hereafter my code :
// select some records
$query = "select * from contact where LastName like 'R%'";
$queryOptions = new QueryOptions(300);
$queryResponse = $this->mySforceConnection->query($query, $queryOptions);
$this->assertNotNull($queryResponse);
// update the field FirstName to 'Barbara'
$updateFields = array ("ID" => $this->theId, "FirstName" => 'Barbara');
$updateResponse = $this->mySforceConnection->update('Contact', $updateFields);

chris