Home Page link  

Hook at print time. Hook #1

 

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

 Post an article  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
Hook at print time. Hook #1 ClothingStore 08-09-2005
Posted by ClothingStore on August 9, 2005, 2:21 pm
Please log in for more thread options
I have a hook running a print time. The problem I am having is my hook needs
to have the transaction saved first before the hook runs and the only time I
can see that happening before printing is the before print hook #1. The
problem I am having is the hook is supposed to update the transaction just
updated and then print and the XML receipt file is supposed to use some of
the information just saved. It seems that even though this hook is supposed
to be before print time that it is actually formulating the XML file and
getting the receipt ready before the hook is ran.

Does anyone know exactly how this hook works (the hook #1) ? The actual
process flow like is the XML receipt file actually getting started before the
hook runs, even thought the hook is supposed to be before any printing
starts? Ideas?

Thanks,
Nick


Posted by Glenn Adams [MVP - Retail Mgmt on August 9, 2005, 5:36 pm
Please log in for more thread options
Are you updating the transaction by writing to the database directly, or
are you setting properties in the Session object as well? The Receipt is
being printed from information in the Session, not the database.

--
Glenn Adams
Tiber Creek Consulting
http://www.tibercreek.com
glenn@tibercreek.com
----------------------------------------------
Please DO NOT respond to me directly but post all responses here in the
newsgroup so that all can share the information



>I have a hook running a print time. The problem I am having is my hook
>needs
> to have the transaction saved first before the hook runs and the only time
> I
> can see that happening before printing is the before print hook #1. The
> problem I am having is the hook is supposed to update the transaction just
> updated and then print and the XML receipt file is supposed to use some of
> the information just saved. It seems that even though this hook is
> supposed
> to be before print time that it is actually formulating the XML file and
> getting the receipt ready before the hook is ran.
>
> Does anyone know exactly how this hook works (the hook #1) ? The actual
> process flow like is the XML receipt file actually getting started before
> the
> hook runs, even thought the hook is supposed to be before any printing
> starts? Ideas?
>
> Thanks,
> Nick




Posted by ClothingStore on August 9, 2005, 3:00 pm
Please log in for more thread options
I am updating the database transaction directly. Is that my problem? The
XML receipt file is getting data from the session and not the database? Is
there a way for me to get around this?

"Glenn Adams [MVP - Retail Mgmt]" wrote:

> Are you updating the transaction by writing to the database directly, or
> are you setting properties in the Session object as well? The Receipt is
> being printed from information in the Session, not the database.
>
> --
> Glenn Adams
> Tiber Creek Consulting
> http://www.tibercreek.com
> glenn@tibercreek.com
> ----------------------------------------------
> Please DO NOT respond to me directly but post all responses here in the
> newsgroup so that all can share the information
>
>
>
> >I have a hook running a print time. The problem I am having is my hook
> >needs
> > to have the transaction saved first before the hook runs and the only time
> > I
> > can see that happening before printing is the before print hook #1. The
> > problem I am having is the hook is supposed to update the transaction just
> > updated and then print and the XML receipt file is supposed to use some of
> > the information just saved. It seems that even though this hook is
> > supposed
> > to be before print time that it is actually formulating the XML file and
> > getting the receipt ready before the hook is ran.
> >
> > Does anyone know exactly how this hook works (the hook #1) ? The actual
> > process flow like is the XML receipt file actually getting started before
> > the
> > hook runs, even thought the hook is supposed to be before any printing
> > starts? Ideas?
> >
> > Thanks,
> > Nick
>
>
>


Posted by Glenn Adams [MVP - Retail Mgmt on August 10, 2005, 9:21 am
Please log in for more thread options
There are 10 Session Variables that you can use to store your information.
These are accessible to the Receipt engine.

In your add-in:
mySession.Variable(1) = "My String Value"

In your Receipt Template
<ROW> "My Label: |" Session.Variable1 </ROW>

Also, if you are changing existing values rather than inserting values that
do not otherwise exist in RMS, you can change the values in the properties
of the Session object. These changes should persist to the receipt.
Really, this would be the preferred method for getting values into the
database - you should only write directly to the database during a
transaction if you are adding extended fields.

Hope that helps...

--
Glenn Adams
Tiber Creek Consulting
http://www.tibercreek.com
glenn@tibercreek.com
----------------------------------------------
Please DO NOT respond to me directly but post all responses here in the
newsgroup so that all can share the information



>I am updating the database transaction directly. Is that my problem? The
> XML receipt file is getting data from the session and not the database?
> Is
> there a way for me to get around this?
>
> "Glenn Adams [MVP - Retail Mgmt]" wrote:
>
>> Are you updating the transaction by writing to the database directly, or
>> are you setting properties in the Session object as well? The Receipt is
>> being printed from information in the Session, not the database.
>>
>> --
>> Glenn Adams
>> Tiber Creek Consulting
>> http://www.tibercreek.com
>> glenn@tibercreek.com
>> ----------------------------------------------
>> Please DO NOT respond to me directly but post all responses here in the
>> newsgroup so that all can share the information
>>
>>
>>
>> message
>> >I have a hook running a print time. The problem I am having is my hook
>> >needs
>> > to have the transaction saved first before the hook runs and the only
>> > time
>> > I
>> > can see that happening before printing is the before print hook #1.
>> > The
>> > problem I am having is the hook is supposed to update the transaction
>> > just
>> > updated and then print and the XML receipt file is supposed to use some
>> > of
>> > the information just saved. It seems that even though this hook is
>> > supposed
>> > to be before print time that it is actually formulating the XML file
>> > and
>> > getting the receipt ready before the hook is ran.
>> >
>> > Does anyone know exactly how this hook works (the hook #1) ? The
>> > actual
>> > process flow like is the XML receipt file actually getting started
>> > before
>> > the
>> > hook runs, even thought the hook is supposed to be before any printing
>> > starts? Ideas?
>> >
>> > Thanks,
>> > Nick
>>
>>
>>




Posted by ClothingStore on August 10, 2005, 6:59 am
Please log in for more thread options
Thanks Glenn, you are great.

"Glenn Adams [MVP - Retail Mgmt]" wrote:

> There are 10 Session Variables that you can use to store your information.
> These are accessible to the Receipt engine.
>
> In your add-in:
> mySession.Variable(1) = "My String Value"
>
> In your Receipt Template
> <ROW> "My Label: |" Session.Variable1 </ROW>
>
> Also, if you are changing existing values rather than inserting values that
> do not otherwise exist in RMS, you can change the values in the properties
> of the Session object. These changes should persist to the receipt.
> Really, this would be the preferred method for getting values into the
> database - you should only write directly to the database during a
> transaction if you are adding extended fields.
>
> Hope that helps...
>
> --
> Glenn Adams
> Tiber Creek Consulting
> http://www.tibercreek.com
> glenn@tibercreek.com
> ----------------------------------------------
> Please DO NOT respond to me directly but post all responses here in the
> newsgroup so that all can share the information
>
>
>
> >I am updating the database transaction directly. Is that my problem? The
> > XML receipt file is getting data from the session and not the database?
> > Is
> > there a way for me to get around this?
> >
> > "Glenn Adams [MVP - Retail Mgmt]" wrote:
> >
> >> Are you updating the transaction by writing to the database directly, or
> >> are you setting properties in the Session object as well? The Receipt is
> >> being printed from information in the Session, not the database.
> >>
> >> --
> >> Glenn Adams
> >> Tiber Creek Consulting
> >> http://www.tibercreek.com
> >> glenn@tibercreek.com
> >> ----------------------------------------------
> >> Please DO NOT respond to me directly but post all responses here in the
> >> newsgroup so that all can share the information
> >>
> >>
> >>
> >> message
> >> >I have a hook running a print time. The problem I am having is my hook
> >> >needs
> >> > to have the transaction saved first before the hook runs and the only
> >> > time
> >> > I
> >> > can see that happening before printing is the before print hook #1.
> >> > The
> >> > problem I am having is the hook is supposed to update the transaction
> >> > just
> >> > updated and then print and the XML receipt file is supposed to use some
> >> > of
> >> > the information just saved. It seems that even though this hook is
> >> > supposed
> >> > to be before print time that it is actually formulating the XML file
> >> > and
> >> > getting the receipt ready before the hook is ran.
> >> >
> >> > Does anyone know exactly how this hook works (the hook #1) ? The
> >> > actual
> >> > process flow like is the XML receipt file actually getting started
> >> > before
> >> > the
> >> > hook runs, even thought the hook is supposed to be before any printing
> >> > starts? Ideas?
> >> >
> >> > Thanks,
> >> > Nick
> >>
> >>
> >>
>
>
>


Similar ThreadsPosted
Print Receipt Hook July 9, 2008, 8:45 pm
Hook Help September 29, 2008, 5:59 pm
POS Hook info July 28, 2005, 8:07 am
Dot Net Hook Problem September 22, 2005, 5:19 pm
RMS EDC Verifcation in DLL Via Hook November 10, 2005, 11:05 am
SavePurchaseOrder Hook April 17, 2006, 5:31 pm
RMS Additem hook July 13, 2006, 4:04 pm
RMS Additem hook July 13, 2006, 4:05 pm
Hook type to use November 16, 2006, 7:02 pm
Add item hook April 11, 2007, 7:06 am

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