Re: [WebDNA] Help with ReplaceFoundItems

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103088
interpreted = N
texte = But this: > [showif [URL][FormWasSubmitted][/URL]=T] > [search db=form.db&neSKUdatarq=[SKU]] > [ReplaceFoundItems]app_name=ship_name[/ReplaceFoundItems] > [/search] would set the value for the 'app_name' field (in the record where the 'sku' field was equal to [sku]) to literally "ship_name". If you want that value to come from the form input named "ship_name", then do this: [showif [URL][FormWasSubmitted][/URL]=T] [search db=form.db&neSKUdatarq=[SKU]] [ReplaceFoundItems]app_name=[URL][ship_name][/URL][/ReplaceFoundItems] [/search] When Ken said to drop those square brackets, he meant just in the form input names. But if you still can't write to the db by any method, then it means there are still unanswered Q's. Try changing your code to the below so we can see exactly what are the vars' values at the important moment of trying to write to the db. Copy and paste into a reply here so we can see. |showif [URL][FormWasSubmitted][/URL]=T| |search db=form.db&neSKUdatarq=[SKU]| |ReplaceFoundItems|app_name=[URL][ship_name][/URL]|/ReplaceFoundItems| |/search| (I just changed some of the square brackets into pipe symbols so we can see into what you are trying to tell webdna to do.) BTW - How are you determining that it is not writing to the db? Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Help with ReplaceFoundItems (Rob 2009)
  2. Re: [WebDNA] Help with ReplaceFoundItems (Govinda 2009)
  3. Re: [WebDNA] Help with ReplaceFoundItems (Rob 2009)
  4. Re: [WebDNA] Help with ReplaceFoundItems ("Dan Strong" 2009)
  5. Re: [WebDNA] Help with ReplaceFoundItems (Terry Wilson 2009)
  6. Re: [WebDNA] Help with ReplaceFoundItems (Terry Wilson 2009)
  7. Re: [WebDNA] Help with ReplaceFoundItems (Rob 2009)
  8. Re: [WebDNA] Help with ReplaceFoundItems (Govinda 2009)
  9. Re: [WebDNA] Help with ReplaceFoundItems (Govinda 2009)
  10. Re: [WebDNA] Help with ReplaceFoundItems (Kenneth Grome 2009)
  11. Re: [WebDNA] Help with ReplaceFoundItems (Rob 2009)
  12. Re: [WebDNA] Help with ReplaceFoundItems (Govinda 2009)
  13. Re: [WebDNA] Help with ReplaceFoundItems (Kenneth Grome 2009)
  14. Re: [WebDNA] Help with ReplaceFoundItems (Govinda 2009)
  15. Re: [WebDNA] Help with ReplaceFoundItems (Govinda 2009)
  16. Re: New: Re: [WebDNA] Help with ReplaceFoundItems (Rob 2009)
  17. New: Re: [WebDNA] Help with ReplaceFoundItems (Donovan Brooke 2009)
  18. [WebDNA] Help with ReplaceFoundItems (Rob 2009)
But this: > [showif [url][FormWasSubmitted][/URL]=T] > [search db=form.db&neSKUdatarq=[SKU]] > [replacefounditems]app_name=ship_name[/ReplaceFoundItems] > [/search] would set the value for the 'app_name' field (in the record where the 'sku' field was equal to [sku]) to literally "ship_name". If you want that value to come from the form input named "ship_name", then do this: [showif [url][FormWasSubmitted][/URL]=T] [search db=form.db&neSKUdatarq=[SKU]] [replacefounditems]app_name=[url][ship_name][/URL][/ReplaceFoundItems] [/search] When Ken said to drop those square brackets, he meant just in the form input names. But if you still can't write to the db by any method, then it means there are still unanswered Q's. Try changing your code to the below so we can see exactly what are the vars' values at the important moment of trying to write to the db. Copy and paste into a reply here so we can see. |showif [url][FormWasSubmitted][/URL]=T| |search db=form.db&neSKUdatarq=[SKU]| |ReplaceFoundItems|app_name=[url][ship_name][/URL]|/ReplaceFoundItems| |/search| (I just changed some of the square brackets into pipe symbols so we can see into what you are trying to tell webdna to do.) BTW - How are you determining that it is not writing to the db? Govinda

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:

WebCat2b15MacPlugin - [protect] (1997) Sense/Disallow HTML tags during $Append (1997) [ShowIf] if the varieable exists (1998) Showing once on a founditems (1997) synching databases on multiple servers (1997) Dubble Sku's in a Database (1999) WebCat2 beta 11 - new prefs ... (1997) Suffix Mapping (1997) Country & Ship-to address & other fields ? (1997) One more try (1997) RE: AccountAuthorizer doesn't seem to work (1997) Assigning new CART number (1997) Help name our technology! (1997) Date search - yes or no (1997) Feature Request [TABLE ... &delimiters=] (2007) Templates on Unix & CGI on Mac? (1997) Cut off from the list and can't get an answer to the confused re:QTY price updating question (1998) Unexpected error (1997) Upgrade to 3.07 problems (2000) Solve the Problem, get the code! (2001)