NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: zolinovak on October 03, 2007, 03:32:37 PM

Title: BrowseGrid control
Post by: zolinovak on October 03, 2007, 03:32:37 PM
Any way to display multipy records (pictures from database) on the same row on the NetBrowse procedure, just like a clarion BrowseGrid control?

Thanks

Zoltan Novak
Title: Re: BrowseGrid control
Post by: Bruce on October 04, 2007, 10:34:24 PM
Hi Zoltan,

I don't know too much about the Clarion Grid control, but yes it is possible to have multiple rows in the database populate a single row in the web-browse.

Note that if you do this you need to use the "radio" form of browse highlighting, not the "highlight" form.

the key settings are on the "advanced" tab for the NetWebBrowse settings.
"Start new row when:" and
"When Row Starts:"

Let's say you want to have 5 pictures per row. You will need to create (in hand-code) a counter (let's call it myRowCount) and you will need to increment this counter. There's an embed point for this purpose called "Reset Row Marker".

Start new Record when:
myCounter = 5

in Reset Row Marker
If myCounter = 5 then myCounter = 0 else myCounter += 1.

If you want to add specific HTML to the front of each row, then use the "When Row Starts" field.

Cheers
Bruce