[OFBiz] Dev - Accounting Tree Widget View

Al Byers byersa at automationgroups.com
Mon Sep 27 14:07:16 EDT 2004


Brett,

The root "<tree..." element needs a 'entity-name="GlAccount"' attribute. 
It defaults to "Content" which in your case won't work.

-Al

Brett G. Palmer wrote:

> Al,
>
> Thanks for fixing the Tree widget to handle non-content specific data.
> I'mstill having problems getting the Tree widget to display a 
> hierarchy of accounts.  The "node-body" is not being called when the 
> GlAccountTree widget is rendered.  Any suggestions on how to get this 
> to work?
>
> Thanks,
>
> Brett
>
>
> Here is my tree definition.  You can find this in the 
> accounting/widget/AccountringTrees.xml file.
> /****************************  AccountingTrees.xml   section   
> ****************************/
>
>    <tree name="GlAccountTree" root-node-name="node-root" 
> render-style="expand-collapse" default-wrap-style="accountItem">       
>        <node name="node-root">
>            <entity-one entity-name="GlAccount" use-cache="true">
>                <field-map field-name="glAccountId" 
> env-name="glAccountId" />
>            </entity-one>
>            <label text="${glAccountId}  ${}" />                
> <sub-node node-name="node-body">
>                <entity-and entity-name="GlAccount" >
>                    <field-map field-name="parentGlAccountId" 
> env-name="glAccountId" />
>                </entity-and >
>
>            </sub-node>
>        </node>
>        <node name="node-body">
>            <label text="${glAccountId} ${accountName} 
> ${postedBalance}" />                <sub-node node-name="node-body">
>                <entity-and entity-name="GlAccount" >
>                    <field-map field-name="parentGlAccountId" 
> env-name="glAccountId" />
>                </entity-and>
>
>            </sub-node>
>        </node>          </tree>
>
>
> _______________________________________________
> Dev mailing list
> Dev at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/dev
>


-- 
Al Byers
Automation Groups Inc
801.400.5111
http://www.automationgroups.com
byersa at automationgroups.com

We're "Open for Business" (http://www.ofbiz.org) 
 - the leader in Java-based Web services development tools



More information about the Dev mailing list