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
Shruthi GM 4Shruthi GM 4 

How to display active licensed users on vf page using code in the multipicklist values.

Please help.



Thanks inadvance.
Best Answer chosen by Shruthi GM 4
Vijay NagarathinamVijay Nagarathinam
HI Shruthi,

Use the code you can display list active users in visualforce page.
 
<apex:page standardController="User" recordSetVar="records" id="thePage">
    <apex:form id="theForm">
        <apex:pageBlock id="thePageBlock">
            <apex:pageBlockTable value="{!records}" var="record" id="thePageBlockTable">
                <apex:column >
                    <apex:outputField value="{!record.Name}" />
                    <apex:facet name="header">Name</apex:facet>
                </apex:column>
                <apex:column >
                    <apex:outputField value="{!record.Email}"/>
                    <apex:facet name="header">Email</apex:facet>
                </apex:column>
                <apex:column >
                    <apex:outputField value="{!record.IsActive}" />
                    <apex:facet name="header">Active</apex:facet>
                </apex:column>
            </apex:pageBlockTable>
        </apex:pageBlock>
    </apex:form>
</apex:page>

Let me know if you need any help regarding this.

Thanks,
Vijay