• Sarim Alavi
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies

hi whenever i am using field set in my visualforce page i am getting ErrorError: Expression of type Text cannot be subscripted.

this is the code

 

 

 

<apex:repeat value="{!$ObjectType.Hotel_Reservation__c.FieldSets.ReservationCheck}" var="f">
                <apex:outputField value="{!selectedContact[f]}"/>
            </apex:repeat>


hi
i am stuck at very basic thing

if i am writing any query related to count i get null in count field

for example
select leadsource, count(id) Ce  from lead group by leadsource

returns
Leadsource    Ce
web                   ----
Phone               ---


where it should retrun count number

same with any other query

select Count(id) from account

or

SELECT COUNT(Id), COUNT(CampaignId)
FROM Opportunity

all blank no count numbers
please help