How to Delete a Database and Clear a Category

Help each other out

How to Delete a Database and Clear a Category

Postby smarty on Mon Nov 06, 2006 5:18 pm

After going to my CallerID screen and reviewing who has called, I would like to delete the CallerID.xml database and clear the CallerID category display(clear the category cache). It would be nice to do this from buttons while in the CallerID screen (but since the category is displayed on screen at this time, this may not be possible??).

Anyway, I have tried using a .bat file that deletes the CallerID.xml file, and then followed by a clear cache command for the CallerID category (whether right or wrong, I call the .xml data base and the category the same name; "CallerID").

What would be the right way to do this? Ever time I delete the .xml file, it just seems to come back (even though I think I am clearing the cache). What am I missing?
smarty
 
Posts: 179
Joined: Thu Jul 27, 2006 12:04 am
Location: San Antonio, TX USA

Postby R32 on Tue Nov 07, 2006 1:25 am

Well, I don't use the callerID plugin since I don't have a home phone but I do something similar with a movie playlist that I use for queueing movies for playback in ZoomPlayer. I have a button that deletes my movie playlist that calls a vbs script. The script simply deletes the database then rewrites it with just the basic info (otherwise xlobby will crash if restarted due to a corrupt database). After the vbs script runs the button issues a reset command and all is gone from the playlist screen.
R32
 
Posts: 34
Joined: Tue Jan 31, 2006 11:24 pm

Postby smarty on Thu Nov 09, 2006 2:16 am

Thanks for that tip.

I have written a .bat file that deletes the "CallerID.xml" database and writes an empty "CallerID.xml" database. After the rewrite of the database, I tried the "reset" command for the "CallerID" category, but this did not clear the category. I found that the "refresh" category comand did clear the screen. HOWEVER.....

When the next telephone call comes in, all the listings from the old, deleted "CallerID.xml" databse RE-APPEAR!!!!! Since I though they may be coming back from cached files, I tried to also "clear cache" on the "CallerID" category (just after the .xml database cleaning/re-writing).

How can I delete this database and start fresh every time?? I MUST be missing something :(
smarty
 
Posts: 179
Joined: Thu Jul 27, 2006 12:04 am
Location: San Antonio, TX USA