MESSAGE(UserID) prompt [Empty]

itspeter
Member Posts: 105
Hi there,
Existing forms UserID was not working, MESSAGE(UserID) prompt empty box. Earlier suppose to be USERID, but once save and reopen in design mode, it goes back to UserID ("ser" lowercase), and it only happen to 1 form. It happen on all clients.
Anyone encounter UserID prompt empty? :?
Spec:
Navision 4.0
Windows Authentication
Thanks
Existing forms UserID was not working, MESSAGE(UserID) prompt empty box. Earlier suppose to be USERID, but once save and reopen in design mode, it goes back to UserID ("ser" lowercase), and it only happen to 1 form. It happen on all clients.
Anyone encounter UserID prompt empty? :?
Spec:
Navision 4.0
Windows Authentication
Thanks
Regards,
Peter Ng
Peter Ng
0
Answers
-
You either have a variable on the form, or field on the table called UserID.
You could either rename your variable\field to something like User ID or you could use System.USERID to get the logged in User's ID.
If this isn't the case then... :?This isn't a signature, I type this at the bottom of every message0 -
Thanks. Someone created a field UserID in the table. Btw, Navision should have block reserved command to be used as field or variable.
Just to highlight, MESSAGE(SYSTEM.USERID) encounter error
Microsoft Business Solutions-Navision
You have specified an unknown variable.
USERID
Define the variable under 'Global C/AL symbols'.
OKRegards,
Peter Ng0 -
Sorry, I should have checked before hand.
It would be DATABASE.USERID and not SYSTEM.
Glad you sorted it out though...This isn't a signature, I type this at the bottom of every message0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions