Tree-Widget reorganizes itself
------------------------------ Key: OFBIZ-115 URL: http://issues.apache.org/jira/browse/OFBIZ-115 Project: OFBiz (The Open for Business Project) Issue Type: Bug Components: framework Affects Versions: SVN trunk Environment: Windows XP, Java 5, Postgres, Firefox 1.5.0.4 & Internet Explorer 6, OFBiz from SVN (trunk) Reporter: Fabian Gorsler Priority: Minor The first click on a node in a Tree-Widget (render-style="collapse-expand") has no effect - the node doesn't show its sub-nodes, instead the order of the nodes is changed. The second click on any node opens the node and it shows its sub-nodes, the behavior is as wished then. Sometimes, if you hit "refresh" in your browser for a few times, the Tree-Widget reorganizes its order, too, but this can't be reproduced, it happens accidentally. An example of this behavior can be seen at Accounting --> Chart of Accounts --> Navigate Accounts (https://localhost:8443/accounting/control/GlAccountNavigate). The original message to ofbiz-user: http://mail-archives.apache.org/mod_mbox/incubator-ofbiz-user/200607.mbox/%3c33701.80.133.172.206.1153909386.squirrel@...%3e HTH Best regards, Fabian. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ http://issues.apache.org/jira/browse/OFBIZ-115?page=comments#action_12427155 ]
Fabian Gorsler commented on OFBIZ-115: -------------------------------------- Hi, first of all: Sorry, I have no patch for you. But I've investigated the possible problem: The Tree-Widget uses a transaction during entity access and because of that the fields last_updated_stamp and last_updated_tx_stamp are updated with the transaction date. This causes the values to appear at the bottom, like all other values from entities when they are not ordered by a field. I think a new parameter in the XML definition with the field to use for ordering should be introduced. If the parameter is not set, the pk-field should be used by default. This should be flexible enough for everybody. I'll try to write a patch for this issue, but I'm not sure when it'll be done, because I don't have much time at the moment. I hope I could help you. Best regards, Fabian. > Tree-Widget reorganizes itself > ------------------------------ > > Key: OFBIZ-115 > URL: http://issues.apache.org/jira/browse/OFBIZ-115 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Environment: Windows XP, Java 5, Postgres, Firefox 1.5.0.4 & Internet Explorer 6, OFBiz from SVN (trunk) > Reporter: Fabian Gorsler > Priority: Minor > > The first click on a node in a Tree-Widget (render-style="collapse-expand") has no effect - the node doesn't show its sub-nodes, instead the order of the nodes is changed. The second click on any node opens the node and it shows its sub-nodes, the behavior is as wished then. Sometimes, if you hit "refresh" in your browser for a few times, the Tree-Widget reorganizes its order, too, but this can't be reproduced, it happens accidentally. > An example of this behavior can be seen at Accounting --> Chart of Accounts --> Navigate Accounts (https://localhost:8443/accounting/control/GlAccountNavigate). > The original message to ofbiz-user: http://mail-archives.apache.org/mod_mbox/incubator-ofbiz-user/200607.mbox/%3c33701.80.133.172.206.1153909386.squirrel@...%3e > HTH > Best regards, > Fabian. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-115?page=comments#action_12427180 ]
BJ Freeman commented on OFBIZ-115: ---------------------------------- There are many way to have something sorted, Alpha/numeric, String length, date entered, Date removed so possibly have a parm passed that determines this in the widget. . > Tree-Widget reorganizes itself > ------------------------------ > > Key: OFBIZ-115 > URL: http://issues.apache.org/jira/browse/OFBIZ-115 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Environment: Windows XP, Java 5, Postgres, Firefox 1.5.0.4 & Internet Explorer 6, OFBiz from SVN (trunk) > Reporter: Fabian Gorsler > Priority: Minor > > The first click on a node in a Tree-Widget (render-style="collapse-expand") has no effect - the node doesn't show its sub-nodes, instead the order of the nodes is changed. The second click on any node opens the node and it shows its sub-nodes, the behavior is as wished then. Sometimes, if you hit "refresh" in your browser for a few times, the Tree-Widget reorganizes its order, too, but this can't be reproduced, it happens accidentally. > An example of this behavior can be seen at Accounting --> Chart of Accounts --> Navigate Accounts (https://localhost:8443/accounting/control/GlAccountNavigate). > The original message to ofbiz-user: http://mail-archives.apache.org/mod_mbox/incubator-ofbiz-user/200607.mbox/%3c33701.80.133.172.206.1153909386.squirrel@...%3e > HTH > Best regards, > Fabian. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-115?page=comments#action_12427234 ]
Fabian Gorsler commented on OFBIZ-115: -------------------------------------- Well, the tomatoes on my eyes have attacked again... After looking for a parameter and checking a tree again and searching in the reference book, I saw it: <order-by field-name="field"/>. :-) With this option everything works fine and the tree does, what it should do. Really, I don't know how I could overlook this param... From my point of view this - never-existing - bug is resolved. PEBKAC. ;-) - BJ, you're right. I didn't think about the different options for sorting. The ascending/descending thing would also be a need, I think then each need would be served. I'll try to manage this when I have some free time, for luck the alpha-numerical ordering with <order-by.../> is working. > Tree-Widget reorganizes itself > ------------------------------ > > Key: OFBIZ-115 > URL: http://issues.apache.org/jira/browse/OFBIZ-115 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Environment: Windows XP, Java 5, Postgres, Firefox 1.5.0.4 & Internet Explorer 6, OFBiz from SVN (trunk) > Reporter: Fabian Gorsler > Priority: Minor > > The first click on a node in a Tree-Widget (render-style="collapse-expand") has no effect - the node doesn't show its sub-nodes, instead the order of the nodes is changed. The second click on any node opens the node and it shows its sub-nodes, the behavior is as wished then. Sometimes, if you hit "refresh" in your browser for a few times, the Tree-Widget reorganizes its order, too, but this can't be reproduced, it happens accidentally. > An example of this behavior can be seen at Accounting --> Chart of Accounts --> Navigate Accounts (https://localhost:8443/accounting/control/GlAccountNavigate). > The original message to ofbiz-user: http://mail-archives.apache.org/mod_mbox/incubator-ofbiz-user/200607.mbox/%3c33701.80.133.172.206.1153909386.squirrel@...%3e > HTH > Best regards, > Fabian. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-115?page=all ]
David E. Jones closed OFBIZ-115. -------------------------------- Fix Version/s: SVN trunk Resolution: Invalid Assignee: David E. Jones Thanks for the update Fabian. I'm glad you found an attribute that fits your needs. > Tree-Widget reorganizes itself > ------------------------------ > > Key: OFBIZ-115 > URL: http://issues.apache.org/jira/browse/OFBIZ-115 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Environment: Windows XP, Java 5, Postgres, Firefox 1.5.0.4 & Internet Explorer 6, OFBiz from SVN (trunk) > Reporter: Fabian Gorsler > Assigned To: David E. Jones > Priority: Minor > Fix For: SVN trunk > > > The first click on a node in a Tree-Widget (render-style="collapse-expand") has no effect - the node doesn't show its sub-nodes, instead the order of the nodes is changed. The second click on any node opens the node and it shows its sub-nodes, the behavior is as wished then. Sometimes, if you hit "refresh" in your browser for a few times, the Tree-Widget reorganizes its order, too, but this can't be reproduced, it happens accidentally. > An example of this behavior can be seen at Accounting --> Chart of Accounts --> Navigate Accounts (https://localhost:8443/accounting/control/GlAccountNavigate). > The original message to ofbiz-user: http://mail-archives.apache.org/mod_mbox/incubator-ofbiz-user/200607.mbox/%3c33701.80.133.172.206.1153909386.squirrel@...%3e > HTH > Best regards, > Fabian. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
Hi,
> > David E. Jones closed OFBIZ-115. > -------------------------------- > > Fix Version/s: SVN trunk > Resolution: Invalid > Assignee: David E. Jones > > Thanks for the update Fabian. I'm glad you found an attribute that fits > your needs. > thanks for your patience with me. ;) Overlooking such an obviously named tag is really embarassing... Best regards, Fabian. |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-115?page=comments#action_12427456 ]
Eriks Dobelis commented on OFBIZ-115: ------------------------------------- Just in case somebody needs this is a patch that sorts Chart of accounts tree in Accounting module. Index: applications/accounting/widget/AccountingTrees.xml =================================================================== --- applications/accounting/widget/AccountingTrees.xml (revision 429473) +++ applications/accounting/widget/AccountingTrees.xml (working copy) @@ -28,6 +28,7 @@ <!-- label style="treeitem" text="${glAccountId} ${}" / --> <sub-node node-name="node-body"> <entity-and entity-name="GlAccount" > + <order-by field-name="glAccountId"/> <field-map field-name="parentGlAccountId" env-name="NA" /> </entity-and > </sub-node> @@ -39,6 +40,7 @@ <sub-node node-name="node-body" > <entity-and entity-name="GlAccount" > <field-map field-name="parentGlAccountId" env-name="glAccountId" /> + <order-by field-name="glAccountId"/> </entity-and> </sub-node> </node> > Tree-Widget reorganizes itself > ------------------------------ > > Key: OFBIZ-115 > URL: http://issues.apache.org/jira/browse/OFBIZ-115 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Environment: Windows XP, Java 5, Postgres, Firefox 1.5.0.4 & Internet Explorer 6, OFBiz from SVN (trunk) > Reporter: Fabian Gorsler > Assigned To: David E. Jones > Priority: Minor > Fix For: SVN trunk > > > The first click on a node in a Tree-Widget (render-style="collapse-expand") has no effect - the node doesn't show its sub-nodes, instead the order of the nodes is changed. The second click on any node opens the node and it shows its sub-nodes, the behavior is as wished then. Sometimes, if you hit "refresh" in your browser for a few times, the Tree-Widget reorganizes its order, too, but this can't be reproduced, it happens accidentally. > An example of this behavior can be seen at Accounting --> Chart of Accounts --> Navigate Accounts (https://localhost:8443/accounting/control/GlAccountNavigate). > The original message to ofbiz-user: http://mail-archives.apache.org/mod_mbox/incubator-ofbiz-user/200607.mbox/%3c33701.80.133.172.206.1153909386.squirrel@...%3e > HTH > Best regards, > Fabian. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ http://issues.apache.org/jira/browse/OFBIZ-115?page=comments#action_12427458 ]
David E. Jones commented on OFBIZ-115: -------------------------------------- Thanks for the feedback. I made some similar changes in rev 430710. > Tree-Widget reorganizes itself > ------------------------------ > > Key: OFBIZ-115 > URL: http://issues.apache.org/jira/browse/OFBIZ-115 > Project: OFBiz (The Open for Business Project) > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Environment: Windows XP, Java 5, Postgres, Firefox 1.5.0.4 & Internet Explorer 6, OFBiz from SVN (trunk) > Reporter: Fabian Gorsler > Assigned To: David E. Jones > Priority: Minor > Fix For: SVN trunk > > > The first click on a node in a Tree-Widget (render-style="collapse-expand") has no effect - the node doesn't show its sub-nodes, instead the order of the nodes is changed. The second click on any node opens the node and it shows its sub-nodes, the behavior is as wished then. Sometimes, if you hit "refresh" in your browser for a few times, the Tree-Widget reorganizes its order, too, but this can't be reproduced, it happens accidentally. > An example of this behavior can be seen at Accounting --> Chart of Accounts --> Navigate Accounts (https://localhost:8443/accounting/control/GlAccountNavigate). > The original message to ofbiz-user: http://mail-archives.apache.org/mod_mbox/incubator-ofbiz-user/200607.mbox/%3c33701.80.133.172.206.1153909386.squirrel@...%3e > HTH > Best regards, > Fabian. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |