Re: [append] problem

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 11778
interpreted = N
texte = >Hello everyone. > >I am having an unusual problem and I'm hoping somebody has an answer to this. > >I am trying to merge an update database into the main database. I have the >following code of an add page and it doesn't work. I also have a replace >page and a delete page and none of them work. BTW, the records in the >update database have A for Add, C for Replace and D for delete. > >Both databases have identical field names and both were exported from >Filemaker pro as Merge format. > >However, if I get rid of the [append] and simply do a search it works fine. >If I enter the information by hand (for example sku=32342 instead of sku= >[sku]) it works fine also.If it works fine with manually-entered numbers and not the numbers WebCat is putting into the [sku] tag, then WebCat's not getting the right [sku]. This means your code is right except for the [sku] part ...If you're only going to do this once and not all the time, why don't you just duplicate both databases and copy the data from the small one and paste it into the big one, then take your site off line for just long enough to replace the current database with the newly-merged one?Of course, if this is something you have to do all the time, then you'll have to diagnose the problem in your WebDNA ...>[search db=/clubmachome/IngramTestSite/DatabaseUpdate.db&eqstatusdatarq=A] > >[append >/clubmachome/IngramTestsite/IngramDatabase.db]Status=[Status]&Sku=[Sku]& >IngramReplacementSku=[IngramReplacementSku]Manufacturer=[Manufacturer]&VendorN >ame=[VendorName]&Text1=[Text1]&Description2=[Description2]&Price=[Price]&Vendo >rPart=[VendorPart]&Weight=[Weight]&CustomerPartNumber= >[CustomerPartNumber]&UPCCode=[UPCCode]&Length=[Length]&Width=[Width]&Height= >[Height]&PriceChangeFlag=[PriceChangeFlag]&CustomerPrice=[CustomerPrice]& >SpecialPriceFlag=[SpecialPriceFlag]&AvailabilityFlag=[AvailabilityFlag]& >AuthorizedToBuyFlag=[AuthorizedToBuyFlag]&AllianceFlag=[AllianceFlag]&Buyer= >[Buyer]&MediaType=[MediaType]&Category=[Category]&NewItemReceiptFlag= >[NewItemReceiptFlag]&InstantRebateFlag=[InstantRebateFlag][/append]This is not all of your WebDNA code from that page, is it?Where's the [founditems] context?Yyou have to put the append context inside a [founditems] context or WebCat won't know what you mean by [sku].Also, where's the [/search] tag?I 'assume' there's a [/search] tag somewhere on down the page that you forgot to include in this example ... :)Sincerely, Ken Grome ..... ken@iav.com http://usarea.net/home.html Associated Messages, from the most recent to the oldest:

    
  1. Re: [append] problems v2 ( "Scott Anderson" 2003)
  2. [append] problems v2 ( Tim Robinson 2003)
  3. Re: [append] problems ( Tim Robinson 2003)
  4. Re: [append] problems ( "Scott Anderson" 2003)
  5. Re: [append] problems ( Tim Robinson 2003)
  6. Re: [append] problems ( Tim Robinson 2003)
  7. Re: [append] problems ( Alain Russell 2003)
  8. Re: [append] problems ( Tim Robinson 2003)
  9. Re: [append] problems ( Alain Russell 2003)
  10. [append] problems ( Tim Robinson 2003)
  11. Re: [append] problem (Kenneth Grome 1997)
  12. [append] problem (Lee Greene 1997)
>Hello everyone. > >I am having an unusual problem and I'm hoping somebody has an answer to this. > >I am trying to merge an update database into the main database. I have the >following code of an add page and it doesn't work. I also have a replace >page and a delete page and none of them work. BTW, the records in the >update database have A for Add, C for Replace and D for delete. > >Both databases have identical field names and both were exported from >Filemaker pro as Merge format. > >However, if I get rid of the [append] and simply do a search it works fine. >If I enter the information by hand (for example sku=32342 instead of sku= >[sku]) it works fine also.If it works fine with manually-entered numbers and not the numbers WebCat is putting into the [sku] tag, then WebCat's not getting the right [sku]. This means your code is right except for the [sku] part ...If you're only going to do this once and not all the time, why don't you just duplicate both databases and copy the data from the small one and paste it into the big one, then take your site off line for just long enough to replace the current database with the newly-merged one?Of course, if this is something you have to do all the time, then you'll have to diagnose the problem in your WebDNA ...>[search db=/clubmachome/IngramTestSite/DatabaseUpdate.db&eqstatusdatarq=A] > >[append >/clubmachome/IngramTestsite/IngramDatabase.db]Status=[Status]&Sku=[Sku]& >IngramReplacementSku=[IngramReplacementSku]Manufacturer=[Manufacturer]&VendorN >ame=[VendorName]&Text1=[Text1]&Description2=[Description2]&Price=[Price]&Vendo >rPart=[VendorPart]&Weight=[Weight]&CustomerPartNumber= >[CustomerPartNumber]&UPCCode=[UPCCode]&Length=[Length]&Width=[Width]&Height= >[Height]&PriceChangeFlag=[PriceChangeFlag]&CustomerPrice=[CustomerPrice]& >SpecialPriceFlag=[SpecialPriceFlag]&AvailabilityFlag=[AvailabilityFlag]& >AuthorizedToBuyFlag=[AuthorizedToBuyFlag]&AllianceFlag=[AllianceFlag]&Buyer= >[Buyer]&MediaType=[MediaType]&Category=[Category]&NewItemReceiptFlag= >[NewItemReceiptFlag]&InstantRebateFlag=[InstantRebateFlag][/append]This is not all of your WebDNA code from that page, is it?Where's the [founditems] context?Yyou have to put the append context inside a [founditems] context or WebCat won't know what you mean by [sku].Also, where's the [/search] tag?I 'assume' there's a [/search] tag somewhere on down the page that you forgot to include in this example ... :)Sincerely, Ken Grome ..... ken@iav.com http://usarea.net/home.html 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:

PROBLEM (1997) nslookup (2000) Another bug to squash (WebCat2b13 Mac .acgi) (1997) addlineitems within formvariable loop (1998) Remove me from your list immeadiately (1998) Projects & Contractors (1997) ListFiles (1998) Been meaning to ask... (1997) Suffix or Line? (1999) NT or Mac (1997) Showif Context combined with Search (1997) getmimeheader host on my local machine (2003) Re:Searching for ALL / empty form field *the FINAL answer* (1997) For those of you not on the WebCatalog Beta... (1997) Ok here is a question? (1997) Pirated WebCat? NOT... (2003) # fields limited? (1997) New public beta available (1997) Re:Change WebDNA-Talk Mail due to no digest for 1wk (1997) [WriteFile] problems (1997)