I keep track of them when I created them and then On Session End I delete them as follows:

        // Clear Persistent rowset from memory
        
        C_longint($count)
        
        $count := size of array(session{"$rowSetUIDS"})
                write to console($count)                                        
                
        For ($i;1;$count) ` Iterate Over array
                RowSet.clearPersistent(session{"$rowSetUIDS"}{$i})
                write to console("clear rowset"+session{"$rowSetUIDS"}{$i})
        End for

In my case the reason I needed to track them was to ensure they weren't used by every user (hence they are created with the unique name based on the session id for that user) and then I delete them just to clear memory.

HTHs.

Regards, Michael.

On 22 May 2007, at 16:16, Peter Schumacher wrote:

At 10:44 Uhr -0400 22.05.2007, Aparajita Fishman wrote:
persistent rowsets are a nice feature and a great time saver. But, is there an easy way to get rid of all of them?

I'm not sure why you would want to (since they are supposed to be _persistent_!), but you could just keep an array in the globals collection with a list of the persistent collections, then loop through that and clear them.

Just as a reset. It's a library, normally I could keep the rowsets for a day before resetting, but form time to time they want to have the new books in the list.
--

Mit freundlichen Grüßen
[4D-Consulting.com]eK, Wiesbaden
Peter Schumacher
--------------------------------------------------------
Web: http://www.4D-Consulting.com/
FreeCall:  0800-434 636 7
Tel.:      0611-9406.850 - Fax: 0611-9406.744
4D-Consulting.com eK - Scharnhorststr. 36 - 65195 Wiesbaden
HR Wiesbaden: HRA 4867

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to