Re: [carts] and databases

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11891
interpreted = N
texte = >>When we tried to delete these >>records both with the same name it hung webcat. > >This bothers me, because obviously there should be nothing that hangs >WebCatalog. Are you sure that it was just the fact that 2 records had the >same id? You're supposed to be able to delete hundreds of records at once >by creating a search criteria in the [delete] that blows away any matching >records, so I fully expect your situation to work correctly no matter how >many identical records were found. > >>So can I just make the field where the [cart] value will go and just fill >>each recored like 1,2,3,4,5,6 and so forth for these 225 some odd records >>and then any new records will get the [cart] value? > We didn't use a search on another field other then the sku number we put in. See the second snip where it talks about BOTH records on the screen at once. I never expected this problem and the person doing the work never bother to ask, Hey there are 2 records on the delete search function and I want to delete them before Gary finds out I screwed up. Record 1 sku=10-30 name=Jones addr=12345 Main st anywhere usa Record 2 sku=10-30 name=Jones addr=12345 Main st anywhere usaperson put in I want to delete Jonesin the following snip

Find a Rep: Enter Data Base Record Number You Want to Delete


they got a search that they use to verify this is who they want to delete and BOTH records appearedFound [numFound] items matching your search <--The numfound was 2>[foundItems]

[sku][firm] [contact] [addr1] [addr2] [phnum] [em] [hmpage] [rtype]
Rep Code:
Firm Name:
Contact:
Address1:
Address2:
Phone:
Fax:[faxnum]
E-Mail:
Home Page:
Type:


Cl ick here if this is the Record you want to Delete
then they entered clicked on the hyperlink and got[delete db=/webcatalog/rep.db&eqskudata=[sku]]and she hung-up.Now the sku in this example was a 4 digit number we created, but they created two identical records with the same sku value and the sku value has nothing to do with [carts], it was put in by them. So I had 2 records named 01-30. But if I would have created this data base like I created most since then using the [cart] value to control the record the problem is mute. In my opinion it is not a problem of webcat. I is a problem here of some sloppy coding in the learning curve. I just want to avoid it happening again. That is why I wanted to rework the database tomarrow and force in somevalue into a field name uniqueID and just number the records 1 to 225 and then let [cart] take over. Or have I confused everybody more?=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== Associated Messages, from the most recent to the oldest:

    
  1. Re: [carts] and databases (grichter@panavise.com (Gary Richter) 1997)
  2. Re: [carts] and databases (Grant Hulbert 1997)
  3. [carts] and databases (grichter@panavise.com (Gary Richter) 1997)
>>When we tried to delete these >>records both with the same name it hung webcat. > >This bothers me, because obviously there should be nothing that hangs >WebCatalog. Are you sure that it was just the fact that 2 records had the >same id? You're supposed to be able to delete hundreds of records at once >by creating a search criteria in the [delete] that blows away any matching >records, so I fully expect your situation to work correctly no matter how >many identical records were found. > >>So can I just make the field where the [cart] value will go and just fill >>each recored like 1,2,3,4,5,6 and so forth for these 225 some odd records >>and then any new records will get the [cart] value? > We didn't use a search on another field other then the sku number we put in. See the second snip where it talks about BOTH records on the screen at once. I never expected this problem and the person doing the work never bother to ask, Hey there are 2 records on the delete search function and I want to delete them before Gary finds out I screwed up. Record 1 sku=10-30 name=Jones addr=12345 Main st anywhere usa Record 2 sku=10-30 name=Jones addr=12345 Main st anywhere usaperson put in I want to delete Jonesin the following snip

Find a Rep: Enter Data Base Record Number You Want to Delete


they got a search that they use to verify this is who they want to delete and BOTH records appearedFound [numFound] items matching your search <--The numfound was 2>[founditems]

[sku][firm] [contact] [addr1] [addr2] [phnum] [em] [hmpage] [rtype]
Rep Code:
Firm Name:
Contact:
Address1:
Address2:
Phone:
Fax:[faxnum]
E-Mail:
Home Page:
Type:


Cl ick here if this is the Record you want to Delete
then they entered clicked on the hyperlink and got[delete db=/webcatalog/rep.db&eqskudata=[sku]]and she hung-up.Now the sku in this example was a 4 digit number we created, but they created two identical records with the same sku value and the sku value has nothing to do with [carts], it was put in by them. So I had 2 records named 01-30. But if I would have created this data base like I created most since then using the [cart] value to control the record the problem is mute. In my opinion it is not a problem of webcat. I is a problem here of some sloppy coding in the learning curve. I just want to avoid it happening again. That is why I wanted to rework the database tomarrow and force in somevalue into a field name uniqueID and just number the records 1 to 225 and then let [cart] take over. Or have I confused everybody more?=============================================== Gary Richter PanaVise Products, Inc. 7540 Colbert Dr. Reno, Nevada 89511 Ph: 702.850.2900 Fx: 702.850.2929 Email: grichter@panavise.com http://www.panavise.com =============================================== grichter@panavise.com (Gary Richter)

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:

WCS Newbie question (1997) Prices coming up 0.00 (2001) Upgrade to wsV (2004) File dates in WebCatalog .tmpl/.inc (1997) Linux ODBC and the ODBC Bridge (2000) Bug? I don't know... (1999) bug in wn searching NT version? (1997) [WebDNA] Searching for multiple value [search .... 1,2,3] (2015) Authorize.Net and AIM (2004) cybercash (2002) Searching/sorting dates (1997) Search question (1999) PCS Customer submissions ? (1997) hidden (phantom) file downloads (2000) Cart Question (1998) WCS Newbie question (1997) creating writefile data from a nested search (1997) [ot] g5 xserve drives (2004) BIG PROBLEMS with Checkboxes!!! (1998) VeriSign News (2002)