I have a javascript that is super simple and is just taking a single search input from a user and then searching a single attribute within an xml to then tell the user if that record exists or doesnt...
Here's the issue - the XML I have to use (its not controlled by me at all and I have no access to change how it works) contains 1000+ records but limits its pagination views to 50 records per page. So when I use the xml feed for the search, it's only searching the first 50 records...
How the hell do I get this thing to parse all of the records in the whole set to see if the record exists?
Thanks in advance for input!
How do you retrieve the feed ? Can you query different pages ?
hey yo - thanks for the reply...the xml starts with this:
<?xml version="1.0" ?> - - 1 50 733 1 VALUES_FIELD2 asc ...
So it 'sees' all the 733 records and then has the 1 thru 50 logic and then the pagination in those first few lines.
I can browse all records from the front-end report out view within this module, but this is the xml feed the thing gives you. I need someway to tell it to run through all the records for the search but alas...im stuck
Thanks again for any input/ideas
Does the web service cut the XML output (the response/result) down to the ENDREC value?
Because regardless of pagination, the complete XML result should be there for you to read. Pagination should only be for the visual and should not affect the data at all. That's just silly.
So are you sure you're getting the full XML list?
It seems he doesn't - without a means to get the complete xml or request a certain range of records it's gonna be hard. After that looking up the attribute is easy with some xpath.
thanks for all the input...I FINALLY got a response from the IT nuts...they said they can create an ad-hoc report and get all records to a separate db and then I can hit against that. What the eff good is giving people the first 50 records I havent a friggin clue.
They said it was a 1000 bucks to create the report, ha! I asked kindly if I can be a DBA for it and they said sure, but it was soooo hard to work with. 10 minutes later, a lil sql code and I had my custom xml created and working on all records...
I'm baffled at how things get engineered sometimes
Glad you got it bro.
I'm a designer not a programmer and I hear all the talk about how developers know how to build real apps and us people on the front end aren't even worth having around. But stories like yours are all toooooo common. You're a good ass kicker.