Topic
  • 8 replies
  • Latest Post - ‏2014-11-27T20:00:44Z by Richard Hoath
JuanRomero
JuanRomero
14 Posts

Pinned topic Is there a way to restrict persons listed at "Select Owner" window. (SCCD 7.5)

‏2014-01-15T20:08:48Z |

 

Hi everybody
 
At the moment of choosing an owner,  if the SR has already an owner, the window is going to list every person available for becoming an owner. What we are trying to achieve it that the window only list every member of the person group the current  SR owner belongs to.
 
 
We have created the following conditional expresion:
 
persongroup in (select persongroup from persongroupteam where resppartygroup = :SR.OWNER)
 
Then, at the security group we have created an object restriction:
 
application = SR
object = PERSONGROUPVIEW
Type = QUALIFIED
condition = persongroup in (select persongroup from persongroupteam where resppartygroup = :SR.OWNER)
 
The problem is that the condition is not working, and it is not working because it looses the context: The condition is evaluated against PERSONGROUPVIEW object, and this object does not know the owner of the SR.
 
I really appreciate any idea you people can  have to solve this request.
 
Best regards
 
Juan Romero

Attachments

Updated on 2014-01-15T20:11:04Z at 2014-01-15T20:11:04Z by JuanRomero
  • S.Lsysadm
    S.Lsysadm
    43 Posts

    Re: Is there a way to restrict persons listed at "Select Owner" window. (SCCD 7.5)

    ‏2014-01-28T16:18:38Z  

    Hi Juan

    I think the reason why it doesn't get evaluated against PERSONGROUPVIEW is because it's not a top level object. Qualified type does work on top-level object.

    Try using object = PERSON and see if it works or not.

    Thanks

    Stephan

  • Techguy_maximo
    Techguy_maximo
    33 Posts

    Re: Is there a way to restrict persons listed at "Select Owner" window. (SCCD 7.5)

    ‏2014-01-28T18:11:08Z  

    Hi Juan,

    Please change the object to SR as Stephan suggested. It will work.

    Thanks & Regrds

  • JuanRomero
    JuanRomero
    14 Posts

    Re: Is there a way to restrict persons listed at "Select Owner" window. (SCCD 7.5)

    ‏2014-01-30T14:28:15Z  
    • S.Lsysadm
    • ‏2014-01-28T16:18:38Z

    Hi Juan

    I think the reason why it doesn't get evaluated against PERSONGROUPVIEW is because it's not a top level object. Qualified type does work on top-level object.

    Try using object = PERSON and see if it works or not.

    Thanks

    Stephan

    Hi Stephan.

    At the moment of assigning an owner to a sr record it is done against the PERSONGROUPVIEW object. The object restriction has to be when SR application calls PERSONGROUPVIEW object. There is no problem using a no top level object to create the restriction.

    Actually  our concern is about the conditional expresion. the conditional expresion context is the PERSONGROUPVIEW but unfortunately the data the filter needs to work  is at SR object.

    We want that at the moment of choosing a new SR owner,  the user may only assign to any of the group members that the current SR owner belongs to.

    We need to inform to the PERSONGROUPVIEW the actual SR owner, but we can't because the current context is at  PERSONGROUP object, not service request object.

    Using PERSON object will lead us to the same issue.

    Best regards.

    Juan Romero

     

  • JuanRomero
    JuanRomero
    14 Posts

    Re: Is there a way to restrict persons listed at "Select Owner" window. (SCCD 7.5)

    ‏2014-01-30T14:34:13Z  

    Hi Juan,

    Please change the object to SR as Stephan suggested. It will work.

    Thanks & Regrds

    Hi Tech Guy

    We are triyng to filter PERSONGROUPVIEW records, not SR records.

    Change to SR object will not aloud us to filter PERSONGROUPVIEW object. 

    Best Regards.

    Juan Romero

  • P.Heath
    P.Heath
    200 Posts

    Re: Is there a way to restrict persons listed at "Select Owner" window. (SCCD 7.5)

    ‏2014-01-31T14:48:17Z  

    There is a TICKET to PERSONGROUPVIEW relationship associated with the Persons tab of the Select owner dialog in SRs.

    Edit this relationship in ticket or create a new one in SR.

     

  • pnsGlob
    pnsGlob
    11 Posts

    Re: Is there a way to restrict persons listed at "Select Owner" window. (SCCD 7.5)

    ‏2014-06-27T07:54:18Z  

    Did you ever  resolve this problem ?

    I have a similar problem only with incident where the owner selection should be dependent on which group has been chosen.

     

  • rothermf
    rothermf
    10 Posts

    Re: Is there a way to restrict persons listed at "Select Owner" window. (SCCD 7.5)

    ‏2014-08-18T15:03:38Z  
    • pnsGlob
    • ‏2014-06-27T07:54:18Z

    Did you ever  resolve this problem ?

    I have a similar problem only with incident where the owner selection should be dependent on which group has been chosen.

     

    We've did something similar, but we added a custom dialog in the system.xml. The dialog shows only those persongroups you belong to. Maybe this should also work the other way round.

    Important is this: (copied from the original dialog)

    <dialog id="cxownerdialog" label="Select Owner Group">

    <tab beanclass="com.ibm.ism.pmcom.webclient.beans.pmcom.PmComOwnerBean" id="cxownerlaborowner" label="Persons" relationship="persons" whereclause=" personid=:USER and persongroup is not null and persongroup in ( select persongroup from maximo.persongroup where cxstatus = 'ACTIVE' )">

    Via the Application Designer you create a Sigoption which is the dialog id (cxownerdialog). With this you can also create an Action Menu entry (cxownerdialog). So you can open this dialog via workflow or application.

    Updated on 2014-08-18T15:06:30Z at 2014-08-18T15:06:30Z by rothermf
  • Richard Hoath
    Richard Hoath
    1 Post

    Re: Is there a way to restrict persons listed at "Select Owner" window. (SCCD 7.5)

    ‏2014-11-27T20:00:44Z  

    Hi Juan,

    did you resolve this one?  we have same issue.  object restriction on lookup values (classstructure), but needs to restrict conditionally based on attribute entered on the main record (SR).