Change tab name dynamically

Description

In swing mode the title of the window show content of name or documentNo field.
It would be nice to do the same for zk.
(refer to today meeting for more info)

In AbstractADWindowContent.dataStatusChanged add :
newTitle = AEnv.getDialogHeader(Env.getCtx(), curWindowNo);
System.out.println(newTitle);

Regards,

Nicolas

Environment

None

Activity

Show:
Claudemir Todo Bom
August 19, 2015, 2:00 PM

It worked great!

The code you published is better than mine, but did the exact same thing.

I really don't know why my pull request didn't worked, but this is not a problem now!

Thank you Carlos

Nicolas Micoud
August 31, 2015, 7:57 AM

Hi and .
I haven't tested the patch yet (just coming back from holidays). Just a thought : is this enhancement related to https://idempiere.atlassian.net/browse/IDEMPIERE-2224 ?

Thanks,

Nicolas

Carlos Ruiz
August 31, 2015, 11:14 AM

Yes , is the same patch, I forgot that we worked on that before

But here I solved the performance issue reading the PO each time.

Nicolas Micoud
February 29, 2016, 2:57 PM

Hi,

Tab name is not updated when you "Overwrite Sequence on Complete".
When the document (eg: invoice) is completed, the field DocumentNo is updated, but the tab name is not, even if you click on the Refresh button.

(reproducible in test.idempiere.or with AR Invoice)

Regards,

Nicolas

Carlos Ruiz
February 29, 2016, 3:18 PM

, no need to reopen this - that's ticket

Assignee

Carlos Ruiz

Reporter

Nicolas Micoud

Labels

Tested By

None

Components

Fix versions

Priority

Major
Configure