This topic is locked

before record deleted all ID

6/26/2009 9:35:21 AM
ASPRunnerPro General questions
R
RASM author

Hi
i have Category table, with name field IDcategory,Name
In event Before record deleted, i need all IDCategory that selected item, how?
I tried, but without success.


keys = dict.keys

message = ""

for n = 0 To dict.count-1

message = message & dict(keys(n)) & vbcrlf
next

response.write message:response.end

Show just one IDCategory and Name ,but i need all selected,disesteem that no selected.
Thanks

J
Jane 6/30/2009

Hi,
Before record deleted event is executed for each selected record.

You can concat all ID use List page: Before process, List page: Before record deleted and List page: After records deleted events.

Create new variable in the List page: Before process event:

Session("deleted_records") = ""



Then add ID in the List page: Before record deleted event:

Session("deleted_records") = Session("deleted_records") & deleted_values("FieldName") & ","



and use in the List page: After records deleted event:

response.write Session("deleted_records")