Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Contributor
lramirez
Posts: 26
Registered: 06-07-2011
0
Accepted Solution

Company-specific user defined script

I created it a UDS but it applies to all companies by default.

 

How can I isolate a UDS to a specific company?

 

MAS 4.4

 

Thanks.

Moderator
Natasha
Posts: 180
Registered: 07-15-2009

Re: Company-specific user defined script

[ Edited ]

You can check the CompanyCode property in the session object.

Natasha Chang
Sr. Software Engineer
Sage 100 ERP
Contributor
jryals
Posts: 37
Registered: 11-23-2008

Re: Company-specific user defined script

Here is the code:

If oSession.CompanyCode = "ABC" Then

 

Msg = "Company ABC"
retval = oSession.AsObject(oSession.UI).Messagebox("",Msg)

 

end if


 

Contributor
lramirez
Posts: 26
Registered: 06-07-2011
0

Re: Company-specific user defined script

Thanks guys! worked perfectly