Difference between revisions of "NF2.1 Configurable Status Line"
CarlosRuiz (talk | contribs) (template) |
CarlosRuiz (talk | contribs) (doc) |
||
| Line 7: | Line 7: | ||
'''Description:''' | '''Description:''' | ||
| − | + | Now you can define in a configurable way a status line to be shown for any window/table (in past you needed to hack GridTab.getTrxInfo). | |
| + | |||
| + | Firstly you define a translatable message with the text you want to display in the status line, please note the usage of the MessageFormat parameters. Here you can define positional parameters numbered from zero, describe the type (number, date, time, format, choice or undefined for a default string), and the format style: | ||
| + | |||
| + | [[Image:01_SL_Message.png]] | ||
| + | |||
| + | Then you define the associated query for the message, please note the number of values returned by the query must match the number and order of the positional parameters of the message. You can (and maybe must) use context variables referencing the window fields to restrict the query: | ||
| + | |||
| + | [[Image:02_SL_Query_Used.png]] | ||
| + | |||
| + | The resulting status line is shown in next screenshot: | ||
| + | |||
| + | [[Image:03_SL_StatusLine.png]] | ||
| + | |||
'''Technical Info:''' [http://jira.idempiere.com/browse/IDEMPIERE-1150 IDEMPIERE-1150] | '''Technical Info:''' [http://jira.idempiere.com/browse/IDEMPIERE-1150 IDEMPIERE-1150] | ||
| − | '''See also:''' [[NF3.0_Quick_Info_Widget|Quick Info Widget]] | + | '''See also:''' [[NF3.0_Quick_Info_Widget|Quick Info Widget]], [http://docs.oracle.com/javase/6/docs/api/java/text/MessageFormat.html Java Message Format] |
[[Category:New Features v3.0|U]] | [[Category:New Features v3.0|U]] | ||
[[Category:To Be Documented]] | [[Category:To Be Documented]] | ||
Revision as of 16:27, 13 January 2014
Feature: Configurable Status Line
Goal: Usability
Developer: Nicolas Micoud
Description:
Now you can define in a configurable way a status line to be shown for any window/table (in past you needed to hack GridTab.getTrxInfo).
Firstly you define a translatable message with the text you want to display in the status line, please note the usage of the MessageFormat parameters. Here you can define positional parameters numbered from zero, describe the type (number, date, time, format, choice or undefined for a default string), and the format style:
Then you define the associated query for the message, please note the number of values returned by the query must match the number and order of the positional parameters of the message. You can (and maybe must) use context variables referencing the window fields to restrict the query:
The resulting status line is shown in next screenshot:
Technical Info: IDEMPIERE-1150
See also: Quick Info Widget, Java Message Format



