Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » [neon] Display errors on AbstractTableField
[neon] Display errors on AbstractTableField [message #1759480] Tue, 11 April 2017 23:37 Go to next message
Adrian Bärtschi is currently offline Adrian BärtschiFriend
Messages: 4
Registered: April 2017
Junior Member
Hi everyone

When I set error messages (addErrorStatus("...")) on AbstractTablefields, I don't see any error icon or other message in the UI.

Is it still considered a good idea to display errors on TableFields in Scout Neon and how is it supposed to look like?

Many thanks
Re: [neon] Display errors on AbstractTableField [message #1759522 is a reply to message #1759480] Wed, 12 April 2017 14:04 Go to previous message
Andre Wegmueller is currently offline Andre WegmuellerFriend
Messages: 31
Registered: September 2012
Location: Baden-Dättwil, Switzerla...
Member
You must make sure that the status-part of the form-field is visible. I've added this bit of code to my TableFormField:

        @Override
        protected boolean getConfiguredStatusVisible() {
          return true;
        }
        
        @Override
        protected void execInitField() {
          MultiStatus status = new MultiStatus();
          status.add(new Status(IStatus.ERROR));
          setErrorStatus(status);
        }


And it looks like this:
index.php/fa/29037/0/
Previous Topic:[Blog Post] Experience Report from JavaLand 2017
Next Topic:Exception in thread "main" java.lang.NoClassDefFoundError:
Goto Forum:
  


Current Time: Sat Nov 18 06:30:58 GMT 2017

Powered by FUDForum. Page generated in 0.01888 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software