Ok I'll admit that my head is kind of reeling right now so I'll do my best to explain what I'm trying to do here. Please bear with me. I think one thing that's going on is I'm trying to solve too many problems at one time.
Let me try to explain. I seemed to be having some coldfusion problems so I'm unable to access some data for a customer. So then I obtained the database, or a sample of it, in Access Format (as an Access DB). Then when I got that, I thought for a bit and said to myself "Self, how the <bleep> are you going to get the data from an Access DB into the Flex progam?" Good point. So then I took that data and exported it into an XML file. Organized it nicely (cuz MSAccess sucks exporting to XML at least for my purposes.) So now I'm sitting here with an XML file
Now before I get to the more immediate problem let me say something that has been bugging me. Shouldn't there be a more generic concept in use here? Am I totally missing something here? I guess the best way to explain it is thru a kind of ADO concept. Something to relatively generically access data from different data sources. Just a question/idea to throw out to everyone.
As far as the immediate problem, here's the deal.
I've got an XML File in the following format:
Quote:
<list><month name="Apr-06"><company ID="01"><record conf#="1111" (other attributes as well) />
<record conf#="22222" (other attributes as well) />
<record conf#="62598" (other attributes as well) /> </company>
<company ID="757"><record conf#="333" (other attributes as well) />
<record conf#="89452" (other attributes as well) />
<record conf#="45678" (other attributes as well) /> </company> </month>
<month name="May-06"><company ID="01"><record conf#="1111" (other attributes as well) />
<record conf#="33333" (other attributes as well) />
<record conf#="48972" (other attributes as well) /> </company> </month> (other months...)</list>
|
Now I've got a dialog (popup/titlewindow) that's going to come up. It will be passed in the month that is desired and the company ID. The dialog is relatively simple, just containing a datagrid. The datagrid will hold information as far as the attribute for each record (theoretically record=row attribute=column).
So what I'm seeing is that first a "search" of the XML needs to be done. To put it SQL-ishly something like
Quote:
|
Select * from list where companyID="01" and month="Apr-06"
|
The question is, in my mind, how to do this and what's the best way to do this so that it is relatively independent of the means of data access.
I'm sorry if I'm being a bit unclear here. If I need to clarify things further please let me know. Any help would be much appreciated.
Christopher