Re: [WebDNA] Help with ReplaceFoundItems
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103083
interpreted = N
texte = Sorry ... was away for the weekend...Thank you for all the suggestions...Ok... tried the suggestions, and made sure the db was writeable, but it doesn't seem to write to it... which is weird .. Currently, I'm just working with the 3 fields until I get the procedure down. I also added a hidden SKU field to give it a unique ID.Tried all kinds of variations of:[showif [URL][FormWasSubmitted][/URL]=T][Replace db=form.db&eqSKUdatarq=[URL][SKU][/URL]]ship_name=[URL] [ship_name][/URL][/Replace][/showif]And :[showif [URL][FormWasSubmitted][/URL]=T][search db=form.db&neSKUdatarq=[SKU]][ReplaceFoundItems]app_name=ship_name[/ReplaceFoundItems][/search]I even added [commitdatabase db=form.db] to the test form...Are there any other reasons why it wouldn't write to the db?RobOn 3-Aug-09, at 9:02 AM, Govinda wrote:> Rob,>> I didn't catch this, what Ken says. It does look like you meant to > name your form inputs, e.g. "ship_name" as opposed to "[ship_name]".>> But I would still offer the other things I mentioned too.>> -G>> On Aug 3, 2009, at 7:48 AM, Kenneth Grome wrote:>>> Rob,>>>> Your form is using incorrect names.>>>> Get rid of the brackets around the field names, then whatever>> replacefounditems code you're already using might work.>>>> Sincerely,>> Ken Grome>>>>>>>>> I seem to not be able to grasp something here... which is>>> normal lately... I have to build an editable form and>>> need to replace any changes in a db record.>>>>>> ie:>>> Fields>>> ship_name ship_address ship_city>>>>>>>>> Page code sample:>>> [search db=form.db&eqapp_namedatarq=[ship_name]]>>> [showif [numfound]>0]>>> [founditems]>>>>>>