Discussions
Activity
Best Of...
Sign In
·
Register
Home
›
NAV/Navision Classic Client
Howdy, Stranger!
It looks like you're new here. Sign in or register to get started.
Sign In
Register
Quick Links
Categories
Recent Discussions
Activity
Best Of...
Unanswered
Categories
All Categories
73
General
73
Announcements
66.6K
Microsoft Dynamics NAV
18.6K
NAV Three Tier
38.4K
NAV/Navision Classic Client
3.6K
Navision Attain
2.4K
Navision Financials
115
Navision DOS
854
Navision e-Commerce
1K
NAV Tips & Tricks
772
NAV Dutch speaking only
615
NAV Courses, Exams & Certification
2K
Microsoft Dynamics-Other
1.5K
Dynamics AX
298
Dynamics CRM
109
Dynamics GP
10
Dynamics SL
1.5K
Other
993
SQL General
384
SQL Performance
34
SQL Tips & Tricks
34
Design Patterns (General & Best Practices)
Architectural Patterns
10
Design Patterns
5
Implementation Patterns
53
3rd Party Products, Services & Events
1.7K
General
1.1K
General Chat
1.6K
Website
79
Testing
1.2K
Download section
23
How Tos section
259
Feedback
12
NAV TechDays 2013 Sessions
13
NAV TechDays 2012 Sessions
Login question
tompynation
Member
Posts:
398
2007-10-05
edited 2007-10-08
in
NAV/Navision Classic Client
How can you see if a user is logged in with a Database Login, or with Windows Authentication?
0
Answers
NaviDev
Member
Posts:
365
2007-10-05
edited 2007-10-06
Use the
Session
table. and see for the Login Type
Navision noob....
0
tompynation
Member
Posts:
398
2007-10-05
i dont have a session table... I'm using navision 4.O SP3
0
Luc_VanDyck
Member, Moderator, Administrator
Posts:
3,633
2007-10-05
Yes you have. It's a virtual table, meaning you don't see this table in the Object Designer, but you can work with it in your C/AL Code.
If you create a new form using the wizard, and use the lookup on Table Name, you see all Virtual Tables (at the end of the table list).
No support using PM or e-mail - Please use this forum.
BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
0
matttrax
Member
Posts:
2,309
2007-10-05
Easy way is to go to File --> Database --> Sessions tab. Click the lookup arrow on Current Sessions.
Matt Traxinger
-
ArcherPoint
My Blog - nav.education
0
tompynation
Member
Posts:
398
2007-10-08
and how do you know which session is active?
Cause when i write this in code:
MESSAGE('login type: ' + FORMAT(sessionRec."Login Type"));
MESSAGE('login id: ' + FORMAT(sessionRec."User ID"));
Then i get the message telling me that my login type is Database, and i get a blanco "login id"...
But i'm signed in with windows authentication :?:
FORGET THIS, STUPID QUESTION, i didnt saw the My session check ](*,)
0
Sign In
or
Register
to comment.
Answers
If you create a new form using the wizard, and use the lookup on Table Name, you see all Virtual Tables (at the end of the table list).
My Blog - nav.education
Cause when i write this in code:
MESSAGE('login type: ' + FORMAT(sessionRec."Login Type"));
MESSAGE('login id: ' + FORMAT(sessionRec."User ID"));
Then i get the message telling me that my login type is Database, and i get a blanco "login id"...
But i'm signed in with windows authentication :?:
FORGET THIS, STUPID QUESTION, i didnt saw the My session check ](*,)