Activity Forums Salesforce® Discussions How to render apex:outputPanel in Salesforce Visualforce page till count becomes 0?

  • Avnish Yadav

    Member
    August 2, 2018 at 7:55 am

    Hi Anjali,

    If you have count variable in your controller then you can simply show the output panel if the count is not 0 or greater than 0...
    Refer below code for the same..

    <apex:outputPanel rendered = "{! If(count >0,true, false )">

    Hope this will help you .

    Thanks.

  • Parul

    Member
    September 23, 2018 at 8:52 am

    Integer Count = [Select Count() from User where UserRole.Name =: 'Manager'];
    Count holds the integer count of no of users in the organisation.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos