function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Himanshu GhateHimanshu Ghate 

conts=[Select Id,LastName,Email,Phone FROM Contact Where AccountId=:stdCtrl.getId()];

Can someone till, the meaning that ,What happing in this SOQL quiers:
Where AccountId=:stdCtrl.getId()];
Best Answer chosen by Himanshu Ghate
SwethaSwetha (Salesforce Developers) 
Hi Himanshu,
The bind variable ":stdCtrl.getId()" represents the value of the Account ID of the currently viewed record in the Visualforce page controller.

In other words, this filter criteria specifies that only Contacts that are associated with the current Account record being viewed will be returned in the query results.

If this information helps, please mark answer as best. Thank you

All Answers

SwethaSwetha (Salesforce Developers) 
Hi Himanshu,
The bind variable ":stdCtrl.getId()" represents the value of the Account ID of the currently viewed record in the Visualforce page controller.

In other words, this filter criteria specifies that only Contacts that are associated with the current Account record being viewed will be returned in the query results.

If this information helps, please mark answer as best. Thank you
This was selected as the best answer
Himanshu GhateHimanshu Ghate
Thank you so much.
CustomOpp=[Select id,Name,Contact__c,Contact__c.Email FROM CustomOpportunity__c WHERE Id=:Id];
What the meaning of this.
WHERE Id=:Id-->