Home Page link  

RMS Add-Ins: managing state using session variables

 

Point-Of-Sale Software - - MS Point Of Sale software discussed here 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
RMS Add-Ins: managing state using session variables Ian 12-16-2007
Posted by Ian on December 16, 2007, 9:22 am
Please log in for more thread options
Hi,

I'm new to the world of RMS, but have been looking into making RMS Add-
Ins. I'm developing in C#.

I've got a couple of add-ins written that don't do anything particular
at the moment, but do need a way of passing state to each other.

The two add-ins are hooked into the InitializeTransaction and
PrintReceipt hooks. At the moment, I'm passing state around by using a
session variable.

However, what I find a little odd is that the session variables appear
to be implemented as a fixed 10-position array. For my initial testing
I'm just arbitrarily picking one slot in the array to use. And it
works a treat.

But, in a real-world deployment, I can't hard-code a slot to use. So,
should I just loop through all 10 slots, looking for the first free
one (if setting the variable) or one that conforms to a particular
type (if retrieving the variable)? But what happens if all 10 slots
are in use by other add-ins?

The only other options I can see are to either customize the database
and manage state through there, or to have something like a .NET
Remoting singleton to manage all the state. But those both seem like
using a sledgehammer to crack a nut.

Please, someone tell me I've completely misunderstood how the session
variables work, and set me straight...

Cheers
Ian

Similar ThreadsPosted
Session Variables August 10, 2005, 3:13 pm
Debugging Addins February 15, 2006, 3:41 pm
pos 2009 addIns January 14, 2010, 7:14 am
Registering Com Component Addins October 1, 2005, 11:01 am
receipt variables & xml variables November 12, 2008, 10:58 am
Managing Discounts April 25, 2006, 10:31 am
Managing Quantity Discounts January 16, 2006, 10:47 am
Several questions about managing my databases May 28, 2006, 4:29 pm
Tax in NY state. August 28, 2006, 2:31 pm
Tax in NY state. August 28, 2006, 4:54 pm

Contact Us | Privacy Policy
This site is not affiliated with Intuit - makers of Quickbooks and Quicken software
This site is not affiliated with Sage Software - makers of Peachtree accounting software
XML SitemapXML Sitemap