6 Replies Latest reply: Feb 1, 2013 10:06 AM by Timo Hahn RSS

    Disabling button

    IQ
      Hello,
      I have to disable an Add button in one of my forms programatically based on the availibiliy of records, I am using the following function, it does not give any compilation errror.
      But the form does not load at run time. I am using MVC architecture , can someone please advise where I should place this code.

      Thanks
      fm




      if (((WebAccessInformationController)getFormView()).webAccessExists())
           {
                ((InternalFrameView) this.getFormView()).getAddButton().disableComponent();
                return;
           }{
                return;

           }