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
PriaviPriavi 

I try to write a spinner program?

I try to write a spinner program, at the time of spin display the names.
for eg: if you try to book the cab and send the request to the drivers, lets say 10 drivers are there, when the request is send in list of drivers, then at that time spinner is rotate and showing name of each driver, if one of them request is accepted them spinner is stop. 
eg: when rotate showing name xyz,abc etc.
i write this, which display only one name
Driver__c  n = [select Id,Driver_Name__c, from Provider__c where Case__c = :caseId or Account__c = :lcase.Requested__c limit 1];
        
return String.valueOf(n.Provider_Name__c);

Any suggetions please