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.



Change Default Person Populated in SR AFFECTEDPERSON ... How?

From: hankinskeith (2012-02-06 22:32)

Reposting due to no response...
Does anyone know who to change the default value for 'AFFECTEDPERSON' in the SR
screen... We would like AFFECTEDPERSON to be blank when our admins open the
SR... Is this doable? I've looked in the XML files... no go... tried to create
a custom lookup with a Query like this... but it is not doing what I want it to
do... any ideas?
Note 3rd line... <defaultvalue id="new..." (below) doesn't work but it was
really close...
XML:
<dialog id="lookup_personname" label="Select Value" icon="img_lookup.gif"
beanclass="psdi.webclient.system.beans.LookupBean" >
<table id="personname" inputmode="readonly" selectmode="single" >
<defaultvalue id="new_defaultvalue" dataattribute="displayname" value=","
defaulttype="query" />
<tablebody id="personname_lookup_tablebody" filterexpanded="true"
filterable="true" displayrowsperpage="20" >
<tablecol id="personname_lookup_tablebody_col_2"
dataattribute="personid" mxevent_desc="Go To %1" mxevent="selectrecord"
sortable="true" type="link" />
<tablecol id="personname_lookup_tablebody_col_5"
dataattribute="displayname" mxevent_desc="Go To %1" mxevent="selectrecord"
sortable="true" type="link" />
<tablecol id="personname_lookup_tablebody_col_6" dataattribute="title"
mxevent_desc="Go To %1" mxevent="selectrecord" sortable="true" type="link" />
<tablecol id="personname_lookup_tablebody_col_7"
dataattribute="department" mxevent_desc="Go To %1" mxevent="selectrecord"
sortable="true" type="link" />
<tablecol id="personname_lookup_tablebody_col_8"
dataattribute="location" mxevent_desc="Go To %1" mxevent="selectrecord"
sortable="true" type="link" />
<tablecol id="personname_lookup_tablebody_col_9"
dataattribute="locationsite" mxevent_desc="Go To %1" mxevent="selectrecord"
sortable="true" type="link" />
<tablecol id="personname_lookup_tablebody_col_10"
dataattribute="locationorg" mxevent_desc="Go To %1" mxevent="selectrecord"
sortable="true" type="link" />
</tablebody>
</table>


From: Pat Morrow (2012-02-06 14:52)

You likely need to modify (extend) the class file and blank it out.
The class file is psdi.app.ticket.FldTkAffectedUserID and it is referenced in the SR view for the AFFECTEDPERSONID.
Once you have extended the class file, your new file will need to be referenced and do a rebuild/redeploy.
 
I hope this points you in the correct direction.
Pat Morrow
pmorrow8@yahoo.com
________________________________
From: "hankinskeith@ymail.com" <keith.d.hankins@aexp.com>
To: MAXIMO@yahoogroups.com
Sent: Monday, February 6, 2012 5:32 PM
Subject: [MAXIMO List] Change Default Person Populated in SR AFFECTEDPERSON ... How?
 
Reposting due to no response...
Does anyone know who to change the default value for 'AFFECTEDPERSON' in the SR
screen... We would like AFFECTEDPERSON to be blank when our admins open the
SR... Is this doable? I've looked in the XML files... no go... tried to create
a custom lookup with a Query like this... but it is not doing what I want it to
do... any ideas?
Note 3rd line... <defaultvalue id="new..." (below) doesn't work but it was
really close...
XML:
<dialog id="lookup_personname" label="Select Value" icon="img_lookup.gif"
beanclass="psdi.webclient.system.beans.LookupBean" >
<table id="personname" inputmode="readonly" selectmode="single" >
<defaultvalue id="new_defaultvalue" dataattribute="displayname" value=","
defaulttype="query" />
<tablebody id="personname_lookup_tablebody" filterexpanded="true"
filterable="true" displayrowsperpage="20" >
<tablecol id="personname_lookup_tablebody_col_2"
dataattribute="personid" mxevent_desc="Go To %1" mxevent="selectrecord"
sortable="true" type="link" />
<tablecol id="personname_lookup_tablebody_col_5"
dataattribute="displayname" mxevent_desc="Go To %1" mxevent="selectrecord"
sortable="true" type="link" />
<tablecol id="personname_lookup_tablebody_col_6" dataattribute="title"
mxevent_desc="Go To %1" mxevent="selectrecord" sortable="true" type="link" />
<tablecol id="personname_lookup_tablebody_col_7"
dataattribute="department" mxevent_desc="Go To %1" mxevent="selectrecord"
sortable="true" type="link" />
<tablecol id="personname_lookup_tablebody_col_8"
dataattribute="location" mxevent_desc="Go To %1" mxevent="selectrecord"
sortable="true" type="link" />
<tablecol id="personname_lookup_tablebody_col_9"
dataattribute="locationsite" mxevent_desc="Go To %1" mxevent="selectrecord"
sortable="true" type="link" />
<tablecol id="personname_lookup_tablebody_col_10"
dataattribute="locationorg" mxevent_desc="Go To %1" mxevent="selectrecord"
sortable="true" type="link" />
</tablebody>
</table>


From: andrew.tess (2012-02-06 23:20)

In Maximo 7.5 via Go To >> Service Desk >> Service Request the default is to have a blank AFFECTEDPERSON maybe using that instead of the Self Service Method since they are admins. But also, did you try looking at the following part of the XML <textbox applink="person" dataattribute="affectedpersonid" id="main_grid2a_col1_2" lookup="person" menutype="persontkt" /> (at least in 7.5. Also check that there are not any default valuers on the AFFECTEDPERSONID attribute in Database Configuration on SR Object. You may want to try setting the AFFECTEDPERSONID to blank with the default value, which should then blank the Affected Person.
Hope this helps, or gives you a few other directions to look.
Andy
--- In MAXIMO@yahoogroups.com, "hankinskeith@..." <keith.d.hankins@...> wrote:
>
> Reposting due to no response...
>
> Does anyone know who to change the default value for 'AFFECTEDPERSON' in the SR
> screen... We would like AFFECTEDPERSON to be blank when our admins open the
> SR... Is this doable? I've looked in the XML files... no go... tried to create
> a custom lookup with a Query like this... but it is not doing what I want it to
> do... any ideas?
>
> Note 3rd line... <defaultvalue id="new..." (below) doesn't work but it was
> really close...
> XML:
>
>
>
> <dialog id="lookup_personname" label="Select Value" icon="img_lookup.gif"
> beanclass="psdi.webclient.system.beans.LookupBean" >
>
> <table id="personname" inputmode="readonly" selectmode="single" >
> <defaultvalue id="new_defaultvalue" dataattribute="displayname" value=","
> defaulttype="query" />
>
> <tablebody id="personname_lookup_tablebody" filterexpanded="true"
> filterable="true" displayrowsperpage="20" >
> <tablecol id="personname_lookup_tablebody_col_2"
> dataattribute="personid" mxevent_desc="Go To %1" mxevent="selectrecord"
> sortable="true" type="link" />
> <tablecol id="personname_lookup_tablebody_col_5"
> dataattribute="displayname" mxevent_desc="Go To %1" mxevent="selectrecord"
> sortable="true" type="link" />
> <tablecol id="personname_lookup_tablebody_col_6" dataattribute="title"
> mxevent_desc="Go To %1" mxevent="selectrecord" sortable="true" type="link" />
> <tablecol id="personname_lookup_tablebody_col_7"
> dataattribute="department" mxevent_desc="Go To %1" mxevent="selectrecord"
> sortable="true" type="link" />
> <tablecol id="personname_lookup_tablebody_col_8"
> dataattribute="location" mxevent_desc="Go To %1" mxevent="selectrecord"
> sortable="true" type="link" />
> <tablecol id="personname_lookup_tablebody_col_9"
> dataattribute="locationsite" mxevent_desc="Go To %1" mxevent="selectrecord"
> sortable="true" type="link" />
> <tablecol id="personname_lookup_tablebody_col_10"
> dataattribute="locationorg" mxevent_desc="Go To %1" mxevent="selectrecord"
> sortable="true" type="link" />
> </tablebody>
>
> </table>
>