Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Clearing the Status bar message display  (Read 7876 times)
Huy H.
Posts: 45


« on: May 10, 2019, 09:27:44 pm »

We'd like an ability to automatically clear the status bar message after a certain time has expired in GDC.  This is sort of like the way the current GBC handle messages -- it displays the message, then quietly hides it away.  With GDC the message stays on the status bar until another MESSAGE line is called.

Here's our use case scenario:
User enters some data, in the AFTER FIELD, we validate the data and might warn the user if the data fails validation of some kind.  In such situation, we display a warning message on the status bar.  We had thought about displaying a popup message, but we find that obnoxious and annoying to the user -- especially if they ALWAYS trigger this warning message.  The problem is after the warning message is displayed, it stays there forever.  We have to find a good spot to clear the warning message, but as you might expect -- there's no such place in the code, and it can get pretty messy just trying to clear the warning message.

Has anyone find any other way to elegantly handle this?

If not, our proposal is to add a new style to the Message style that attribute to specify how long the message should be displayed.  After the timeout expired, the front-end client should clear the message.
Reuben B.
Four Js
Posts: 1047


« Reply #1 on: May 10, 2019, 11:50:19 pm »

I would expect you to use ERROR for this scenario.  So perhaps question is what does ERROR do that stops you using it in this scenario?

Also if you note in the AUI tree, ERROR and MESSAGE appear in different places.  ERROR is a child of the Interface as only one displayed at a time whilst MESSAGE is child of Window/Form.  That is why ERROR clears as you exit field whilst MESSAGE remains. To clear MESSAGE then MESSAGE ""

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
.
Four Js
Posts: 30


« Reply #2 on: May 12, 2019, 01:58:28 pm »

Hello Huy
Seems that you expect the exact oposite than everybody else. We were required for GBC (but also GMA and GMI) to behave as GDC. Messages and Error need to be persistent as a default for compatibility with 4GL legacy programs (see GBC-2341).
GBC-2341 will be fixed in GBC 1.00.43 but of course you will be able to keep your preferred behavior adding some customization settings.
Olivier.
.
Four Js
Posts: 30


« Reply #3 on: May 12, 2019, 02:00:48 pm »

Grr ! Fixed in GBC-2341 will be fixed in GBC 1.00.53 and not GBC 1.00.43.
David H.
Posts: 158


« Reply #4 on: May 13, 2019, 11:38:40 am »

I think there is definitely a need to display warning/status information without interrupting the user. I have previously suggested http://4js.com/fjs_forum/index.php?topic=403.msg1419#msg1419 I would not want to use ERROR as that is reserved for fatal error conditions. Having a history facility (last XXX records) accessed via a button (for missed messages) would be nice as well.
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines