Webviewer field to show counters

Discussion created by psijmons on Mar 24, 2012
Latest reply on Mar 27, 2012 by timwhisenant

I picked this up a few years ago from this forum (can't remember from who) and use it in the footer of all my layouts. It is a very minimal way of showing that the user in in record no.. of ... records in the found set by placing a webviewer, and there is also a visual background bar to give the user an intuitive glance of the record position (see attachment). It doesn't require fields and is portable across layouts. Users in my solution are locked out of the menu bar so the normal FileMaker indicators are not visible.


My question is the following; is there a command I can use to add the total number of records in this webviewer text?

Thanks in advance,





webviewer.records ( "Record [current] of [found]" ; "*{ font-size: 7pt; font-family: "Lucida Grande", Tahoma, sans-serif; color: White; } #text{ margin-top: 0px ; } body { background-color: Silver; } " ; "DimGrey" )




For a list of possible colors by name use this url



Use the following in the css parameter to control font size, face and color

*{ font-size: 9pt; font-family: "Lucida Grande", Tahoma, sans-serif; color: black; }



Use the following to control the positioning of the text

#text {margin-top: 10px; }



Set the color to "transparent" to not show the bar



Use the following to control the background

body { background-color: green; }