5 Replies Latest reply on Feb 12, 2008 12:42 AM by vij010


    vij010 Level 1

      I have a news feed that I currently do up in asp. The backend is an Ms-Access database which is updated from a webform, I would like to replicate the same functionality of the the current page in Flex. I want to know the steps involved.

      I know this is possible with a label field and a linkbutton, but I want to know how I can extract content out of the access database file ( in what format) and how to implement it in Flex ?
        • 1. Re: NewsFeed
          atta707 Level 2
          You'll need to keep the ASP on the backend. Use HttpService class to hit the server and get the data in XML format from the database. Any database.

          XML is the default format and Flex has excellent support for XML thru E4X. You might decide any other format (JSON, CSV, plain text...)

          • 2. Re: NewsFeed
            vij010 Level 1
            Can you show an example ?, how do u call out data from a table in an access database on server ?, i am very new to this, i haven't seen help on this issue so I don't know....
            • 3. Re: NewsFeed
              vij010 Level 1

              I found out this piece of code in the help manual. Now does a .NET service return the same info. as asp code ?, cuz my intial new feed is simple asp.
              • 4. Re: NewsFeed
                vij010 Level 1

                I have this code here for the sample news feed gallery, but I don't understand why I get this error....

                <?xml version="1.0" encoding="utf-8"?>
                <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" width="533" height="272">
                import mx.core.ClassFactory
                public function startup():void
                mydg.itemRenderer=new ClassFactory();
                <mx:XMLList xmlns="" id="mynews">
                <mdesc>This is my first link</mdesc>
                <link> http://www.yahoo.com.my</link>

                <mdesc>This is my second link</mdesc>
                <link> http://www.google.com.my</link>
                <mdesc>This is my third link</mdesc>
                <link> http://www.apple.com</link>
                <mx:Panel x="10" y="10" width="513" height="252" layout="absolute">
                <mx:DataGrid x="10" y="10" width="473" dataProvider="{mynews}" initialize="startup();" id="mydg">
                <mx:DataGridColumn headerText="Link Text" dataField="mdesc"/>
                <mx:DataGridColumn headerText="Link" dataField="link"/>

                Should I be using the ClassFactory here ?, I tried to copy out the help file but get stuck in the classfactory declaration. What applies in help does not apply for me....
                • 5. Re: NewsFeed
                  vij010 Level 1
                  Any replies on this one ?