Skip to Content
avatar image
Former Member

How to Disable message area

Hi ,

I have a message area and i had linked the "Enable" property of the message area to the context attribute , even if i set the Contex attribute to TRUE the message is still disabled , can some one explain me how to disable message area by linking to the context attribute.

Regards,

Ravi.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 08, 2007 at 12:11 PM

    Hi,

    We do not have any control to delete messages that are raised/reported using IWDMessageManager.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI Shriram,

      Let me explain my problem . I have two tabs in my tab strip control and each tab has its own message area , but the problem is when 2nd tab is selected and if i raise some exception is doesnt show in the message area of the 2nd tab as it is taking the first tab message area as default , so i had put the following logic in the modifyview.

      <b>if(selectedTab.equals("Tab1"))

      {

      IWDMessageArea Tab2MsgArea =(IWDMessageArea) view.getElement("Tab1MessageArea");

      Tab2MsgArea.setEnabled(false);

      IWDMessageArea Tab1MsgArea =(IWDMessageArea) view.getElement("Tab1MessageArea");

      Tab1MsgArea .setEnabled(true);

      }

      else

      {

      IWDMessageArea Tab2MsgArea =(IWDMessageArea) view.getElement("Tab1MessageArea");

      Tab2MsgArea.setEnabled(true);

      IWDMessageArea Tab1MsgArea =(IWDMessageArea) view.getElement("Tab1MessageArea");

      Tab1MsgArea .setEnabled(false);

      }</b>

      This logic is working fine for most of the cases , but When i selcect a TAB, in the event handler of the selection, i am performing some logic and raising exceptions, for these exceptions it is not working fine as my event handler is fired first before the "WDModifyView" . Is there any other way to control the "ENABLE" property of the MessageAreas.

  • avatar image
    Former Member
    Jun 08, 2007 at 12:39 PM

    Try to control property 'visibile'.

    Add comment
    10|10000 characters needed characters exceeded