Initialize your variable before the founditems loop ([text]it=ems=3D[/text]), then in your founditems loop, add them to the same text var=iable.
[text]items=3D[items],[sku][/text]
Since you're on the same=C2=A0 page, it's easy; [items] can be used= to exclude them in the next search.
On Tue, 26 Apr 2016 11:03:52 -0500<=br>=C2=A0Richard Kwasniewski <richiekwas@gmail.com> wrote:
=C2=A0But since I'm showing 6 random items found initially, I can't= seem to
grab
=C2=A0these 6 SKUs and place them anywhere, just one.
=C2=A0 Adding [text show=3DT]found=3D[SKU][/text] just shows me the last SK=U of
the 6,
=C2=A0not the other 5.
=C2=A0I'd need the other 5 snatched up somehow
=C2=A0 Also wouldn't hidden input fields be used only if I was passing =info
to
=C2=A0another page? I'm not, all this is taking place on the same page =at
the
=C2=A0same time.
=C2=A0 =C2=A0 On Tue, Apr 26, 2016 at 10:56 AM, Terry Wilson <terry@terryfic.com>
wrote:
=C2=A0Because your sort is random. No two searches will be the same. It seemed---------------------------------------------------------
to work the first time because it just didn't happen to find any of the=
previous ones. Please see my previous post and the followup by Lawrence.
Terry
On Tue, 26 Apr 2016 10:31:41 -0500
=C2=A0Richard Kwasniewski <richiekwas@gmail.com> wrote:
=C2=A0Not sure what happened, it seemed like adding the "startat=3D7&q=uot; did
work
=C2=A0initially, but no more.... I may have missed matching up the items.=C2=A0 here is my search code.:
=C2=A0 =C2=A0[search
=C2=A0db=3D^/rs/products.db&woSECTIONSdatarq=3D12&SECTIONSword=3Dww=&namewbrk=3D+&eqVisibledatarq=3DT&eqFeatureddatarq=3DYes&TI=TLEsort=3D1&TITLEsdir=3Dra&max=3D6]
=C2=A0[founditems]
=C2=A06 random items shown.....
=C2=A0[/founditems]
=C2=A0[/search]
=C2=A0 =C2=A0Right beneath this I would have my 2nd search:
=C2=A0 [search
=C2=A0db=3D^/rs/products.db&woSECTIONSdatarq=3D12&SECTIONSword=3Dww=&namewbrk=3D+&eqVisibledatarq=3DT&eqFeatureddatarq=3DYes&TI=TLEsort=3D1&TITLEsdir=3Dra]
=C2=A0[founditems]
=C2=A0Show all other items omitting the 6 found above....
=C2=A0[/founditems]
=C2=A0[/search]
=C2=A0 =C2=A0All this takes place on the exact same page, so cookies don=9;t seem to
be an
=C2=A0option....
=C2=A0 Trying the text variable route.... if I add this within the 1st
search
=C2=A0[text show=3DT]found=3D[SKU][/text]
=C2=A0shows me the SKUs of the 6 chosen randomly in that 1st search, but
how
=C2=A0would I place all 6 of those SKUs within that 2nd search?
=C2=A0 &neSKUdatarq=3D[found] is what I was thinking, but that can'=t work on 6
SKUs
=C2=A0 =C2=A0 =C2=A0On Tue, Apr 26, 2016 at 8:09 AM, Lawrence Banahan
<banahan.l@gmai=l.com>
=C2=A0wrote:Hi, you could also use a hidden input to keep the previous IDs and exclude<=br>them from next searchThis message is sent to you because you are subscribed to
Lawrence
2016-04-26 14:57 GMT+02:00 Terry Wilson <terry@terryfic.com>:
But you said you were searching for random results. I don't see how thi=swould work.--------------------------------------------------------- This message issent to you because you are subscribed to the mailing list . To
You could collect the record IDs from the first search in a cookie, and
exclude those from the second search, or if on the same page, collect
them
in a text variable.
Terry
Sent from my iPad
On Apr 26, 2016, at 5:17 AM, Richard Kwasniewski <richiekwas@gmail.com>
wrote:
Well all righty...
That "startat=3D7" seems to work just fine with that 2nd search/r=esults
etc.
Thanks
On Tue, Apr 26, 2016 at 6:53 AM, Tom Duke <tom@revolutionaries.ie>
wrote:
Richard,
Hi - if you have the same search and sorting criteria, then add:
=C2=A0 =C2=A0&startat=3D7
to your second search.
- Tom
--------------------------------------------------------- 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
--------------------------------------------------------- This message issent 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
--------------------------------------------------------- This message issent 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
unsubscribe, E-mail to: archives:
http://mail.webdna.us/list/talk@webdna.us Bug Reporting=:
support@webdna.us
---------------------------------------------------------
the mailing list <ta=lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo=rt@webdna.us
This message is sent to you because you are subscribed to
the mailing list <ta=lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo=rt@webdna.us
|
Initialize your variable before the founditems loop ([text]it=ems=3D[/text]), then in your founditems loop, add them to the same text var=iable.
[text]items=3D[items],[sku][/text]
Since you're on the same=C2=A0 page, it's easy; [items] can be used= to exclude them in the next search.
On Tue, 26 Apr 2016 11:03:52 -0500<=br>=C2=A0Richard Kwasniewski <richiekwas@gmail.com> wrote:
=C2=A0But since I'm showing 6 random items found initially, I can't= seem to
grab
=C2=A0these 6 SKUs and place them anywhere, just one.
=C2=A0 Adding [text show=3DT]found=3D[SKU][/text] just shows me the last SK=U of
the 6,
=C2=A0not the other 5.
=C2=A0I'd need the other 5 snatched up somehow
=C2=A0 Also wouldn't hidden input fields be used only if I was passing =info
to
=C2=A0another page? I'm not, all this is taking place on the same page =at
the
=C2=A0same time.
=C2=A0 =C2=A0 On Tue, Apr 26, 2016 at 10:56 AM, Terry Wilson <terry@terryfic.com>
wrote:
=C2=A0Because your sort is random. No two searches will be the same. It seemed---------------------------------------------------------
to work the first time because it just didn't happen to find any of the=
previous ones. Please see my previous post and the followup by Lawrence.
Terry
On Tue, 26 Apr 2016 10:31:41 -0500
=C2=A0Richard Kwasniewski <richiekwas@gmail.com> wrote:
=C2=A0Not sure what happened, it seemed like adding the "startat=3D7&q=uot; did
work
=C2=A0initially, but no more.... I may have missed matching up the items.=C2=A0 here is my search code.:
=C2=A0 =C2=A0[search
=C2=A0db=3D^/rs/products.db&woSECTIONSdatarq=3D12&SECTIONSword=3Dww=&namewbrk=3D+&eqVisibledatarq=3DT&eqFeatureddatarq=3DYes&TI=TLEsort=3D1&TITLEsdir=3Dra&max=3D6]
=C2=A0[founditems]
=C2=A06 random items shown.....
=C2=A0[/founditems]
=C2=A0[/search]
=C2=A0 =C2=A0Right beneath this I would have my 2nd search:
=C2=A0 [search
=C2=A0db=3D^/rs/products.db&woSECTIONSdatarq=3D12&SECTIONSword=3Dww=&namewbrk=3D+&eqVisibledatarq=3DT&eqFeatureddatarq=3DYes&TI=TLEsort=3D1&TITLEsdir=3Dra]
=C2=A0[founditems]
=C2=A0Show all other items omitting the 6 found above....
=C2=A0[/founditems]
=C2=A0[/search]
=C2=A0 =C2=A0All this takes place on the exact same page, so cookies don=9;t seem to
be an
=C2=A0option....
=C2=A0 Trying the text variable route.... if I add this within the 1st
search
=C2=A0[text show=3DT]found=3D[SKU][/text]
=C2=A0shows me the SKUs of the 6 chosen randomly in that 1st search, but
how
=C2=A0would I place all 6 of those SKUs within that 2nd search?
=C2=A0 &neSKUdatarq=3D[found] is what I was thinking, but that can'=t work on 6
SKUs
=C2=A0 =C2=A0 =C2=A0On Tue, Apr 26, 2016 at 8:09 AM, Lawrence Banahan
<banahan.l@gmai=l.com>
=C2=A0wrote:Hi, you could also use a hidden input to keep the previous IDs and exclude<=br>them from next searchThis message is sent to you because you are subscribed to
Lawrence
2016-04-26 14:57 GMT+02:00 Terry Wilson <terry@terryfic.com>:
But you said you were searching for random results. I don't see how thi=swould work.--------------------------------------------------------- This message issent to you because you are subscribed to the mailing list . To
You could collect the record IDs from the first search in a cookie, and
exclude those from the second search, or if on the same page, collect
them
in a text variable.
Terry
Sent from my iPad
On Apr 26, 2016, at 5:17 AM, Richard Kwasniewski <richiekwas@gmail.com>
wrote:
Well all righty...
That "startat=3D7" seems to work just fine with that 2nd search/r=esults
etc.
Thanks
On Tue, Apr 26, 2016 at 6:53 AM, Tom Duke <tom@revolutionaries.ie>
wrote:
Richard,
Hi - if you have the same search and sorting criteria, then add:
=C2=A0 =C2=A0&startat=3D7
to your second search.
- Tom
--------------------------------------------------------- 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
--------------------------------------------------------- This message issent 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
--------------------------------------------------------- This message issent 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
unsubscribe, E-mail to: archives:
http://mail.webdna.us/list/talk@webdna.us Bug Reporting=:
support@webdna.us
---------------------------------------------------------
the mailing list <ta=lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo=rt@webdna.us
This message is sent to you because you are subscribed to
the mailing list <ta=lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo=rt@webdna.us
DOWNLOAD WEBDNA NOW!
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...