Can you force a reread of a database file?

Help each other out

Can you force a reread of a database file?

Postby WannaTheater on Sun Apr 05, 2009 4:16 pm

I am using xAnt to create my xlobby db .xml files. But then in a startup event I run a bunch of code (through an XL plugin) to modify my XL databases. Unfortunately, Xlobby does not pick up these changes. I have tried the update category event, etc. I even tried to update the category through the XL interface. It is quote odd, because I can open the .xml file in a text editor and verify that my fields are correct, but when I open it through XL (F2->databases), it shows the database version before my code modified it.

Can I force a reread of the databases through a plugin?

Thansk!
WannaTheater
 
Posts: 235
Joined: Thu Aug 24, 2006 11:35 am
Location: Florida

Re: Can you force a reread of a database file?

Postby WannaTheater on Mon Apr 27, 2009 12:11 am

Ok, so here is what I found:

From what I can tell, the "category-> refresh" command DOES NOT do the same thing as going to the Setup (F2)-> databases -> select a database -> push REFRESH button.

Does anyone know how to force a REREAD OF A DATABASE file from within a plugin? (i.e. emulate going to the Setup (F2)-> databases -> select a database -> push REFRESH button)??? I am modifying database files, and need to get the reread, WITHOUT having to manually go to F2 menu.

Thanks!
WannaTheater
 
Posts: 235
Joined: Thu Aug 24, 2006 11:35 am
Location: Florida

Re: Can you force a reread of a database file?

Postby WannaTheater on Mon Apr 27, 2009 12:29 am

Nevermind... I think I got it....
WannaTheater
 
Posts: 235
Joined: Thu Aug 24, 2006 11:35 am
Location: Florida

Re: Can you force a reread of a database file?

Postby m_ski on Mon Apr 27, 2009 12:18 pm

How have you fixed it?
m_ski
 
Posts: 204
Joined: Wed Dec 08, 2004 7:57 am
Location: Kent, United Kingdom

Re: Can you force a reread of a database file?

Postby lar282 on Mon Apr 27, 2009 4:42 pm

isn't xlobby->Refresh database instead of category refresh?
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Re: Can you force a reread of a database file?

Postby Marbles_00 on Mon Apr 27, 2009 7:14 pm

xlobby->Refresh

I don't think that is offered in Xlobby "free". I've only seen Xlobby-->refresh image library.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada