MESSAGE(UserID) prompt [Empty]

itspeteritspeter 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
Regards,
Peter Ng

Answers

  • SteveOSteveO Member Posts: 164
    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 message
  • itspeteritspeter Member Posts: 105
    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'.

    OK
    Regards,
    Peter Ng
  • SteveOSteveO Member Posts: 164
    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 message
Sign In or Register to comment.