Re: [WebDNA] maybe silly suggestion? [founditems]
This WebDNA talk-list message is from 2015
It keeps the original formatting.
numero = 111901
interpreted = N
texte = Or just put the search parameters in a variable up top to retrieve as =needed with showifs. This is quite handy for repurposing found items =loops, such as a nicely formatted table of info that is sorted by =various fields (just discussed this a few days ago). This has the added =benefit of letting you keep constants like eventdatetype=3Ddate, max=3D25,= etc in the actual search code to keep your parameters easier to read =and manage. This would certainly put your controller logic separate from =your display code.[showif =[somesearch]=3Dt][text]searchforwhat=3Ddb=3Dallthethings.db&blahblahblah[/=text][/showif][showif =[someothersearch]=3Dt][text]searchforwhat=3Ddb=3Dallthethings.db&blahblahb=lah[/text][/showif][search [searchforwhat]&max=3D25&lastnamesort=3D1]>=20>=20> On Jan 14, 2015, at 2:57 PM, Brian Burton
wrote:>=20>> to help separate my controller logic from my display code it would be =awesome to have a shortcut like:>> [search db=3Dallthethings.db&blahblahblah][savefounditems =name=3Dpeoplenameddave][/search]>>=20>>=20>>=20>>=20>> then later in the page, where i=92m rendering the html>> [displayfounditems use=3Dpeoplenameddave] html things =[/displayfounditems]>>=20>>=20>>=20>> I know it looks like it=92s not saving that much code, but I can see =switching which search I want in the controller, and still being able to =use a universal founditems loop lower in the code. Also the ability to =reuse search results (if needed) without doing the same search again.=20>>=20>> ok, feel free to start telling me how you can do this with a table =(you=92re missing the point) or how we don=92t need more tags or =whatever :)=20>>=20>>=20>> -Brian B. Burton>> --------------------------------------------------------->> 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>> Bug Reporting: support@webdna.us>=20> ---------------------------------------------------------> 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> Bug Reporting: support@webdna.us
Associated Messages, from the most recent to the oldest:
Or just put the search parameters in a variable up top to retrieve as =needed with showifs. This is quite handy for repurposing found items =loops, such as a nicely formatted table of info that is sorted by =various fields (just discussed this a few days ago). This has the added =benefit of letting you keep constants like eventdatetype=3Ddate, max=3D25,= etc in the actual search code to keep your parameters easier to read =and manage. This would certainly put your controller logic separate from =your display code.[showif =[somesearch]=3Dt][text]searchforwhat=3Ddb=3Dallthethings.db&blahblahblah[/=text][/showif][showif =[someothersearch]=3Dt][text]searchforwhat=3Ddb=3Dallthethings.db&blahblahb=lah[/text][/showif][search [searchforwhat]&max=3D25&lastnamesort=3D1]>=20>=20> On Jan 14, 2015, at 2:57 PM, Brian Burton wrote:>=20>> to help separate my controller logic from my display code it would be =awesome to have a shortcut like:>> [search db=3Dallthethings.db&blahblahblah][savefounditems =name=3Dpeoplenameddave][/search]>>=20>>=20>>=20>>=20>> then later in the page, where i=92m rendering the html>> [displayfounditems use=3Dpeoplenameddave] html things =[/displayfounditems]>>=20>>=20>>=20>> I know it looks like it=92s not saving that much code, but I can see =switching which search I want in the controller, and still being able to =use a universal founditems loop lower in the code. Also the ability to =reuse search results (if needed) without doing the same search again.=20>>=20>> ok, feel free to start telling me how you can do this with a table =(you=92re missing the point) or how we don=92t need more tags or =whatever :)=20>>=20>>=20>> -Brian B. Burton>> --------------------------------------------------------->> 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>> Bug Reporting: support@webdna.us>=20> ---------------------------------------------------------> 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> Bug Reporting: support@webdna.us
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:
Back to Authnet with storebuilder (2003)
Adding up weights (1998)
[WebDNA] Redirecting incoming URL request to https page (2018)
WCf2 and nested tags (1997)
Emailer setup (1997)
File Upload (1997)
[WebDNA] When was autonumber added? (2010)
[Semi-OT] Kinda cool tool (how does it work?) (2004)
ODBC Help (2004)
extending webcatalog (1997)
[Announce]: Web server security and password protection (1997)
E-mail formating question (1999)
Help with Repost Data msg from form (1997)
So many lookers, hey smith micro (2003)
Error Log.db --however (1997)
Problem upgrading from 3.0.8 to 4.0 on MS Windoze 98 / PWS (2000)
WebCat2b12 CGI Mac - [shownext] problem (1997)
Bug? (1997)
[WebDNA] incomplete redirect tag (2009)
Encryption of E-mail (1998)