Adding a status bar for FindWindow

Description

After migrating users in a production environment (ADempiere 3.61) from Swing Client to iDempiere ZK Web Client they complained about the lack of the status bar showing records qty when opening a window.

We made a small change at FindWindow and now everybody is happy.

Attached is a image of the status bar from Swing client (Find.java), a image from ZK Web client with our modification (FindWindow.java) and also the patch.

Environment

None

Activity

Show:
Nicolas Micoud
August 9, 2018, 12:56 PM

Hi,

In swing, the code is :

int records = getNoOfRecords(m_query, true);
setStatusDB (records);

(see org.compiere.apps.search.Find.cmd_refresh())

Wouldn't be better to do same for webui ?

Regards,

Nicolas

Carlos Ruiz
August 27, 2018, 2:18 PM

Changed the message as suggested by

Nicolas Micoud
August 27, 2018, 3:29 PM

Hi ,

Wouldn't be better to have the number of selected records and the total (like in swing) instead of a 'static' count ?

When I open the product window, i can read "Records = 100"
If i filter with name like 'NMD%', i would like to read something like "Records 12 / 100"

WDYT ?

Carlos Ruiz
August 27, 2018, 9:01 PM

At the moment of opening the window - or the find window - it counts the total of records that can be selected and that's the number shown there (I think we inherited that from swing - in some cases that SQL count is undesirable and cause slowness) - when you filter and click OK - then there is no need to show that number - that's shown in the record info.

Nicolas Micoud
August 28, 2018, 7:28 AM

Yes, there is also the record info ; i forgot it!
Thanks,

Nicolas

Assignee

Murilo Habermann Torquato

Reporter

Murilo Habermann Torquato

Labels

Tested By

None

Components

Affects versions

Priority

Trivial
Configure