• QuinnCushing
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Hi,

 

I need to display  text  'No Records' or  put a button on visualforce page.

 

VF Page:

--------------

<apex:page controller="TestController">

 

<table border="0" width="100%" height="20">
  <tr>

     if({!count}<0)

         <h3> No Records</h3>

     else

     {

       <td>
         <input id="callintent_button" type="button" align="left" value = "More >>" onclick="enablerestoreCallIntent();"/>
        </td>

     }

  </tr>
</table>

</apex:page>

 

Controller:

---------------

 

public class TestController

{

   public integer count;

 

   public integer getCount()

   {

      return count;

   }

 

   public void setCount(integer value)

   {

        this.count=value;

   }

 

}

 

 

Should i use any apex command to check the condition. How can i do that. 

 

Thanks.