numero = 39959
interpreted = N
texte = If I do this I and I have 5 items having their approved field being changed, no data gets written back to the dbWhen I set up a page showing what formvariables are being passed to this page with [replace] what I see is the first field only.Am I using [formvariables] incorrectly here?? > >WebCat can see all the passed in uniqueID values, but only within >a [formvariables] context. To set the approved flag for all the checked records, >you could do this:>[formvariables name=uniqueID&exact=T]>[replace >db=../listings.db&equniqueIDdata=[value]]approved=[approved][/replace]>[/formvariables]>>- Brian > Here's my scenario: > > A search in a database is done. > the results page shows > > name phone createdate approved uniqueID > > I'm wanting to be able to Approve or Unapprove on this page, with the > results being written back into the database records > The approve/unapprove items change daily. > > I've tried this with checkboxes and with a yes/no select form element. > Both ways I get weird results, sometimes the approve part gets written > back as wanted, other times not, most times not. > > If I go to the individual item and change Approved all behaves asneeded. > Its just in this mass change scenario it fails. > > I saw a post where I think this was sorta answered, but i got lostfollowing > the code . . . > . > code from the search result page ========================== > >
width=100%> >
>
Name
>
Phone
>
Created
>
Approved
>
UniqueID
>
> > [FoundItems] >
> > > > > > replace context code follows on the submit approved changes page > ========================== > > > > [replace > db=../listings.db&equniqueIDdata=[uniqueID]]&approved=[approved][/replace] >-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
If I do this I and I have 5 items having their approved field being changed, no data gets written back to the dbWhen I set up a page showing what formvariables are being passed to this page with [replace] what I see is the first field only.Am I using [formvariables] incorrectly here?? > >WebCat can see all the passed in uniqueID values, but only within >a [formvariables] context. To set the approved flag for all the checked records, >you could do this:>[formvariables name=uniqueID&exact=T]>[replace >db=../listings.db&equniqueIDdata=[value]]approved=[approved][/replace]>[/formvariables]>>- Brian > Here's my scenario: > > A search in a database is done. > the results page shows > > name phone createdate approved uniqueID > > I'm wanting to be able to Approve or Unapprove on this page, with the > results being written back into the database records > The approve/unapprove items change daily. > > I've tried this with checkboxes and with a yes/no select form element. > Both ways I get weird results, sometimes the approve part gets written > back as wanted, other times not, most times not. > > If I go to the individual item and change Approved all behaves asneeded. > Its just in this mass change scenario it fails. > > I saw a post where I think this was sorta answered, but i got lostfollowing > the code . . . > . > code from the search result page ========================== > >
> > > > > > replace context code follows on the submit approved changes page > ========================== > > > > [replace > db=../listings.db&equniqueIDdata=[uniqueID]]&approved=[approved][/replace] >-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Lester Emo
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...