Clarity

  • 1.  Filter Portlet by Current User as default behovior

    Posted Mar 01, 2012 09:50 AM
    I would like to have a portlet that shows action items only for the current user and filtered by a particular issue category. It seems the OOB action items portlet filters by current user- I would like the same functionality but in a separate portlet AND filtered by Issue > category.

    Seems like this should be easy - such as in MS Sharepoint...


  • 2.  RE: Filter Portlet by Current User as default behovior

    Posted Mar 01, 2012 10:03 AM
    Using Clarity STUDIO you can build portlets that fit your specific business requirements.

    Such portlets can be based on stock data-providers (and will then have some limitations on how far you can personalise them) or on NSQL queries (which can be as complex functionally as you like - but are also limited in their functionality under some circumstances). Choose the option that makes most sense for you then.


  • 3.  RE: Filter Portlet by Current User as default behovior

    Posted Mar 01, 2012 10:33 AM
    after i configure the portlet > how do I filter based on the current user?

    Meaning when all users see the portlet, it will be filtered to show items pertaining to them only.

    I would like this to be the defualt view.

    User x and user y log in. User x sees only action items created by user x, user y sees only action items created by user y...


  • 4.  RE: Filter Portlet by Current User as default behovior

    Posted Mar 01, 2012 10:51 AM
    See the last post in the thread
    Timesheet Approval Portlet
    52661726

    Martti K.


  • 5.  RE: Filter Portlet by Current User as default behovior

    Posted Mar 01, 2012 10:59 AM
    excellent. so: @WHERE:PARAM:USER_ID@ will get me the logged in user.

    Being I am new to this system, where do I enter that so I can use it in a user portlet?

    sorry for such a basic question, but the documentaiton is ... ; (


  • 6.  RE: Filter Portlet by Current User as default behovior

    Posted Mar 01, 2012 11:08 AM
    got it.. should be able to run with it from there...


  • 7.  RE: Filter Portlet by Current User as default behovior

    Posted Mar 01, 2012 11:09 AM

    christianesler1319552 wrote:

    where do I enter that so I can use it in a user portlet?
    In the NSQL (that you need to write) which is in the QUERY that drives the bespoke PORTLET (that you need to build).

    (My answer is not a simple one ; you need to understand how to build bespoke portlets in clarity STUDIO to be doing this)


  • 8.  RE: Filter Portlet by Current User as default behovior

    Posted Mar 01, 2012 11:24 AM
    ...seems like it should be a simply ui option... but thanks- I just needed to be pointed in the right direction...-_-


  • 9.  RE: Filter Portlet by Current User as default behovior
    Best Answer

    Posted Mar 01, 2012 10:52 AM
    With a NSQL based portlet you can just use the security construct @WHERE:PARAM:USER_ID@ ;

    i.e.
    where srm_resources.user_id = @WHERE:PARAM:USER_ID@
    in the NSQL to restrict the data to the logged on user.

    Other similar NSQL constructs exist - read the studio manual for information.


  • 10.  RE: Filter Portlet by Current User as default behovior

    Posted Sep 27, 2012 09:18 AM
    Hi!

    I need to filter a given portlet based on the current username.
    Let say that my protlet shows the content of a given object in a list and a lookup value of this object points to the ID of the user.
    I would like to do the following thing:
    IF the current user belong to a given group show only the record where the user in the record is the current user
    OTHERWISE show all the records...

    how do you recommend to proceed?

    thanks in advance
    giacomo