NetTalk Central

Author Topic: BrowseGrid control  (Read 4416 times)

zolinovak

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • Email
BrowseGrid control
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: BrowseGrid control
« Reply #1 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