🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
Parsed/Logged in Person presentation
This page was created by PageReplicator on 2025-09-01. Last edited by PageReplicator on 2025-09-01.

Template:Notice



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 DefaultStringRepresentation 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:

<a href="/File:2018-09-18_22h57_14.png" class="image" data-bs-title="File:2018-09-18_22h57_14.png" data-bs-filetimestamp="20180919091022"><img alt="2018-09-18 22h57 14.png" src="/images/f/fa/2018-09-18_22h57_14.png" decoding="async" width="397" height="101" class="thumbimage" /></a>
<a href="/File:2018-09-18_22h57_14.png" class="internal" title="Enlarge"></a>