6 Replies Latest reply on Feb 1, 2013 4:06 PM by Timo Hahn

    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;

           }