This topic is locked

Scope of dict object

12/11/2006 3:31:07 PM
ASPRunnerPro General questions
B
berkeleyjw author

In version 4.0 I was able to see the dict("fieldname") objects from within a user-defined function. Now I can not. Are the dict objects no longer global in scope? Please advise. THanks.

J
Jane 12/12/2006

Jim,
dict object is available in the BeforeRegister, Before record added and Before record updated events only in both 4.0 and 4.1 ASPRunner versions.

P
PerOfoslo 12/12/2006

Dict object could really be of use in 'after udate' as 'after udate' might be a confirmation that the update was OK? - Or not? It could be the best place to update other tables with data from the original tables?

I often find that I have to use session objects as the dict() object is often not available where I expect it to work to define links to other tables, but I'm not sure how/when to kill these session objects when used from 'EventOnLoad' to be used in 'Before Record Update' or 'After Udate'. If I let these session variables build up, will they not kill the app?