Book a Demo

Author Topic: GetCurrentLoginUser  (Read 3220 times)

MagnusH

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
GetCurrentLoginUser
« on: September 11, 2010, 03:09:12 am »
Hi,

I cannot get the GetCurrentLoginUser to work at all. I get an error like this:
Win32::OLE(0.1502) error 0x80020003: "Member not found"

I use Perl like this:
my $CurrentUser = $self->EAApp()->Repository()->GetCurrentLoginUser();

With 862 version and yes I have enabled security.

// Magnus

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: GetCurrentLoginUser
« Reply #1 on: September 13, 2010, 03:59:03 pm »
try

Code: [Select]
my $CurrentUser = $self->EAApp()->Repository()->GetCurrentLoginUser(false);

I guess the Perl to COM translation has difficulties using default values for parameters.

Geert