RE: CloseDatabase

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13158
interpreted = N
texte = John ->I am trying to set up a command menu choice on the CATALOGADMIN.TMPL page for >each of the stores I have configured which will cause the current CATALOG.TXT >database file to be closed so that I can upload a newer version. >After reading the WebCatalog manual I cannot figure out how to do this in >conjunction with a command structure. >It seems that I can create a separate TMPL document which has the >[closedatabase xxxxx] in it that would look something like this - [...] >...[Closedatabase catalog.txt] [...] >Can anyone offer a more simplistic method for closing a single database and >allowing the command to appear on the CATALOGADMIN.TMPL page?There is no command for closing a specific database; you can use a $flushdatabases command to close *all* currently open databases, but otherwise you would have to use the [closedatabase] context. You could, though, figure out some way to list all the open databases and link to a page with a [closedatabase [thisdatabasepath]] which would close just the one you selected.I hope this helps somewhat,Marc Eagle StarNine Technologies http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: CloseDataBase vs CommitDataBase ( Terry Wilson 2007)
  2. Re: CloseDataBase vs CommitDataBase ( thierry 2007)
  3. Re: CloseDataBase vs CommitDataBase ( Donovan Brooke 2007)
  4. Re: CloseDataBase vs CommitDataBase ( "Dennis J. Bonsall, Jr." 2007)
  5. Re: CloseDataBase vs CommitDataBase ( "Dennis J. Bonsall, Jr." 2007)
  6. Re: CloseDataBase vs CommitDataBase ( Lester 2007)
  7. Re: CloseDataBase vs CommitDataBase ( Donovan Brooke 2007)
  8. Re: CloseDataBase vs CommitDataBase ( "Dennis J. Bonsall, Jr." 2007)
  9. Re: CloseDataBase vs CommitDataBase ( Donovan Brooke 2007)
  10. Re: CloseDataBase vs CommitDataBase ( Donovan Brooke 2007)
  11. Re: CloseDataBase vs CommitDataBase ( "Dennis J. Bonsall, Jr." 2007)
  12. Re: CloseDataBase vs CommitDataBase ( Lester 2007)
  13. Re: CloseDataBase vs CommitDataBase ( "Dennis J. Bonsall, Jr." 2007)
  14. Re: closedatabases simple question.. (Kenneth Grome 2002)
  15. Re: closedatabases simple question.. (Kalin Mintchev 2002)
  16. Re: closedatabases simple question.. (Kalin Mintchev 2002)
  17. Re: closedatabases simple question.. (Jesse Williams-Proudman 2002)
  18. Re: closedatabases simple question.. (Kalin Mintchev 2002)
  19. Re: closedatabases simple question.. (Jesse Williams-Proudman 2002)
  20. RE: CloseDatabase (Marc Eagle 1997)
John ->I am trying to set up a command menu choice on the CATALOGADMIN.TMPL page for >each of the stores I have configured which will cause the current CATALOG.TXT >database file to be closed so that I can upload a newer version. >After reading the WebCatalog manual I cannot figure out how to do this in >conjunction with a
command structure. >It seems that I can create a separate TMPL document which has the >[closedatabase xxxxx] in it that would look something like this - [...] >...[Closedatabase catalog.txt] [...] >Can anyone offer a more simplistic method for closing a single database and >allowing the command to appear on the CATALOGADMIN.TMPL page?There is no command for closing a specific database; you can use a $flushdatabases command to close *all* currently open databases, but otherwise you would have to use the [closedatabase] context. You could, though, figure out some way to list all the open databases and link to a page with a [closedatabase [thisdatabasepath]] which would close just the one you selected.I hope this helps somewhat,Marc Eagle StarNine Technologies http://www.smithmicro.com/ Marc Eagle

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCatalog can't find database (1997) WebDNA 4.5.1 Now Available (2003) emailer (1997) [group] ? (1997) PCS Emailer's role ? (1997) Seeking NT Mail Server Experiences (1998) [WriteFile] problems (1997) A question on sub-categories (1997) Hide Cart ID in URL? (2003) Submit a Form to a Selected URL (2003) default image if image in code not available (2003) Problems adding stuff to the shopping cart. (1997) greater than or equal to (1997) thanks for the submissions (1998) [format xs] freeze (1997) [convertchars] Problem (2000) [WebDNA] ONLY the FIRST continuous run of numeric chars? (2008) Strange intermittent WebDNA problems Workaround (2008) Defualt folder locations (2004) Calculating multiple shipping... (1997)