Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Anyone share a custom, 'hand written' showcursor proc?

$
0
0
Re: Anyone share a custom, 'hand written' showcursor proc?
HTML, CSS, JavaScript, Flash
Re: Anyone share a custom, 'hand written' showcursor proc?
Mar. 25, 2013
01:16 pm
3QV0SFEFBShow this entire thread in new window
Gratar Image based on email address
From:Geoff Bannoff
To:Chris ODonnell
Hi Chris

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



Hi Chris

I built a version of ShowCursor a few years ago, before WWC came out with DataGrids. It's fairly customizable, but it borrows heavily from the earlier versions of WWC. So I'm reluctant to post the code here.

I'll email it to you.

Date fields call a function this.cDate that returns the date in this format: "Mar25/13". You probably have something similar. Let me know if you want the code for that.

.. Geoff



(using WWC version 4)

Can anyone share a custom hand-written showcursor proc that displays FoxPro data? I've been using the default version but i need to come up with a few different layout sample versions. Multiple table rows for ONE record, a showcursor that displays RECORDS in a 2 column format, etc. Thanks





Viewing all articles
Browse latest Browse all 10393

Trending Articles