Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / August 2008



Tip: Looking for answers? Try searching our database.

XML to DataSet using Multiple Datagrids

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mmucom - 22 Aug 2008 10:13 GMT
Hi I'm new to Flash Components and have been fiddling around for the last 2
weeks.

I'm basically creating a Mail Support system that

1) displays the "msgtitle" "msg"(No of messages) "newmsg"(if any) and "date".

2) when any msgtitle (row) is selected i need to display the various mails
recv. & sent in a another DataGrid.

3) The fields columns displayed in the new Grid are "subject", "from" &
"msgdate" .

4) When any row is selected it needs to display the description of that msg
in a popUp window.

Sounding easy?? I hope so :D...Anyways i searched all over the net and did 10-
15 on components tutorials but still haven't found anything on using multiple
data Grids. I still managed to make some progress though in the 5 steps
required below thanks to this tutorial

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/js/html/wwhelp.htm

See Using ActionScript 2.0 Components > Creating an Application with
Components > Bind data components to display gift ideas

1) fetch data from an XML file an XML connector (Done)

2) Bound the respective data to a Data Set (Done)

3) Recieve the Data Set information into a Datagrid (Done)

4) On selectItem of a row it should display the respective information in
another Data Grid (????)

5) Finally show the Description in a Pop Up window.(Done)

Schema of my XML:

<supportmsg>

    <messages msgtitle ="I cant withdraw money from my account" msg= "8" newmsg
= "1" status= "Open" date = "18.08.08" >
        <submsg>

            <msgsub>Re: I cant withdraw money from my account</msgsub>

            <from>Me</from>

            <date>16.08.08</date>
            <description><![CDATA[<font color = "#CCCCCC">A moins de 2 s en parfait
état.</font>]]></description>
        </submsg>

        <submsg>
<messages msgtitle ="My Credit Card wont work" msg= "2" newmsg = "1" status=
"Open" date = "18.08.08" >
            <msgsub>My Credit Card wont work</msgsub>

            <from>Me</from>

            <date>16.08.08</date>
            <description><![CDATA[<font color = "#CCCCCC">A moins de 2 s en parfait
état.</font>]]></description>
        </submsg>

        <submsg>

            <msgsub>I cant withdraw money from my account</msgsub>

            <from>Me</from>

            <date>16.08.08</date>
            <description><![CDATA[<font color = "#CCCCCC">A moins de 2 s en parfait
état.</font>]]></description>
        </submsg>

    </messages>   

</supportmsg>
mmucom - 22 Aug 2008 10:16 GMT
Any Help would be greatly appreciated....thanks for you patience :)
mmucom - 22 Aug 2008 10:27 GMT
The first DG should diplay this info

<messages msgtitle ="I cant withdraw money from my account" msg= "8" newmsg
= "1" status= "Open" date = "18.08.08" >

and on click the second DG should display

    <submsg>

            <msgsub>I cant withdraw money from my account</msgsub>

            <from>Me</from>

            <date>16.08.08</date>
            <description><![CDATA[<font color = "#CCCCCC">A moins de 2 s en parfait
état.</font>]]></description>

    </submsg>

Thanks again!!
mmucom - 22 Aug 2008 10:51 GMT
found this tutorial think it should help...ll let you know

http://www.flash-db.com/Tutorials/databind/
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.