[showif [index]\4] |
[fieldname] | >> [showif [index]\4]
>> > >> > | >> > [showif [index]\4]
=---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--Apple-Mail-12E583AE-9BE6-468E-A6D7-4D06CC88002D--. Associated Messages, from the most recent to the oldest: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.---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leav=e@webdna.usarchives: http://www.w=ebdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.usOn 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
1905--Apple-Mail-12E583AE-9BE6-468E-A6D7-4D06CC88002DContent-Type: text/plain;charset=utf-8Content-Transfer-Encoding: quoted-printableI see why. The last hideif was supposed to be within the last showif. =20Here=E2=80=99s corrected code. =20
- Re: [WebDNA] add rows dynamically (Richard Kwasniewski
2018) - Re: [WebDNA] add rows dynamically (Alex Mccombie
2018) - Re: [WebDNA] add rows dynamically (Richard Kwasniewski
2018) - Re: [WebDNA] add rows dynamically (Kenneth Grome
2018) - Re: [WebDNA] add rows dynamically (Alex McCombie
2018) - Re: [WebDNA] add rows dynamically (Richard Kwasniewski
2018) - Re: [WebDNA] add rows dynamically (Alex McCombie
2018) - [WebDNA] add rows dynamically (Richard Kwasniewski
2018) [Search db=3Dadmin/kp.db&eqACTIVEdatarq=3DYes][hideif [numfound]=3D0]
Sent from my iPhone> On Jun 13, 2018, at 4:03 PM, Richard Kwasniewski[/hideif][founditems] [hideif [index]=3D[numfound]][showif [index]\4] [/hideif][/showif][/founditems][/search] 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]>> >>
>> [/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:>> >>>=20>> [founditems]>> [fieldname] >> [showif [index]\4][/showif]>> [/founditems]>>=20>> >>>> > [Search db=3Dadmin/kp.db&eqACTIVEdatarq=3DYes]>> > [founditems]>> >
>> --------------------------------------------------------->> 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-4D06CC88002DContent-Type: text/html;charset=utf-8Content-Transfer-Encoding: quoted-printableI see why. The last hideif was suppos=ed to be within the last showif.>> > >> > >> > >> > [showif [index]\4][/showif]>> > [/founditems]>> > [/search]>> > Here=E2=80=99s co=rrected code.<table width=3D"100=%" border=3D"0" align=3D"center">[Search db=3Dadmin/kp.db&eqACTIVEdatarq=3D Yes]
[hideif [numfound]=3D0]<tr>[/hideif][founditems]
<td align=3D"center" width=3D"200">
<img src=3D"images/middle/[thumbnail]" border=3D="1"> [showif [index]\4]<=;/tr>
</td>[hideif [index]=3D[numfound]]<tr>[/hideif]=div>[/showif]
[/founditems]
[/search]
</table>Sent from my iPhone=---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--Apple-Mail-12E583AE-9BE6-468E-A6D7-4D06CC88002D--. Alex MccombieThanks 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.---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leav=e@webdna.usarchives: http://www.w=ebdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.usOn 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
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:
Calculating days, hours, minutes ago (2004) form data submission gets truncated (1997) RE: Formulas.db + Users.db (1997) Displaying photo attached to first record (1997) Num Sort Descending (2004) WAY Off-Topic (2004) Fufillment e-mail? (1998) Rendering out a page (1997) href name= link from dynamic URL possible? (1998) Grep to convert characters to html entities (2006) What am I missing (1997) Free WebDNA snippets (Extending WebCatalog) (1997) question: writing files textb in webmerch (1997) Case sensitivity and [showif] (1999) Mac 2.1b4 unknown error: BadSuffix (1997) Password Authentication - request example (1998) WC2f3 (1997) Firesite and WebCat (1999) [WebDNA] Require no empty field (2010) Multiple 'Users.db' files not possible (1997)