Re: [WebDNA] add rows dynamically

This WebDNA talk-list message is from

2018


It keeps the original formatting.
numero = 114296
interpreted = N
texte = 1905 --Apple-Mail-12E583AE-9BE6-468E-A6D7-4D06CC88002D Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I see why. The last hideif was supposed to be within the last showif. =20 Here=E2=80=99s corrected code. =20 [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 wr= ote: >=20 > Thanks Ken. > Your version worked. >=20 > Alex - your version made all the table cells vertical in one long column f= or 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 l= ong vertical column for all the table cells. >=20 >=20 >=20 >=20 >=20 >=20 >> On Wed, Jun 13, 2018 at 9:54 AM, Kenneth Grome w= rote: >> This is how I do it. It is the simplest possible code and it has >> always worked for me: >>=20 >> [search] >> >> >>=20 >> [founditems] >> >> [showif [index]\4][/showif] >> [/founditems] >>=20 >> >>
[fieldname]
>> [/search] >>=20 >> There are only two possible issues here: >>=20 >> 1- The [fieldname] field contains HTML tags that could screw up >> the dynamic table layout. >>=20 >> 2- This code might put a blank line after the table that you may >> not want there for some reason. >>=20 >> Regards, >> Kenneth Grome >> WebDNA Solutions >> http://www.webdnasolutions.com >> Web Database Systems and Linux Server Administration >>=20 >>=20 >>=20 >> 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 >=20 > --------------------------------------------------------- This message is s= ent to you because you are subscribed to the mailing list talk@webdna.us To u= nsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/p= age.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail-12E583AE-9BE6-468E-A6D7-4D06CC88002D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I see why.  The last hideif was suppos= ed to be within the last showif.  

Here=E2=80=99s co= rrected code.  


<table width=3D"100= %" border=3D"0" align=3D"center">

[Search db=3Dadmin/kp.db&eqACTIVEdatarq=3DYes]
[hideif [numfound]=3D0]<tr>[/hideif]
[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.
=
 Alex - your version made all the table cells vertical i= n one long column for some weird reason. Not sure why.
Might play w= ith yours a bit more to see if I was doing something wrong.
Just t= ried it again carefully using your code and the same happened, one long vert= ical column for all the table cells.





On Wed, Jun 13, 2018 at 9:54 AM, Kenneth Grome <= span dir=3D"ltr"><ken@webdnasolutions.com> wrote:
This is how I do it.  It is the simplest possible code and it h= as
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"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">
> </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@webdna.us
To unsubscribe, E-mail to: talk-leav= e@webdna.us
archives: http://www.webdna.us/page.dna?numero=3D55<= br> 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-leav= e@webdna.us archives: http://www.w= ebdna.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 --Apple-Mail-12E583AE-9BE6-468E-A6D7-4D06CC88002D-- . 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)
1905 --Apple-Mail-12E583AE-9BE6-468E-A6D7-4D06CC88002D Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I see why. The last hideif was supposed to be within the last showif. =20 Here=E2=80=99s corrected code. =20 [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 wr= ote: >=20 > Thanks Ken. > Your version worked. >=20 > Alex - your version made all the table cells vertical in one long column f= or 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 l= ong vertical column for all the table cells. >=20 >=20 >=20 >=20 >=20 >=20 >> On Wed, Jun 13, 2018 at 9:54 AM, Kenneth Grome w= rote: >> This is how I do it. It is the simplest possible code and it has >> always worked for me: >>=20 >> [search] >> >> >>=20 >> [founditems] >> >> [showif [index]\4][/showif] >> [/founditems] >>=20 >> >>
[fieldname]
>> [/search] >>=20 >> There are only two possible issues here: >>=20 >> 1- The [fieldname] field contains HTML tags that could screw up >> the dynamic table layout. >>=20 >> 2- This code might put a blank line after the table that you may >> not want there for some reason. >>=20 >> Regards, >> Kenneth Grome >> WebDNA Solutions >> http://www.webdnasolutions.com >> Web Database Systems and Linux Server Administration >>=20 >>=20 >>=20 >> 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 >=20 > --------------------------------------------------------- This message is s= ent to you because you are subscribed to the mailing list talk@webdna.us To u= nsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/p= age.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail-12E583AE-9BE6-468E-A6D7-4D06CC88002D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I see why.  The last hideif was suppos= ed to be within the last showif.  

Here=E2=80=99s co= rrected code.  


<table width=3D"100= %" border=3D"0" align=3D"center">

[Search db=3Dadmin/kp.db&eqACTIVEdatarq=3DYes]
[hideif [numfound]=3D0]<tr>[/hideif]
[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.
=
 Alex - your version made all the table cells vertical i= n one long column for some weird reason. Not sure why.
Might play w= ith yours a bit more to see if I was doing something wrong.
Just t= ried it again carefully using your code and the same happened, one long vert= ical column for all the table cells.





On Wed, Jun 13, 2018 at 9:54 AM, Kenneth Grome <= span dir=3D"ltr"><ken@webdnasolutions.com> wrote:
This is how I do it.  It is the simplest possible code and it h= as
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"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">
> </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@webdna.us
To unsubscribe, E-mail to: talk-leav= e@webdna.us
archives: http://www.webdna.us/page.dna?numero=3D55<= br> 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-leav= e@webdna.us archives: http://www.w= ebdna.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 --Apple-Mail-12E583AE-9BE6-468E-A6D7-4D06CC88002D-- . Alex Mccombie

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:

[ot] Bluetooth Phones That Allow SSH (2004) Plugin causes type 2 error on WebStar startup (2000) test (2006) Possible to reset Linux file permissions w/in webcat [shell] ? (2000) WebCatalog-NT?'s (1996) ErrorMessages.db (1998) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Nesting format tags (1997) Snake Bites (1997) using showpage and showcart commands (1996) My server admin needs help ... (2004) Tracking (2004) So many lookers, hey smith micro (2003) DON'T use old cart file! (1997) Showif, Hideif reverse logic ? (1997) locking variables? (2000) What is WebDNA (1997) [WebDNA] New problem with [ShowNext] (2010) Sorry another test - please ignore (2005) License (2003)