Re: Yet another db manager
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 55572
interpreted = N
texte = >Palle,>>I've uploaded a self-extracting archive of my code. Some people >have reported that the .zip won't unzip - probably because I use >WinRAR for creating those.>>http://www.garykrockover.com/dbquickview/>>What I'll be adding next is a "common-language" query builder for >non-webDNA programmers. In otherwords, it will first scan the .hdr >file or 1st row of the database and then present you with a simple >form that will look something like:>>
IS less/equal than, greater/equal than etc....> [inputbox: VALUE >(empty, number, date, whatever user enters)]> IS less/equal than, greater/equal than etc....> [inputbox: VALUE >(etc..)]>etc....I already have this capability built into one of my db editors, I'll post the code here then you guys can mess around with it if you like.I think this code requires a "sku" field in order to work properly, but I always put a SKU field in my db's so it's never been an issue for me. I think it also requires that the db's being accessed are stored in a "data" subfolder because that's another of my standards.Not only does this code have the ability to perform most kinds of standard webdna searches, I started to write an option for doing group searches, but I did not finish that option -- so that's another thing you guys can work on if you really want to make this tool useful.This tool also lets you edit any field in any record in any db. Just put it in the folder that's one level above your "data" folder and it also lists every available db in the data folder so you can just click on a db name to begin:[text secure=f]task=[/text][text]thispage=adminData.html[/text][showif [group]=search]normal field search [/showif][showif [group]!search]group field search [/showif]: [listfiles data/][showif [filename]^.db]<[hideif [db]=[filename]]![/hideif]font color=[red]>[filename] [/showif][/listfiles] [!] *************************************************************** [/!][showif [task]=]add a new record delete this record delete this record [/showif][!] *************************************************************** [/!][showif [task]=append][append db=data/[db]]sku=[cart][/append][redirect [thispage]?db=[db]&sku=[cart]][/showif][!] *************************************************************** [/!][showif [task]=replace][replace db=data/[db]&eqskudatarq=[sku]][formvariables][name]=[url][value][/url]&[/formvariables][/replace]the record has been updated, confirm the update [/showif][!] *************************************************************** [/!][showif [task]=delete][delete db=data/[db]&eqskudatarq=[sku]]The selected record in the [db] database has been deleted.[/showif][!] *************************************************************** [/!][showif [task]=search] [loop start=1&end=3] [listfields db=data/[db]][fieldname] [/listfields]begins with is equal to is not equal to contains one contains all contains none phrase match greater than greater or equal less than less or equal in the range required number date [/loop] [showif [group]=search] group field search doesn't work yet ... [loop start=1&end=3] [loop start=1&end=3]group[index]field [/loop] [listfields db=data/[db]][fieldname] [/listfields] [listfields db=data/[db]][fieldname] [/listfields] [listfields db=data/[db]][fieldname] [/listfields] [/loop] [loop start=1&end=3] [loop start=1&end=3]group[index]data [/loop]begins with is equal to is not equal to contains one contains all contains none phrase match greater than greater or equal less than less or equal in the range required text number date [/loop] [/showif] [/showif][!] *************************************************************** [/!][showif [task]=results][!] use only the fields selected in the form [/!][text]parameters=[!][/!][formvariables name=fieldname&exact=f][!][/!][showif [url][value][/url]!][!][/!][text]idx=[getchars start=1&end=1&from=end][name][/getchars][/text][!][/!][interpret]&[comparison[idx]][fieldname[idx]]data[required[idx]]=[value[idx]]&[fieldname[idx]]type=[fieldtype[idx]][/interpret][!][/!][/showif][!][/!][/formvariables][!][/!][/text] [search db=data/[db][parameters]][!][parameters] [/!]numfound=[numfound] [founditems]edit [listfields db=data/[db]][fieldname]: [grep search=%0B&replace=* ][interpret][[fieldname]][/interpret][/grep] [/listfields]delete [/founditems][/search] [/showif]-- Kenneth Grome-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>Palle,>>I've uploaded a self-extracting archive of my code. Some people >have reported that the .zip won't unzip - probably because I use >WinRAR for creating those.>>http://www.garykrockover.com/dbquickview/>>What I'll be adding next is a "common-language" query builder for >non-webDNA programmers. In otherwords, it will first scan the .hdr >file or 1st row of the database and then present you with a simple >form that will look something like:>> IS less/equal than, greater/equal than etc....> [inputbox: VALUE >(empty, number, date, whatever user enters)]> IS less/equal than, greater/equal than etc....> [inputbox: VALUE >(etc..)]>etc....I already have this capability built into one of my db editors, I'll post the code here then you guys can mess around with it if you like.I think this code requires a "sku" field in order to work properly, but I always put a SKU field in my db's so it's never been an issue for me. I think it also requires that the db's being accessed are stored in a "data" subfolder because that's another of my standards.Not only does this code have the ability to perform most kinds of standard webdna searches, I started to write an option for doing group searches, but I did not finish that option -- so that's another thing you guys can work on if you really want to make this tool useful.This tool also lets you edit any field in any record in any db. Just put it in the folder that's one level above your "data" folder and it also lists every available db in the data folder so you can just click on a db name to begin:[text secure=f]task=[/text][text] thispage=adminData.html[/text][showif [group]=search]normal field search [/showif][showif [group]!search]group field search [/showif]: [listfiles data/][showif [filename]^.db]<[hideif [db]=[filename]]![/hideif]font color=[red]>[filename] [/showif][/listfiles][!] *************************************************************** [/!][showif [task]=]add a new record delete this record [search db=data/[db]&eqskudatarq=[sku]&max=1][founditems] [listfields db=data/[db]][hideif [fieldname]=sku][fieldname] [input] [interpret] [[fieldname]][/interpret][/input] [/hideif][/listfields][/founditems][/search]delete this record [/showif][!] *************************************************************** [/!][showif [task]=append][append db=data/[db]]sku=[cart] [/append][redirect [thispage]?db=[db]&sku=[cart] ][/showif][!] *************************************************************** [/!][showif [task]=replace][replace db=data/[db]&eqskudatarq=[sku]][formvariables] [name]=[url] [value][/url]&[/formvariables][/replace]the record has been updated, confirm the update [/showif][!] *************************************************************** [/!][showif [task]=delete][delete db=data/[db]&eqskudatarq=[sku]]The selected record in the [db] database has been deleted.[/showif][!] *************************************************************** [/!][showif [task]=search] [loop start=1&end=3] [listfields db=data/[db]][fieldname] [/listfields]begins with is equal to is not equal to contains one contains all contains none phrase match greater than greater or equal less than less or equal in the range required number date [/loop] [showif [group]=search] group field search doesn't work yet ... [loop start=1&end=3] [loop start=1&end=3]group[index]field [/loop] [listfields db=data/[db]][fieldname] [/listfields] [listfields db=data/[db]][fieldname] [/listfields] [listfields db=data/[db]][fieldname] [/listfields] [/loop] [loop start=1&end=3] [loop start=1&end=3]group[index]data [/loop]begins with is equal to is not equal to contains one contains all contains none phrase match greater than greater or equal less than less or equal in the range required text number date [/loop] [/showif] [/showif][!] *************************************************************** [/!][showif [task]=results][!] use only the fields selected in the form [/!][text] parameters=[!] [/!][formvariables name=fieldname&exact=f][!] [/!][showif [url] [value][/url]!][!] [/!][text] idx=[getchars start=1&end=1&from=end][name][/getchars][/text][!] [/!][interpret] &[comparison[idx]][fieldname[idx]]data[required[idx]]=[value[idx]]&[fieldname[idx]]type=[fieldtype[idx]][/interpret][!] [/!][/showif][!] [/!][/formvariables][!] [/!][/text] [search db=data/[db][parameters]][!] [parameters] [/!]numfound=[numfound][founditems] edit [listfields db=data/[db]][fieldname]: [grep search=%0B&replace=* ][interpret] [[fieldname]][/interpret][/grep] [/listfields]delete [/founditems][/search] [/showif]-- Kenneth Grome-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Kenneth Grome
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:
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
[WebDNA] WebDNA restart script (2015)
Email notification to one of multiple vendors ? (1997)
CVS Files for databases (2000)
Tracking System? (1997)
[OT] degree symbol (2003)
PIXO (1997)
Gil's in the lead (1999)
[OT] Tumbleweed.... (2004)
WebCatalog 2.0 & WebDNA docs in HTML ... (1997)
OT: Poll Please (2002)
Saving [referrer] for later use (1997)
send mail problem? (1997)
hidden databases (2000)
Secure Server (1997)
more on the Shipcost update problem (1997)
ListFiles and NT Email Sender 2nd Answer (2000)
[format 40s]text[/format] doesn't work (1997)
Ampersand (1997)
Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997)