Logged in Person presentation
m ((username removed) (log details removed): Moving to Documentation namespace)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
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.
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 you have this:
Line 15: Line 15:
[[File:2018-09-18 22h57 14.png|none|thumb|397x397px]]
[[File:2018-09-18 22h57 14.png|none|thumb|397x397px]]
[[Category:WebUI]]
[[Category:WebUI]]
{{Edited|July|12|2024}}

Latest revision as of 14:38, 14 May 2024

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:

2018-09-18 22h57 14.png
This page was edited more than 8 months ago on 05/14/2024. What links here