Clarity

 View Only
  • 1.  Query to return which users have adjusted thier views

    Posted May 17, 2013 02:02 PM
    Our Business Team wants to know the impact of how many users will be affected when an object is published. I was wondering if anyone had a query which told you based on the object which portlet/views were affected, how many users would be affected and who those users are?

    "Do you want to publish this object's views? All user views will be reset. If partitions are being used, this will only affect the current partition. "


  • 2.  RE: Query to return which users have adjusted thier views
    Best Answer

    Posted May 17, 2013 02:19 PM
    Hi Becky,
    this should give you the names. the dal_code is the object id.

    select u.user_name , u.first_name||' '||u.last_name Who , cg.last_updated_date When_Customised
    from cmn_grids cg, cmn_sec_users u
    where dal_code='project'
    and principal_type = 'USER' and principal_id = u.id and u.USER_STATUS_ID = 200


  • 3.  RE: Query to return which users have adjusted thier views

    Posted May 17, 2013 04:26 PM
    You could also experiment with the conditions from CMN_GRIDS
    like replacing dal_code='project' wtih dal_type='object'

    Martti K.


  • 4.  RE: Query to return which users have adjusted thier views

    Posted May 17, 2013 04:34 PM
    Yeah I actually ended up going with this which is a slight modification to the original

    select dal_code, cg.code, u.user_name , u.first_name||' '||u.last_name Who , cg.last_updated_date When_Customised
    from cmn_grids cg
    inner join cmn_sec_users u on cg.principal_id = u.id
    where dal_code='teams'
    and principal_type = 'USER' and u.USER_STATUS_ID = 200
    and cg.code is not null


  • 5.  RE: Query to return which users have adjusted thier views

    Posted May 19, 2013 07:59 PM
    Thats very helpful, thank you.

    Does anyone has a query that can provide list of resources who have configured portlets (custom and ootb)?

    Regards,
    Akhil


  • 6.  RE: Query to return which users have adjusted thier views

    Posted May 20, 2013 11:28 AM
    cmn_grids should give you that infromation,too.

    To see how have changed the global or system configuraiton of the portlets see the cmn_portlets.last_update_by


    Martti K.


  • 7.  RE: Query to return which users have adjusted thier views

    Posted May 21, 2013 10:17 PM
    Ahh... thanks Martti . did not initially realise that the code is blank for portlets.