add-in for manager hook

I would like to write a COM add-in to be triggered by the save purchase order hook in manager. Upon saving the purchase order I would like the order placement status automatically set to 'order has been placed' if it hasn't already been manually set.

can you access qsrules through a manager add-in and if so where can i find more information on different objects and their associated properties and methods, that can be used against manager via qsrules? the customization guide doesn't appear to have a lot of information on manager customizations

thanks, kevin

Reply to
kskinne
Loading thread data ...
ñx?uRAnÛ@ ¼ëì%¹ÄjÐØqÜiÚ4R H.}½KI¬ä]e¹kÃ}}¹²X è Qäp83EñB¡Á^`ï?: ØE à?@ bàºÖZl0?P}#ØùÐVßA¥½y¼Ø5ä´ýåX??,?ø?$f??º?ï?âi?¾Z; Eqö?|üÔJËÎÑá?·?e1I?½?rÃ&xñU,?Õ? ^Y²? ?`MP8ÚÉÇùõõâËr¹?}»ºYÌæ?ßg7óÅÍìêúÃåêaõxµZ®î'h?ê-ßeÐ'½.kÑqK½îàA???ÖÎt?V×4JCÖûAÁ-A??iPnßó??pZ?Æûv ?Ny?àWï]?`Who@Ã0Li5Çò³ïÐ??1&LÑo0²??Ûg÷2óó?BëjÚ0e?+à?Ëî
Reply to
Ivan Brebner

a previous post contain the skeleton of entry point for an hook that require the latest Purchase Order ID modified.

You can use the skeleton to create the hook..

Example:

' Public Function Process(posSession As QSRules.sessionClass, id As Integer) As Boolean if posSession.isPOS = False Then dim rs as ADODB.RecordSet

' Please check the documentation for appropriate api' Set rs = posSession.Gateway.ReadPurchaseOrder(id)

if not (rs.bof and rs.eof) if rs!"Status" rs!"Status" rs.Post (? sorry.. I use VCL.. not vb :() end if end if

End IF End Function

or you can use a trigger

antonio

Reply to
Antonio Mazzeo

thanks, i wasn't even thinking along the lines of a trigger, but since all i want to do is change the value of one field in the record at the time it's inserted into the table, i think i will use a trigger

thanks aga> ksk> > can you access qsrules through a manager add-in and if so where can i find

Reply to
kskinne

thanks, i wasn't even thinking along the lines of a trigger, but since all i want to do is change the value of one field in the record at the time it's inserted into the table, i think i will use a trigger

thanks aga > kskinne wrote: > > can you access qsrules through a manager add-in and if so where can i find > > more information on different objects and their associated properties and > > methods, that can be used against manager via qsrules? the customization > > guide doesn't appear to have a lot of information on manager customizations > a previous post contain the skeleton of entry point for an hook that > require the latest Purchase Order ID modified. > > You can use the skeleton to create the hook.. > > Example: > > ' > Public Function Process(posSession As QSRules.sessionClass, id As > Integer) As Boolean > if posSession.isPOS = False Then > dim rs as ADODB.RecordSet > > ' Please check the documentation for appropriate api' > Set rs = posSession.Gateway.ReadPurchaseOrder(id) > > if not (rs.bof and rs.eof) > if rs!"Status" > rs!"Status" > rs.Post (? sorry.. I use VCL.. not vb :() > end if > end if > > End IF > End Function > > > or you can use a trigger > > antonio >

Reply to
Ivan Brebner

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.