Glad to hear that worked out for you! My backend setup is quite different from yours. I'm using RemoteObject to call methods of some Java classes that read the contents of a webdav repository (Jakarta Slide) via the webdav client API. I pass data back as lists of custom Java classes that implement file objects, with ActionScript counterparts on the Flex side.
--- In [email protected], "Jeremy Rottman" <[EMAIL PROTECTED]> wrote: > > Worked like a charm doug. > > On a side note, what are you using to connect to your remote dir. > Right now I am using cf, and I have noticed that you can't directly > return the dir listing from cf to flex. > > > --- In [email protected], "douglowder" <[EMAIL PROTECTED]> wrote: > > > > I have a similar system that reads the contents of a remote directory, > > displays the files in a datagrid, and allows the user to click on an > > item to open the corresponding file. Here are some code excerpts: > > > > <mx:DataGrid dataProvider="{documents}" height="100%" > > width="75%" hScrollPolicy="auto" > > change="if (event.target.selectedItem) > > openFile(event.target.selectedItem.file)"> > > <mx:columns> > > <mx:Array> > > <mx:DataGridColumn columnName="name" > > headerText="Name" /> > > <mx:DataGridColumn columnName="size" > > headerText="Size" textAlign="right" /> > > <mx:DataGridColumn columnName="type" > > headerText="Type" /> > > <mx:DataGridColumn columnName="lastModified" > > headerText="Last Modified" /> > > </mx:Array> > > </mx:columns> > > </mx:DataGrid> > > > > And the openFile function for the datagrid's change event: > > > > function openFile(file) : Void { > > var sUrl:String = file.url; > > getURL(sUrl, "_blank"); > > } > > > > In my case, the "documents" variable bound to the datagrid is an > > object that contains the file's name, size, type, last modified time, > > and another object named "file" that contains the URL, but it should > > be easy to modify the dataprovider so that it passes your fld_docLink > > value. > > > > Doug > > > > > > --- In [email protected], "Jeremy Rottman" <[EMAIL PROTECTED]> > > wrote: > > > > > > I have a datagrid that I am using to display all documents that have > > > been received by the paperless sytem I wrote. The vaules that are > > > returned from my cfc that hold the accutal url I want to link is > > > called fld_docLink. What I would like to do is when someone clicks on > > > a row in the dg, it opens a new browser window with the value of > > > fld_docLink as the url. > > > > > > Can someone give me some help with this. > > > > > > -- 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/

