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
Andrew RomanovAndrew Romanov 

Opportunity Owner Name

The problem is that the same name is issued many times in a row, how to make it appear only once?

Apex Controller:

public List<Opportunity> opportunity{get;set;}

opportunity = [SELECT id ,name,owner.Name,ownerid
from opportunity];

VF:

<apex:repeat value="{!opportunity}" var="op">
                            <div>
                                {!op.owner.Name}
                            </div>

PriyaPriya (Salesforce Developers) 

Hi Andrew,

Have you checked that the owner name for those records are different?

Regards,

Priya Ranjan

Andrew RomanovAndrew Romanov
Yes, I know they are no different. And what to do in this case?