updateHeaderMessage( message ) // updates header message text
setHeaderWaitMessage( message ) // sets header message including a gif working-animation
updateHeaderWaitMessage( message ) // update header wait message text
setHeaderDelayMessage( message ) // sets header message and hides it after 3 secs
hideHeaderMessage() // hides header message
This can be viewed eg for the generate chart function and when exporting a report table to excel/html/csv when it has not yet been generated.
Should be useful for situations where there are no natural place to put a message, like in lists. We could consider moving all messages here for standardisation.
I was just looking for something like this where we could show common messages and was looking for extension points as a way to do it. Any extension points available in DHIS ??
···
Regards,
Saptarshi PURKAYASTHA
Director R & D, HISP India
Health Information Systems Programme
updateHeaderMessage( message ) // updates header message text
setHeaderWaitMessage( message ) // sets header message including a gif working-animation
updateHeaderWaitMessage( message ) // update header wait message text
setHeaderDelayMessage( message ) // sets header message and hides it after 3 secs
hideHeaderMessage() // hides header message
This can be viewed eg for the generate chart function and when exporting a report table to excel/html/csv when it has not yet been generated.
Should be useful for situations where there are no natural place to put a message, like in lists. We could consider moving all messages here for standardisation.
Sounds good. So this would be a little field where all messages to the
user can appear? I think this idea could be explored a bit, to standardize
user feedback as Lars points out, but also to think about extending what
DHIS communicates to the user. For example, instead of just "process
complete", it could read "Report table updated. The report can now be
viewed for (month(s))" etc. Not sure if this is a valid example, but there
should be plenty of places where a couple of sentences would help the user
understand what's going on, or point to the next logical step, etc.
Johan
···
To devs,
I have added a new div for user feedback which appears fixed on top of the
screen. These methods can be used directly from any javascript:
setHeaderMessage( message ) // sets header message
updateHeaderMessage( message ) // updates header message text
setHeaderWaitMessage( message ) // sets header message including a gif
working-animation
updateHeaderWaitMessage( message ) // update header wait message text
setHeaderDelayMessage( message ) // sets header message and hides it after
3
secs
hideHeaderMessage() // hides header message
This can be viewed eg for the generate chart function and when exporting a
report table to excel/html/csv when it has not yet been generated.
Should be useful for situations where there are no natural place to put a
message, like in lists. We could consider moving all messages here for
standardisation.