I decided to move this conversation to the message board, so more knowledgable folk than me can chime in.
The ShowCursor() routine I sent you does just one row per record.
When I want more than one field in a table cell, I usually do something like this:
select;padr([<a href="customeriew.fp?customer=]+table.customer+[">]+table.customer+[</a> <br />]+;table.custname+[<br />]+;table.custaddress, 200) as customer,;table.contact,;[tel: ]+table.phone+[<br />email: ]+ table.email as info;fromtable; into cursor tempcustif_tally>0this.showcursor()endif
The formatting could get quite complex if you wish. For nested tables, you'd probably want to cast() the string as a memo field, so you have unlimited room in describing each field. (Strings in the SQL Select statement max out at 254 characters.)
It sounds like you have something more sophisticated in mind that what we use here.
You might want to look at the current version of WWC. Working with data grids is such a breeze--easy to format, easy to add special attributes, built-in pagination and column sorting. You can simply include Rick's HTMLDataGrid into a "classic" web connection program. Or use the wwDataGrid working with his newer Web Control Framework.
.. Geoff
On 2013-03-25, at 12:57 PM, Chris ODonnell wrote:
Thanks Geoff. Is the table that is created a "one row per record" layout? Instead of say stacking some fields on top of each other? ie nested tables?
Thanks very much. Will review. Much appreciated.
One thing I'm wrestling with us "offering" many sample layouts and letting a customer pick one, while incorporating their own CSS or at least some color scheme that they decide on. Some of this they do already, where I let them pick table header and alternating row colors. But that was when my show cursor displayed one row per record.
Chris ODonnell