Quantcast
Viewing all articles
Browse latest Browse all 75049

Number of finds by user by bus.stop - 2013-07-07

QUOTE (Don_J @ July 07, 2013 10:37 am)
QUOTE (Kai Team @ July 06, 2013 02:26 pm)
OK, this code will write a text file called "FindersofFilter.txt" to your GSAK Macros folder in the comma delimited format you showed and will also produce a sortable display of the results in your browser (I wanted the browser display anyways for testing purposes and decided to leave it in).

GSK
$_sql="Select lBy,Count(g_foundlog(ltype)) AS Count FROM Logs WHERE lParent IN (Select Code from Caches WHERE RowID IN(Select * From GridTemp)) GROUP BY lBy ORDER BY Count DESC"
$Status=Sqlite("sql",$_sql)

$Out="Name;Number" + $_CrLf + $Status
$Display=SqlToHtml($Out,"Finders of Filter","Y")

$FileOut=Replace(";",", ",$Status)
$File=$_AppData + "\macros\FindersofFilter.txt"
$WriteFile = PutFile($File,$FileOut)
IF Left($WriteFile,7) = "*Error*"
   Pause Msg="$WriteFile"
   Cancel
ENDIF


Remember that you should set a filter on the Side Tracked caches first (i.e. don't run it on your entire database).

This will come in handy for me for a challenge that I help maintain, but it appears to be counting all logs, not just found logs. As a test, I filtered on a single cache and it said that I had 14. I actually have 1 find and 13 notes.

Thanks...

I can second what Don_J says, the code also includes published logs, Owner Maintanence, etc although thinking about the published logs:

"Reviewer has published xxx SideTracked Caches" Mhmmm.....

However the output file does what I need it to do, so we're almost there!

Viewing all articles
Browse latest Browse all 75049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>