Re: [WebDNA] Help with ReplaceFoundItems

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103093
interpreted = N
texte = You're still not getting the concept of regular html forms. Once you get that right, I think you'll be fine. This: NOT this: By the way, no need for the [input] tags if you are passing a known, clean [sku] value that is a simple alphanumeric value. Quote marks though, yes, always. Another BTW, no need for subsequent [url] tags if again, it's a value you control and you know to be clean. [FormWasSubmitted]=T will suffice. Terry >Ok, I moved it to the local developer version, as doing this >remotely was becoming a pain... I had even set the db permissions to >777 .. > >So here is what I have in the db, to keep things as simple as >possible, and am only working with 2 fields until I can solve the >issue: > >SKUapp_name >1test >2test1 >3test2 >4test3 >5test4 > >The edit page has the only the following, so I'm able to flip back >and forth between replace, and replacefounditems: > > >[!] >[showif [URL][FormWasSubmitted][/URL]=T] >[Replace >db=form.db&eqSKUdatarq=[URL][SKU][/URL]]app_name=[URL][app_name][/URL][/Replace] > >

Success

>[/showif] >[commitdatabase db=form.db] >[/!] >[showif [URL][FormWasSubmitted][/URL]=T] >[search db=form.db&eqSKUdatarq=[SKU]] >[ReplaceFoundItems]app_name=[app_name][/ReplaceFoundItems] > >[numfound] >[/search] > >

Success

>[/showif] > > > >[commitdatabase db=form.db] > >
> >[search db=form.db&eqapp_namedatarq=[app_name]] >[showif [numfound]>0] >[founditems] > >
> > > > > > > >
Full Name
> >
> >[/founditems] >[/showif] >[/search] >------------------------------------------ >The results on the page for numfound is: >0 >Success > >----------------------------------------- > >But the resulting URL is showing the data being passed? > >http://192.168.2.2/forms/admin/edit.tpl?FormWasSubmitted=T&1=1&test=123456789 ><--HERE > >Permissions on the database is 777, but it still won't write. > >I'm soooooooooo confused ... what am I missing? > >Rob > > > > >On 3-Aug-09, at 11:08 AM, Govinda wrote: > >> and if you are now indexing your db record via a unique [sku] >>string, then you need to be passing that 'sku' value in your form. >> e.g. >> >> right? Otherwise how does your [search] know which record you are >>trying to find/edit? >> >> -- >> >> Also, while troubelshooting, inside your [search] context, put a >>[numfound] tag so you can see if you even find a record. >> >> On Aug 3, 2009, at 8:46 AM, Rob wrote: >> >>> 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. >> >>> ... >>> >>> Are there any other reasons why it wouldn't write to the db? >>> >>> Rob >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ > >--------------------------------------------------------- >This message is sent to you because you are subscribed to >the mailing list . >To unsubscribe, E-mail to: >archives: http://mail.webdna.us/list/talk@webdna.us >old archives: http://dev.webdna.us/TalkListArchive/ -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. 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)
You're still not getting the concept of regular html forms. Once you get that right, I think you'll be fine. This: [input][SKU][/input]"> NOT this: [input][SKU][/input]"> By the way, no need for the [input] tags if you are passing a known, clean [sku] value that is a simple alphanumeric value. Quote marks though, yes, always. Another BTW, no need for subsequent [url] tags if again, it's a value you control and you know to be clean. [FormWasSubmitted]=T will suffice. Terry >Ok, I moved it to the local developer version, as doing this >remotely was becoming a pain... I had even set the db permissions to >777 .. > >So here is what I have in the db, to keep things as simple as >possible, and am only working with 2 fields until I can solve the >issue: > >SKUapp_name >1test >2test1 >3test2 >4test3 >5test4 > >The edit page has the only the following, so I'm able to flip back >and forth between replace, and replacefounditems: > > >[!] >[showif [url][FormWasSubmitted][/URL]=T] >[Replace >db=form.db&eqSKUdatarq=[url][SKU][/URL]]app_name=[url][app_name][/URL][/Replace] > >

Success

>[/showif] >[commitdatabase db=form.db] >[/!] >[showif [url][FormWasSubmitted][/URL]=T] >[search db=form.db&eqSKUdatarq=[SKU]] >[replacefounditems]app_name=[app_name][/ReplaceFoundItems] > >[numfound] >[/search] > >

Success

>[/showif] > > > >[commitdatabase db=form.db] > >
> >[search db=form.db&eqapp_namedatarq=[app_name]] >[showif [numfound]>0] >[founditems] > >
> >[input][SKU][/input]"> > > > > > >
Full Name
> >
> >[/founditems] >[/showif] >[/search] >------------------------------------------ >The results on the page for numfound is: >0 >Success > >----------------------------------------- > >But the resulting URL is showing the data being passed? > >http://192.168.2.2/forms/admin/edit.tpl?FormWasSubmitted=T&1=1&test=123456789 ><--HERE > >Permissions on the database is 777, but it still won't write. > >I'm soooooooooo confused ... what am I missing? > >Rob > > > > >On 3-Aug-09, at 11:08 AM, Govinda wrote: > >> and if you are now indexing your db record via a unique [sku] >>string, then you need to be passing that 'sku' value in your form. >> e.g. [input][sku][/input]"> >> >> right? Otherwise how does your [search] know which record you are >>trying to find/edit? >> >> -- >> >> Also, while troubelshooting, inside your [search] context, put a >>[numfound] tag so you can see if you even find a record. >> >> On Aug 3, 2009, at 8:46 AM, Rob wrote: >> >>> 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. >> >>> ... >>> >>> Are there any other reasons why it wouldn't write to the db? >>> >>> Rob >> >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> old archives: http://dev.webdna.us/TalkListArchive/ > >--------------------------------------------------------- >This message is sent to you because you are subscribed to >the mailing list . >To unsubscribe, E-mail to: >archives: http://mail.webdna.us/list/talk@webdna.us >old archives: http://dev.webdna.us/TalkListArchive/ -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. Terry Wilson

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:

syntax question, not in online refernce (1997) Rhapsody? (1997) WebCat2b13MacPlugIn - syntax to convert date (1997) item sorting (1997) PSC recommends what date format yr 2000??? (1997) Suffix Mapping (1997) Upgrading old WebCat Database Files (1997) downloading binary files ussing mime and tcpconnect (2004) Different Tax levels (1998) UK credit card info follow-up (1997) [ShowIf] and empty fields (1997) duplicate cart numbers - New P3P Rule (2002) Web Browser %Numbers - A must read for web developers (2003) Does summarizing found records require sorting on that samefield? (1999) rotating thumbnails (1997) Popup Menu Options (1998) Searchable list archive (1997) Math with Time (1997) Sku numbers (1997) Still Stumped on ShowNext...HELP! (1997)