Due to enormous amounts of spam, the forum has been set to read-only mode.



Reply to topic  [ 25 posts ]  Go to page Previous  1, 2, 3  Next
GenerateXML 
Author Message

Joined: Thu Jul 31, 2003 8:21 pm
Posts: 1433
Post Re: GenerateXML

hamsen wrote:
Well, the code you saw is generated with my DataServer program.

This is the code:

Code:
try
    recs:=CAT.Server.GenerateXML(HAPgetToken(cbXMLfilter.Text,'?',1),
                                 HAPgetToken(cbXMLfilter.Text,'?',2),XMLfile);
  except
    on E : Exception do
     begin
       laXMLfile.Color:=$005555FF;
       laXMLfile.Caption:='Problem generating XML' + #13 + E.message;
       exit;
     end;
  end;


I'm going to sleep now. Back in 8 hours.


On my end, your dataserver generated the code I showed above. I used table=track and filter=track?trackid=whatever.

- Jeff


Wed Sep 16, 2009 3:16 am
Profile
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: GenerateXML

JSonnabend1 wrote:
That's not the same as calling GenerateXML from the dataserver.


Why shouldn't it be the same?
I certainly hope so.

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Wed Sep 16, 2009 7:35 am
Profile WWW
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: GenerateXML

JSonnabend1 wrote:
Ah, apparently, a call to GenerateXML with the track table specified is returning a track off of the album identified in the filter. So the following call returns a a track off of albumid=1572:

Code:
 DataServer.GenerateXML('track', 'trackid=1572', SomeFileName);


Can someone confirm this bug?

- Jeff

This is a confirmed bug. As a workaround, use this code:

Code:
DataServer.GenerateXML('Track', 'trackid=1572', SomeFileName);

_________________
Fredrik Nordbakke
www.fnprg.com


Wed Sep 16, 2009 12:51 pm
Profile WWW
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: GenerateXML

What's the difference?

Track vs. track ?

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Wed Sep 16, 2009 1:01 pm
Profile WWW
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: GenerateXML

hamsen wrote:
What's the difference?

Track vs. track ?

The case of the first character ;)

_________________
Fredrik Nordbakke
www.fnprg.com


Wed Sep 16, 2009 1:11 pm
Profile WWW

Joined: Thu Jul 31, 2003 8:21 pm
Posts: 1433
Post Re: GenerateXML

hamsen wrote:
JSonnabend1 wrote:
That's not the same as calling GenerateXML from the dataserver.


Why shouldn't it be the same?
I certainly hope so.

Why should it be the same? For example, what's the significance of the "previousid", "nextid", etc., attributes when retrieving a track's xml outside of a particular view?

- Jeff


Wed Sep 16, 2009 1:52 pm
Profile

Joined: Thu Jul 31, 2003 8:21 pm
Posts: 1433
Post Re: GenerateXML

Fredrik -

Thanks for looking into that. Didn't do a case-insensitive string comparison, huh? ;-)

- Jeff


Wed Sep 16, 2009 2:03 pm
Profile
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: GenerateXML

JSonnabend1 wrote:
hamsen wrote:
JSonnabend1 wrote:
That's not the same as calling GenerateXML from the dataserver.


Why shouldn't it be the same?
I certainly hope so.

Why should it be the same? For example, what's the significance of the "previousid", "nextid", etc., attributes when retrieving a track's xml outside of a particular view?

- Jeff


Why would CATraxx make two different versions of the XML-file?

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Wed Sep 16, 2009 8:28 pm
Profile WWW
User avatar

Joined: Sat Nov 22, 2003 7:47 pm
Posts: 2547
Location: Denmark
Post Re: GenerateXML

JSonnabend1 wrote:
Fredrik -

Thanks for looking into that. Didn't do a case-insensitive string comparison, huh? ;-)

- Jeff


Apparently he doesn't do that.

But just for the record:
When you used my DataServer program, you must have changed the first character in the preset tablename.
Otherwise it would have worked.

_________________
Kind regards
Thomas Hamstrup

HAP Software (http://www.hamstrup.dk)

Using Windows 8 PRO 64-bit and CATraxx 9.44


Wed Sep 16, 2009 8:30 pm
Profile WWW

Joined: Thu Jul 31, 2003 8:21 pm
Posts: 1433
Post Re: GenerateXML

hamsen wrote:
Apparently he doesn't do that.

But just for the record:
When you used my DataServer program, you must have changed the first character in the preset tablename.
Otherwise it would have worked.

First of all, generating from a right click and through the dataservers implicate different code, and a bug can be anywhere (as we've seen).

Second, he does generate the same xml, but tell me, what does the attribute "previousid" mean in the context of GenerateXML? Previous how?

Finally, I'm not sure why you bring up that last point. Your dataserver utility is a fine program, but it let me type-in the table name, and so was susceptible to the same bug I encountered. But, yes, had I avoided the bug, your program would have worked.

- Jeff


Wed Sep 16, 2009 9:38 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 25 posts ]  Go to page Previous  1, 2, 3  Next

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.