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:

Protect (1997) WebCat2 several catalogs? (1997) Database Not Writing Fully to Disk (2007) Problems appending to database (1997) WC2b12: Yes, Formulas.db is for real (1997) ShowIf & HideIf Question? (1998) [WriteFile] problems (1997) [WebDNA] WebDNA Crashing or Not **YES** (2008) Showif with an or (2003) email program problem (1998) listfiles, moving files (1998) quitting (1997) IP Shows Server (2003) Greeting Card System (2000) Nested vs conditional (1997) WebDNA problem (2006) WCS Newbie question (1997) all db's in one folder and protected (1998) Where is f2? (1997) Almost a there but..bye bye NetCloak (1997)