Maximo List Archive

This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.



Default current user on app screen

From: John Ballnik (2013-05-24 11:58)

Hey Gang,
Does anyone know how to default a field on the screen to the current logged in user through the application XML?  I've tried this:
<defaultvalue dataattribute="INSPECTOR" defaulttype="INSERT" id="1367967713746b" value=":username"/>
and this
<defaultvalue dataattribute="INSPECTOR" defaulttype="INSERT" id="1367967713746b" value=":user"/>
But no luck.  I want to see if it's possible through the XML before I use the APPFIELDDEFAULTS table.
thanks,
John


From: Chris Lawless (2013-05-24 16:59)

Isn't it &USERNAME& or something similar?
Try select distinct defaultvalue from maxattribute; for clues...
Chris.
On May 24, 2013, at 2:58 PM, John Ballnik <jballnik@yahoo.com> wrote:
> Hey Gang,
>
> Does anyone know how to default a field on the screen to the current logged in user through the application XML? I've tried this:
>
> <defaultvalue dataattribute="INSPECTOR" defaulttype="INSERT" id="1367967713746b" value=":username"/>
>
> and this
>
> <defaultvalue dataattribute="INSPECTOR" defaulttype="INSERT" id="1367967713746b" value=":user"/>
>
> But no luck. I want to see if it's possible through the XML before I use the APPFIELDDEFAULTS table.
>
> thanks,
> John
>
>
>
>


From: Will Hampton (2013-05-24 21:26)

That depends on the version...
http://www.maximokb.com/kb/index.php?View=entry&EntryID=128
from 7.1 and up you can potentially use these:
&ALL&
&APPNAME&
&AUTOKEY&
&DATE&
&DATETIME&
&HOSTNAME&
&LABORFLAGS&
& MBONAME&
&NO&
&OWNER&
&OWNERNAME&
&PERSONID&
&SEQUENCE&
&SYSDATE&
&UNIQUE ID&
&USERNAME&
&YES&
R/
Will
From: MAXIMO@yahoogroups.com [mailto:MAXIMO@yahoogroups.com] On Behalf Of John Ballnik
Sent: Friday, May 24, 2013 1:59 PM
To: MAXIMO@yahoogroups.com
Subject: [MAXIMO List] Default current user on app screen
Hey Gang,
Does anyone know how to default a field on the screen to the current logged in user through the application XML? I've tried this:
<defaultvalue dataattribute="INSPECTOR" defaulttype="INSERT" id="1367967713746b" value=":username"/>
and this
<defaultvalue dataattribute="INSPECTOR" defaulttype="INSERT" id="1367967713746b" value=":user"/>
But no luck. I want to see if it's possible through the XML before I use the APPFIELDDEFAULTS table.
thanks,
John