You need to sign in to do that
Don't have an account?
Cris9931
i want to change in Queue Name
Hi, I want to change my column from 'Name' into 'Queue Name'. Is it possible?
my VF code
<apex:page controller="Search_For_User"> <apex:form style="width: 500px" > <apex:pageBlock tabStyle="Account" > <apex:inputText value="{!keyword}"/> <apex:commandButton value="Search" action="{!searchUser}"/> <Apex:pageblockTable value="{!results}" var="r" style="width: 450px"> <apex:column value="{!r.FirstName}" /> <apex:column value="{!r.LastName}" /> <apex:column value="{!r.ProfileId}"/> </Apex:pageblockTable> <Apex:pageblockTable value="{!groupMembers}" var="g" style="width: 200px"> <apex:column value="{!g.Group.Name}"/> </Apex:pageblockTable> </apex:pageBlock> </apex:form> </apex:page>
Greetings to you!
You can use the headerValue attribute of apex:column tag.
headerValue: The text that should be displayed in the column header. If you specify a value for this attribute, you cannot use the column's header facet. Note also that specifying a value for this attribute overrides the default header label that appears if you use an inputField or outputField in the column body.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_column.htm
Try below code:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
All Answers
Greetings to you!
You can use the headerValue attribute of apex:column tag.
headerValue: The text that should be displayed in the column header. If you specify a value for this attribute, you cannot use the column's header facet. Note also that specifying a value for this attribute overrides the default header label that appears if you use an inputField or outputField in the column body.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_column.htm
Try below code:
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas
Hi Khan,
Thanks, it works!
Can you help me with one more thing?
Can I combine those two pageblockTables to be just only one? I don't want to be a separate table for Queues. I'm not sure how to do that with 2 pageblockTable values !results and !groupmembers.
I want my table to look like this:
can you post your controller class code for this above visual force code?
Sure,