> > | > [showif [index]\4]
[fieldname] | >> [showif [index]\4]
>> > >> > | >> > [showif [index]\4]
I see why.=C2=A0 Th=e last hideif was supposed to be within the last showif. =C2=A0Here=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"> [showif =[index]\4]</tr>
</td>[hideif [index]=3D[numfound]]<tr>[/=hideif] [/showif]
[/founditems]
[/search]
</table>Sent from my iPhoneThanks 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 tothe mailing list talk@w=ebdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna? numero=3D55 Bug Reporting: suppo=rt@webdna.us---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@w=ebdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna? numero=3D55 Bug Reporting: suppo=rt@webdna.us
|
> > | > [showif [index]\4]
[fieldname] | >> [showif [index]\4]
>> > >> > | >> > [showif [index]\4]
I see why.=C2=A0 Th=e last hideif was supposed to be within the last showif. =C2=A0Here=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"> [showif =[index]\4]</tr>
</td>[hideif [index]=3D[numfound]]<tr>[/=hideif] [/showif]
[/founditems]
[/search]
</table>Sent from my iPhoneThanks 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 tothe mailing list talk@w=ebdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna? numero=3D55 Bug Reporting: suppo=rt@webdna.us---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@w=ebdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna? numero=3D55 Bug Reporting: suppo=rt@webdna.us
DOWNLOAD WEBDNA NOW!
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...