Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Regular Contributor
jbuddecke
Posts: 75
Registered: 05-06-2009
0
Accepted Solution

Get Batch Info via Customizer Script

I am trying to write a customizer script to get batch information from the Voucher register/post screen.  Batch number, ID, Key or similar is fine.  Ultimately, I am trying to use that to compare the current user trying to post the batch to the user that created the vouchers in the batch.  Any ideas?

 

I know there is syntax like Session.AppDatabase or Session.CompanyID that I can use to get the database, companyid, userID, etc.  Is there something similar to get the batch info?

Jeb Buddecke
ISM - Director, MAS 500
jeb@goism.com
Contributor
hsanguino
Posts: 26
Registered: 11-01-2008

Re: Get Batch Info via Customizer Script

Hi Jeb,

 

I think you may take the batch number from the form titlebar like this:

 

dim batchid

batchid = form.caption

then using the batchid just query the tables for any specific value

 

I hope this helps

Hugo

 

 

Regular Contributor
jbuddecke
Posts: 75
Registered: 05-06-2009
0

Re: Get Batch Info via Customizer Script

Thanks.  A partner of mine had already given me this and it works.

Jeb Buddecke
ISM - Director, MAS 500
jeb@goism.com