Tree from detail tab not updated when master record change

Description

Hi,

Steps to reproduce :
Log in with GardenAdmin and go to Account Element window.
Add a new Element.
You'll see that the tree located in the sub tab ("Element Value") is not updated, even if this detail tab become the master one.

Regards,

Nicolas

Environment

None

Attachments

5
  • 12 Jun 2013, 10:36 PM
  • 05 Jun 2013, 05:35 AM
  • 03 Jun 2013, 10:22 PM
  • 03 Jun 2013, 10:18 PM
  • 24 May 2013, 10:23 PM

Activity

Show:

Carlos Ruiz June 14, 2013 at 9:40 AM

Juan David Arboleda Ruiz June 12, 2013 at 11:17 PM

Hello Nicolas,

The problem with the Print format window is not a problem specifically with Trees but it is related to a refresh problem between Parent and detail records, because of this I've created a new ticket with your description " https://idempiere.atlassian.net/browse/IDEMPIERE-1048#icft=IDEMPIERE-1048 Sort tab lists not updated when master record change", Thanks for your feed back.

Regards,

Juan David

Nicolas Micoud June 12, 2013 at 5:07 PM

Hi,

The issue is also reproductible on Print format window.
Steps:
Open the window.
Create a new record : master tab is empty, but DisplayOrder tab has items from previous record

Regards,

Nicolas

Nicolas Micoud June 5, 2013 at 3:56 AM

Just my 2 cents : i've played a little with trees while searching for a patch and noticed that WTreeMaintenance was reloading trees using this code (action_loadTree()) :

if (tree.getModel() != null)
tree.setModel(null);
if (tree.getTreecols() != null)
tree.getTreecols().detach();
if (tree.getTreefoot() != null)
tree.getTreefoot().detach();
if (tree.getTreechildren() != null)
tree.getTreechildren().detach();

Maybe this should be preferred to

if (tree.getTreecols() == null)
{
...
}

??

Regards,

Nicolas

Carlos Ruiz June 3, 2013 at 10:22 PM

Attaching same test case on swing to illustrate better the case

Fixed

Details

Assignee

Reporter

Labels

Components

Priority

Created May 22, 2013 at 3:23 PM
Updated March 13, 2014 at 2:18 PM
Resolved June 14, 2013 at 9:40 AM

Flag notifications