Logged in Person presentation
(Created page with "The Main menu shows the logged in user’s username. This has now been extended so that you can show other information for the user by setting the DefaultStringRepresenation o...")
 
No edit summary
Line 1: Line 1:
The Main menu shows the logged in user’s username. This has now been extended so that you can show other information for the user by setting the DefaultStringRepresenation of the SysUser in the model.
The Main menu shows the logged in user’s username (SysUser). This has now been extended so that you can show other information for the user by setting the DefaultStringRepresenation of the SysUser in the model.


If you have this:
If you have this:

Revision as of 09:22, 19 September 2018

This page was created by Hans.karlsen@mdriven.net on 2018-09-19. Last edited by Edgar on 2025-01-20.

The Main menu shows the logged in user’s username (SysUser). This has now been extended so that you can show other information for the user by setting the DefaultStringRepresenation of the SysUser in the model.

If you have this:

if self.Person->isempty then
  self.UserName
else
  self.Person.FirstName+' '+self.Person.LastName+
  if self.Person.House->isempty then
    ''
  else
    ' i hus '+self.Person.House.Name
  endif
endif

You get this:

2018-09-18 22h57 14.png