Re: [WebDNA] add rows dynamically

This WebDNA talk-list message is from

2018


It keeps the original formatting.
numero = 114292
interpreted = N
texte = 1901 --000000000000a4bfec056e868cb3 Content-Type: text/plain; charset="UTF-8" I might be misunderstanding the placement of the showif part in the solution/example provided I'm now getting a single column of 6 items. The end/start of a row or the next row seems to be messed up? On Wed, Jun 13, 2018 at 8:32 AM, Alex McCombie wrote: > > [Search db=admin/kp.db&eqACTIVEdatarq=Yes] > [founditems] > > > [showif [index]\4][/showif] > [/founditems] > [/search] >
> >
> > > This is the easiest solution as it will simply make your rows 4 columns > wide each time. > > HTH > AJ > > > > On Jun 13, 2018, at 9:27 AM, Richard Kwasniewski > wrote: > > > > I searched in the talklist archives, actually found entries and examples > on what might be part of the solution back in 2011 and similar years, but > for some reason, all the code is either jumbled or non-existent. > > > > After a search, I need to populate a table and have a maximum of 4 table > cells per row > > > > If the search returns 6 items, I need to add a second row. > > > > [showif [index]\4] > > seems to be part of the answer, but that's where I stopped seeing code > examples in the old archives > > > > This is my table/search code so far stripped down to the very basics. > > > > > > [Search db=admin/kp.db&eqACTIVEdatarq=Yes] > > [founditems] > > > > > > > > [/founditems] > > [/search] > >
> > > >
> > > > > > What was I missing in those talklist entries??? > > > > > > > > --------------------------------------------------------- This message > is sent to you because you are subscribed to the mailing list > talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: > http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list talk@webdna.us > To unsubscribe, E-mail to: talk-leave@webdna.us > archives: http://www.webdna.us/page.dna?numero=55 > Bug Reporting: support@webdna.us > --000000000000a4bfec056e868cb3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I might be misunderstanding the placement of the showif=C2= =A0part in the solution/example provided

I'm now get= ting a single column of 6 items.
The end/start of a row or the ne= xt row seems to be messed up?


On Wed, Jun 13, 2018 at 8:32 AM, Alex McCo= mbie <alex@mccombie.com> wrote:
<table width=3D"100%" border=3D"0&= quot; align=3D"center">
[Search db=3Dadmin/kp.db&eqACTIVEdatarq=3DYes]
[founditems]
<tr>
<td align=3D"center" width=3D"200">
<img src=3D"images/middle/[thumbnail]" border=3D"1&q= uot;>
</td>
[showif [index]\4]</tr><tr>[/showif]
[/founditems]
[/search]
</table>


This is the easiest solution as it will simply make your rows 4 columns wid= e each time.

HTH
AJ


> On Jun 13, 2018, at 9:27 AM, Richard Kwasniewski <richiekwas@gmail.com> wrote:
>
> I searched in the talklist archives, actually found entries and exampl= es on what might be part of the solution back in 2011 and similar years, bu= t for some reason, all the code is either jumbled or non-existent.
>
> After a search, I need to populate a table and have a maximum of 4 tab= le cells per row
>
> If the search returns 6 items, I need to add a second row.
>
> [showif [index]\4]
> seems to be part of the answer, but that's where I stopped seeing = code examples in the old archives
>
> This is my table/search code so far stripped down to the very basics.<= br> >
> <table width=3D"100%" border=3D"0" align=3D&quo= t;center">
> [Search db=3Dadmin/kp.db&eqACTIVEdatarq=3DYes]
> [founditems]
> <tr>
> <td align=3D"center" width=3D"200">
> <img src=3D"images/middle/[thumbnail]" border=3D&quo= t;1">
> </td>
> </tr>
> [/founditems]
> [/search]
> </table>
>
>
> What was I missing in those talklist entries???
>
>
>
> -----------------------------------------------------= ---- This message is sent to you because you are subscribed to the mailing = list talk@webdna.us To unsubscribe, E= -mail to: talk-leave@webdna.us = archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us=

---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list talk@webdna.us
To unsubscribe, E-mail to: talk-lea= ve@webdna.us
archives: http://www.webdna.us/page.dna?numero=3D55
Bug Reporting:
support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --000000000000a4bfec056e868cb3-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] add rows dynamically (Richard Kwasniewski 2018)
  2. Re: [WebDNA] add rows dynamically (Alex Mccombie 2018)
  3. Re: [WebDNA] add rows dynamically (Richard Kwasniewski 2018)
  4. Re: [WebDNA] add rows dynamically (Kenneth Grome 2018)
  5. Re: [WebDNA] add rows dynamically (Alex McCombie 2018)
  6. Re: [WebDNA] add rows dynamically (Richard Kwasniewski 2018)
  7. Re: [WebDNA] add rows dynamically (Alex McCombie 2018)
  8. [WebDNA] add rows dynamically (Richard Kwasniewski 2018)
1901 --000000000000a4bfec056e868cb3 Content-Type: text/plain; charset="UTF-8" I might be misunderstanding the placement of the showif part in the solution/example provided I'm now getting a single column of 6 items. The end/start of a row or the next row seems to be messed up? On Wed, Jun 13, 2018 at 8:32 AM, Alex McCombie wrote: > > [Search db=admin/kp.db&eqACTIVEdatarq=Yes] > [founditems] > > > [showif [index]\4][/showif] > [/founditems] > [/search] >
> >
> > > This is the easiest solution as it will simply make your rows 4 columns > wide each time. > > HTH > AJ > > > > On Jun 13, 2018, at 9:27 AM, Richard Kwasniewski > wrote: > > > > I searched in the talklist archives, actually found entries and examples > on what might be part of the solution back in 2011 and similar years, but > for some reason, all the code is either jumbled or non-existent. > > > > After a search, I need to populate a table and have a maximum of 4 table > cells per row > > > > If the search returns 6 items, I need to add a second row. > > > > [showif [index]\4] > > seems to be part of the answer, but that's where I stopped seeing code > examples in the old archives > > > > This is my table/search code so far stripped down to the very basics. > > > > > > [Search db=admin/kp.db&eqACTIVEdatarq=Yes] > > [founditems] > > > > > > > > [/founditems] > > [/search] > >
> > > >
> > > > > > What was I missing in those talklist entries??? > > > > > > > > --------------------------------------------------------- This message > is sent to you because you are subscribed to the mailing list > talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: > http://www.webdna.us/page.dna?numero=55 Bug Reporting: support@webdna.us > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list talk@webdna.us > To unsubscribe, E-mail to: talk-leave@webdna.us > archives: http://www.webdna.us/page.dna?numero=55 > Bug Reporting: support@webdna.us > --000000000000a4bfec056e868cb3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I might be misunderstanding the placement of the showif=C2= =A0part in the solution/example provided

I'm now get= ting a single column of 6 items.
The end/start of a row or the ne= xt row seems to be messed up?


On Wed, Jun 13, 2018 at 8:32 AM, Alex McCo= mbie <alex@mccombie.com> wrote:
<table width=3D"100%" border=3D"0&= quot; align=3D"center">
[Search db=3Dadmin/kp.db&eqACTIVEdatarq=3DYes]
[founditems]
<tr>
<td align=3D"center" width=3D"200">
<img src=3D"images/middle/[thumbnail]" border=3D"1&q= uot;>
</td>
[showif [index]\4]</tr><tr>[/showif]
[/founditems]
[/search]
</table>


This is the easiest solution as it will simply make your rows 4 columns wid= e each time.

HTH
AJ


> On Jun 13, 2018, at 9:27 AM, Richard Kwasniewski <richiekwas@gmail.com> wrote:
>
> I searched in the talklist archives, actually found entries and exampl= es on what might be part of the solution back in 2011 and similar years, bu= t for some reason, all the code is either jumbled or non-existent.
>
> After a search, I need to populate a table and have a maximum of 4 tab= le cells per row
>
> If the search returns 6 items, I need to add a second row.
>
> [showif [index]\4]
> seems to be part of the answer, but that's where I stopped seeing = code examples in the old archives
>
> This is my table/search code so far stripped down to the very basics.<= br> >
> <table width=3D"100%" border=3D"0" align=3D&quo= t;center">
> [Search db=3Dadmin/kp.db&eqACTIVEdatarq=3DYes]
> [founditems]
> <tr>
> <td align=3D"center" width=3D"200">
> <img src=3D"images/middle/[thumbnail]" border=3D&quo= t;1">
> </td>
> </tr>
> [/founditems]
> [/search]
> </table>
>
>
> What was I missing in those talklist entries???
>
>
>
> -----------------------------------------------------= ---- This message is sent to you because you are subscribed to the mailing = list talk@webdna.us To unsubscribe, E= -mail to: talk-leave@webdna.us = archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us=

---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list talk@webdna.us
To unsubscribe, E-mail to: talk-lea= ve@webdna.us
archives: http://www.webdna.us/page.dna?numero=3D55
Bug Reporting:
support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --000000000000a4bfec056e868cb3-- . Richard Kwasniewski

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:

[platform] tag? (1998) Virtual Domains (1998) Limiting user access to .tmpl files (1997) WC 4.0 (2000) problems with 2 tags (1997) Moving a record from one dataabse to another. (2000) Webmerchant (1999) WebCatb15 Mac CGI -- [purchase] (1997) Max Record length restated as maybe bug (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) RE: includes and cart numbers (1997) HTML encoding in URLs (1997) Lots of bounce errors (2007) Relay link (2002) My slower response (1997) BUG in [showif] using ^ (contains) (1997) [WebDNA] Grep (2009) [WriteFile] problems (1997) For those of you not on the WebCatalog Beta... (1997) Banners (1997)