Scripting

  • 1.  I am trying to use the company code in a path on a

    Posted 05-07-2015 12:19
    I am trying to use the company code in a path on a script. I thought I could simply have a statement ""CompanyCode = oSession.CompanyCode"" and then use the ""CompanyCode"" in the path, but am getting an error. It seems to work in the first company, but when I change companies I get an Object required 'oSession' error. Can anyone point me in the right direction for setting the current company code?


  • 2.  RE: I am trying to use the company code in a path on a

    Posted 05-07-2015 12:39
    Is it a button script or an event script? If it's a button script you can just use MAS_SCR_CMP.


  • 3.  RE: I am trying to use the company code in a path on a

    Posted 05-07-2015 12:39
    External Access turned on in the other company?


  • 4.  RE: I am trying to use the company code in a path on a

    Posted 05-07-2015 12:41
    Good call MIchael, i think you might be on it.


  • 5.  RE: I am trying to use the company code in a path on a

    Posted 05-07-2015 12:48
    @DanBurleson I don't think he's trying to change the company in the script. He's just can't use oSession when he's in one of the companies.


  • 6.  RE: I am trying to use the company code in a path on a

    Posted 05-07-2015 13:08
    OK thanks. I needed to use MAS_SCR_CMP. Yea!