Re: [WebDNA] add rows dynamically

This WebDNA talk-list message is from

2018


It keeps the original formatting.
numero = 114297
interpreted = N
texte = 1906 --00000000000035c8e7056e8bd863 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yep, your code works now too. On Wed, Jun 13, 2018 at 3:23 PM, Alex Mccombie wrote: > I see why. The last hideif was supposed to be within the last showif. > > Here=E2=80=99s corrected code. > > > > > [Search db=3Dadmin/kp.db&eqACTIVEdatarq=3DYes] > [hideif [numfound]=3D0][/hideif] > [founditems] > > [showif [index]\4] > [hideif [index]=3D[numfound]][/hideif] > [/showif] > [/founditems] > [/search] >
> >
> > > > > Sent from my iPhone > > On Jun 13, 2018, at 4:03 PM, Richard Kwasniewski > wrote: > > Thanks Ken. > Your version worked. > > Alex - your version made all the table cells vertical in one long column > for some weird reason. Not sure why. > Might play with yours a bit more to see if I was doing something wrong. > Just tried it again carefully using your code and the same happened, one > long vertical column for all the table cells. > > > > > > > On Wed, Jun 13, 2018 at 9:54 AM, Kenneth Grome > wrote: > >> This is how I do it. It is the simplest possible code and it has >> always worked for me: >> >> [search] >> >> >> >> [founditems] >> >> [showif [index]\4][/showif] >> [/founditems] >> >> >>
[fieldname]
>> [/search] >> >> There are only two possible issues here: >> >> 1- The [fieldname] field contains HTML tags that could screw up >> the dynamic table layout. >> >> 2- This code might put a blank line after the table that you may >> not want there for some reason. >> >> Regards, >> Kenneth Grome >> WebDNA Solutions >> http://www.webdnasolutions.com >> Web Database Systems and Linux Server Administration >> >> >> >> On 06/13/2018 08:32 AM, Alex McCombie wrote: >> > >> > [Search db=3Dadmin/kp.db&eqACTIVEdatarq=3DYes] >> > [founditems] >> > >> > >> > [showif [index]\4][/showif] >> > [/founditems] >> > [/search] >> >
>> > >> >
>> --------------------------------------------------------- >> 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-leave@webdna.us archives: > http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.u= s > > --------------------------------------------------------- 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.u= s > --00000000000035c8e7056e8bd863 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yep, your code works now too.



On Wed, Ju= n 13, 2018 at 3:23 PM, Alex Mccombie <alex@mccombie.com> wro= te:
I see why.=C2=A0 Th= e last hideif was supposed to be within the last showif. =C2=A0

Here=E2=80=99s corrected code. =C2=A0


=
<table width=3D"100%" border=3D"0" align=3D&qu= ot;center">

[Search db=3Dadmin/kp.db&eqACTIVEdatarq=3D= Yes]
[hideif [numfound]=3D0]<tr>[/hideif]
<= /span>
[founditems]
<td align=3D"center" width= =3D"200">
<img src=3D"images/middle/[thumbnail]" border=3D"1">
</td>
[showif = [index]\4]</tr>
[hideif [index]=3D[numfound]]<tr>[/= hideif]
[/showif]
[/founditems]
[/search]
</table>




Sent from my iPhone

On Jun 13, 2018, at 4:03 PM, Richard Kwasniewski <richiekwas@gmail.com= > wrote:

Thanks Ken.
Your version worked.

=C2=A0Alex = - your version made all the table cells vertical in one long column for som= e weird reason. Not sure why.
Might play with yours a bit more to= see if I was doing something wrong.
Just tried it again carefull= y using your code and the same happened, one long vertical column for all t= he table cells.




=


On Wed, Jun 13, 2018 at 9:54 AM, Kenneth Grome = <ken@webdna= solutions.com> wrote:
This = is how I do it.=C2=A0 It is the simplest possible code and it has
always worked for me:

[search]
<table>
<tr>

[founditems]
<td nowrap>[fieldname]</td>
[showif [index]\4]</tr><tr>[/showif]
[/founditems]

</tr>
</table>
[/search]

There are only two possible issues here:

1- The [fieldname] field contains HTML tags that could screw up
the dynamic table layout.

2- This code might put a blank line after the table that you may
not want there for some reason.

Regards,
Kenneth Grome
WebDNA Solutions
http://www.webdnasolutions.com
Web Database Systems and Linux Server Administration



On 06/13/2018 08:32 AM, Alex McCombie wrote:
> <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>
> [showif [index]\4]</tr><tr>[/showif]
> [/founditems]
> [/search]
> </table>
------------------------------------------------------= ---
This message is sent to you because you are subscribed to
the mailing list talk@w= ebdna.us
To unsubscribe, E-mail to: talk-leave@webdna.us
archives: http://www.webdna.us/page.dna?numero=3D55
Bug Reporting:
suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@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 --00000000000035c8e7056e8bd863-- . 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)
1906 --00000000000035c8e7056e8bd863 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yep, your code works now too. On Wed, Jun 13, 2018 at 3:23 PM, Alex Mccombie wrote: > I see why. The last hideif was supposed to be within the last showif. > > Here=E2=80=99s corrected code. > > > > > [Search db=3Dadmin/kp.db&eqACTIVEdatarq=3DYes] > [hideif [numfound]=3D0][/hideif] > [founditems] > > [showif [index]\4] > [hideif [index]=3D[numfound]][/hideif] > [/showif] > [/founditems] > [/search] >
> >
> > > > > Sent from my iPhone > > On Jun 13, 2018, at 4:03 PM, Richard Kwasniewski > wrote: > > Thanks Ken. > Your version worked. > > Alex - your version made all the table cells vertical in one long column > for some weird reason. Not sure why. > Might play with yours a bit more to see if I was doing something wrong. > Just tried it again carefully using your code and the same happened, one > long vertical column for all the table cells. > > > > > > > On Wed, Jun 13, 2018 at 9:54 AM, Kenneth Grome > wrote: > >> This is how I do it. It is the simplest possible code and it has >> always worked for me: >> >> [search] >> >> >> >> [founditems] >> >> [showif [index]\4][/showif] >> [/founditems] >> >> >>
[fieldname]
>> [/search] >> >> There are only two possible issues here: >> >> 1- The [fieldname] field contains HTML tags that could screw up >> the dynamic table layout. >> >> 2- This code might put a blank line after the table that you may >> not want there for some reason. >> >> Regards, >> Kenneth Grome >> WebDNA Solutions >> http://www.webdnasolutions.com >> Web Database Systems and Linux Server Administration >> >> >> >> On 06/13/2018 08:32 AM, Alex McCombie wrote: >> > >> > [Search db=3Dadmin/kp.db&eqACTIVEdatarq=3DYes] >> > [founditems] >> > >> > >> > [showif [index]\4][/showif] >> > [/founditems] >> > [/search] >> >
>> > >> >
>> --------------------------------------------------------- >> 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-leave@webdna.us archives: > http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.u= s > > --------------------------------------------------------- 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.u= s > --00000000000035c8e7056e8bd863 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yep, your code works now too.



On Wed, Ju= n 13, 2018 at 3:23 PM, Alex Mccombie <alex@mccombie.com> wro= te:
I see why.=C2=A0 Th= e last hideif was supposed to be within the last showif. =C2=A0

Here=E2=80=99s corrected code. =C2=A0


=
<table width=3D"100%" border=3D"0" align=3D&qu= ot;center">

[Search db=3Dadmin/kp.db&eqACTIVEdatarq=3D= Yes]
[hideif [numfound]=3D0]<tr>[/hideif]
<= /span>
[founditems]
<td align=3D"center" width= =3D"200">
<img src=3D"images/middle/[thumbnail]" border=3D"1">
</td>
[showif = [index]\4]</tr>
[hideif [index]=3D[numfound]]<tr>[/= hideif]
[/showif]
[/founditems]
[/search]
</table>




Sent from my iPhone

On Jun 13, 2018, at 4:03 PM, Richard Kwasniewski <richiekwas@gmail.com= > wrote:

Thanks Ken.
Your version worked.

=C2=A0Alex = - your version made all the table cells vertical in one long column for som= e weird reason. Not sure why.
Might play with yours a bit more to= see if I was doing something wrong.
Just tried it again carefull= y using your code and the same happened, one long vertical column for all t= he table cells.




=


On Wed, Jun 13, 2018 at 9:54 AM, Kenneth Grome = <ken@webdna= solutions.com> wrote:
This = is how I do it.=C2=A0 It is the simplest possible code and it has
always worked for me:

[search]
<table>
<tr>

[founditems]
<td nowrap>[fieldname]</td>
[showif [index]\4]</tr><tr>[/showif]
[/founditems]

</tr>
</table>
[/search]

There are only two possible issues here:

1- The [fieldname] field contains HTML tags that could screw up
the dynamic table layout.

2- This code might put a blank line after the table that you may
not want there for some reason.

Regards,
Kenneth Grome
WebDNA Solutions
http://www.webdnasolutions.com
Web Database Systems and Linux Server Administration



On 06/13/2018 08:32 AM, Alex McCombie wrote:
> <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>
> [showif [index]\4]</tr><tr>[/showif]
> [/founditems]
> [/search]
> </table>
------------------------------------------------------= ---
This message is sent to you because you are subscribed to
the mailing list talk@w= ebdna.us
To unsubscribe, E-mail to: talk-leave@webdna.us
archives: http://www.webdna.us/page.dna?numero=3D55
Bug Reporting:
suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@w= ebdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: suppo= rt@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 --00000000000035c8e7056e8bd863-- . 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:

Less than or equal to........ (1997) Calculating multiple shipping... (1997) Summing fields (1997) Questions on Mac WC 3.0.5b13 (2000) problem: type 2 errors (1997) greater than or equal to (1997) rotating thumbnails (1997) [WebDNA] mod_WebDNA_apache2.2.so: mach-0, but wrong architecture (2010) PIXO support (1997) Looking for a host (1997) Pull Down Search (2000) Cancel Subscription (1996) Possible Bug in 2.0b15.acgi (1997) Help formatting search results w/ table (1997) WebCat2: Found Items syntax, etc. (1997) Multiple catalog databases and showcart (1997) international time (1997) Three new problems, maybe a fourth (1997) Updating Prices in Online Database (1999) WebCat2: Items xx to xx shown, etc. (1997)