Exactly the reason the labelFields dont match up is because of issues in
the cfc.

I am providing the data through a webservice. As of right now this is
working, I am starting to move forward on this part and I am trying to
figure out how to populate it with the same working webserivce, but with
using dynamic xml created in my cfc.

Webservice:
     <mx:WebService id="DocDisplayMod" useProxy="false"
wsdl="http://flex.homesmartagent.com/cfc/adminList.cfc?wsdl";
showBusyCursor="true">
         <mx:operation name="displayDocsListQry"
             result="DocDisplayModdisplayDocsListQryResult(
DocDisplayMod.displayDocsListQry.result )"
             fault="DocDisplayModdisplayDocsListQryFault( event )" />
     </mx:WebService>


AS functions To populate tree:

                 // POPULATES TREE

                 function DocDisplayModdisplayDocsListQry(fileNum){
                     DocDisplayMod.displayDocsListQry(fileNum);}

                 // called when results received
                     function DocDisplayModdisplayDocsListQryResult(
result ){
                          DocTree.dataProvider = result;
                          }

                 function DocDisplayModdisplayDocsListQryFault ( event
){}


--- In [email protected], "Doug Lowder" <[EMAIL PROTECTED]> wrote:
>
> This is Flex 2, right?
>
> Couple of things:
> In your tree definition, you have labelField="DIR", but I see no DIR
> field in your cfc output.  That might need to be changed to
> labelField="LABEL" (and I'm assuming the case change is because of
> issues with CFCs).  Also, how are you supplying the data to the
> tree?  By setting its dataProvider property in code somewhere?
>
>
> --- In [email protected], "Jeremy Rottman" rottmanj@
> wrote:
> >
> > In my app, I have a tree that is suposed to display all documents
> that
> > are in the folders that my backend paperless sytem sorts.
> >
> > I am trying to populate the tree so that the directories are nodes
> and
> > the documents underneath the directory are childs of that node,
> and the
> > File Number is the Root.
> >
> > Can someone help me with the formating of this tree.
> >
> > This is hte output I get from my cfc.
> >
> > <fileNum label="L060001">
> > -
> >      <directory label="AD">
> > <document label="01010506.txt"/>
> > </directory>
> > -
> >      <directory label="PC">
> > <document label="02010506.txt"/>
> > <document label="02020506.txt"/>
> > <document label="02030506.txt"/>
> > </directory>
> > -
> >      <directory label="SPDS">
> > <document label="03010506.txt"/>
> > <document label="03020506.txt"/>
> > </directory>
> > </fileNum>
> >
> > Directory should be a folder node, and document should be a child
> of
> > that node.
> >
> > Here is the code for my tree.
> >                  <mx:Canvas label="Document Information"
> width="100%"
> > height="100%">
> >                      <mx:Panel x="10" y="10" borderAlpha="1.0"
> > width="381" height="307" layout="absolute">
> >                          <mx:Tree x="10" id="DocTree"
> labelField="DIR"
> > showRoot="true" y="10" height="75%" width="85%"/>
> >                       </mx:Panel>
> >                      <mx:Panel x="415" y="10" width="90%"
> height="307"
> > borderAlpha="1.0" layout="absolute">
> >                          <mx:DataGrid x="0" y="10" width="90%"
> > height="75%">
> >                              <mx:columns>
> >                                  <mx:DataGridColumn
> headerText="Column 1"
> > dataField="col1"/>
> >                                  <mx:DataGridColumn
> headerText="Column 2"
> > dataField="col2"/>
> >                                  <mx:DataGridColumn
> headerText="Column 3"
> > dataField="col3"/>
> >                              </mx:columns>
> >                          </mx:DataGrid>
> >                      </mx:Panel>
> >                  </mx:Canvas>
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to