Highlight List View RowsPosted by: Editor / Monday, June 15, 2009 – 6:37pm
9
minutes
You'd think highlighting the current record row within a FileMaker list view would be a simple thing. Turns out, there have been a number of attempts at making this easy - it just hasn't been the case. The older method found in Highlight Record Row in list view used a script-trigging plug-in and there was another method that used a hyper-extended web viewer to force row background color. With FileMaker 10, the easiest way, to-date, is here. In the associated file, it's just a straight simple Script Trigger. All you really need to do is set a global variable and this can be done with a layout script tied to OnRecordLoad. However, I take an extra bit of effort to use conditional formatting to make the effect happen. My reasoning is described in the file. If you haven't added this feature into your own solutions then you need to watch this video. It's just way to simple to add this feature in! Details: Released - 6/15/2009 / Size - 9.07 MB / Length - 9 min
Filed under: videos | Free Access
. Yes, good idea! - ADMIN POSTED THIS.
. Editor said this on Tuesday, June 16, 2009 - 8:29pm.
. I've not tried that in list view. I knew it worked with portals, but forcing the whole window to redraw on Windows sucks! . . A Little Variation.
. tdignan said this on Tuesday, June 16, 2009 - 11:05am.
. First I would like to say, I always learn something new every time I watch one of your videos. I also use this technique. I do not use the first condition formatting however, I set the global variable (I have also started to use a global field. This prevents flashing of the screen on computers using windows (macs no problems) ) in the script used by the script trigger. Todd Dignan . . Sloooooooooow !.
. FMPVince said this on Tuesday, June 16, 2009 - 11:27am.
. Yes, It works great with few records without related or cascading unstored calcs, but try it with one hundred lines with those king of fileds and you'll kill yourself.The $$global variable is the worst performer because it needs the refresh, and thet refresh takes a long time. The Global fields, which doesn't need the refresh is faster, but still 10 times slower than the webwiever method. So I urge anyone with real lisst to stay the webviewer method. And of course this message to FM Inc : all those tricks are slow and more or less cumbersome, so you NEEED to have a built-in, clean way to do this ! . . Click the link in the description - ADMIN POSTED THIS.
. Editor said this on Tuesday, June 16, 2009 - 8:31pm.
. The link to the older article has the older method and the one using the web viewer. . . Even further advice... - ADMIN POSTED THIS.
. Editor said this on Tuesday, June 16, 2009 - 8:37pm.
. ANYTHING unstored within a list view will kill FileMaker's speed. Each time something new comes on screen then FMP want's to recalc all unstored objects. This is why FMP (over the Internet) is essentially worthless if you want to use the "tricks" you have to use to make a good interface. FMI could stand to overhaul it's whole screen redraw routines. The problem, however, is that the standard line is something like "Use Citrix or Terminal services"..... Bah, just fix your software (at least if you want people to use it). :P . . Web viewer method.
. tdignan said this on Wednesday, June 17, 2009 - 12:20pm.
. After viewing the older method, though it is unique and I like how you used the web viewer to trigger zippScripts......... I like the newer method better because it is native to FMP 10. No third party plugins needed. I really can not see where there would be any speed advantages using the web viewer. Both scripts have a refresh window step in them. . . Something odd.
. danielbeer said this on Wednesday, February 2, 2011 - 5:58am.
. Hi, I'm trying this with FM11ADV v2 on Mac OS 10.6.5 and getting a strange outcome. It seems the highlight is one move behind - when I move records the first time, the highlight does not move, but with the second move, it updates, only to the previously selected record. When I resize the window slightly, it updates correctly. I tried it in your example file, and also in another file - same result. It seems to be evaluating the conditional formatting after doing the refresh I guess. Very odd. It does, however, work with using the set variable step in the script (rather than the conditional formatting set variable) and also using a global field as apjcs mentions above. Can anyone replicate this behaviour, or do I just have one of those "hmmm, I've never seen one quite like THAT before!" problems? . . Highlight List Rows.
. stmarks said this on Friday, April 29, 2011 - 6:14pm.
. I get the same weirdness in the sample file as well as the solution I was trying to use the technique in. If I randomly click around between the records there is no predictable place the highlight show up. This technique will make a client happy so I'd love to get a good method. Jeff . |
Be Notified!Let us tell you when a new video is posted. We'll send you an email with a direct link right to your email inbox.
Make sure and whitelist (or add to your address book editor@filemakermagazine.com10 Most Recent Videos
|
Highlight List View Rows - suggested modification
Very nice simple technique, but I don't like the window flash when moving from record to record.
I modified the script to NOT refresh but to set the value of $$current.record into a global field. This seems to work well without any screen redraw. I think a single global is a price woth paying to eliminate the window flash...
PJ