Session Object Details
Does the session object you “bless” your rows and lists with have to be the same one you do other session object things with?
Said another way, can you bless your rows with one, and be using another one in your code that works with those lists?
Another way: What’s wrong with using a Task Variable session object throughout?
How this happened: I got wind that a universal task variable session object was somehow second class. I don’t remember there being any specifics, but I got that it was frowned on. So I labored to be hip and I made a session pool and in my main object that holds my windows code I labored and made an Instance Variable session object and statement object. Now those two are used in my code, while the universal one isn’t used much except during logon where I create it. Now I’m thinking of ‘blessing’ all my lists and rows in one method during startup, and using the universal one to bless them, but they might be used with other session objects such as in my object where most of the code is. I could easily use search and replace and use only the universal one. The only things I see the session object being used for is things like Commit and Rollback… in constant use…it seems you rarely invoke it’s name. Does it matter if commit and rollback are done with a different session object than the one you blessed your rows with?
If you’re wondering about the universal up front blessing of rows verse how do I get those into instance variables, the answer is through Calculate iRow as tRow. Simple calculate as”” statement. It’s easier than typing the two lines of code all the time the first being define from sql class to define the row the second being assigning the session object to the row. I will have that code only once with my new idea, and otherwise just copy the universal ones made up front into the local ones used on the ground.
If I can bless with one and use any other I’ll be a happy camper. I don’t really “get” session objects yet, therein lay the problem.
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com