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:

Stopping NT WebCat service (1998) Paths, relative paths, webstar server setup and security (Mac) (1997) Re:FYI: Error message (1996) [carts] and databases (1997) Closing Databases (1998) Quit revisited (1997) Force a search at the default.tmpl page? (1997) Help! WebCat2 bug (1997) Question about [encrypt] (1998) [defined]ish (1997) WebDNA tables and commas (2004) Security Issue (1997) Free WebDNA snippets (Extending WebCatalog) (1997) Item order (2002) Setting up WebCatalog with Retail Pro data (1996) weight based shipping cost questions (1997) Re:2nd WebCatalog2 Feature Request (1996) calculating tax rates, mail order solutions and version 2 (1997) Mail Integration (1999) Attn: Bug in GeneralStore example b15 (1997)