+ 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