Skip to Content
author's profile photo Former Member
Former Member

How to get the "where used" of a portal object.

Hi folks!

I'm coding a program to get the list of the portal objects where a specific portal object (an iView for example) is used. I found the method getWhereUsedList from IPcdContext but I'm getting some errors.

Is this the best/correct way to get a "where used list"?

Does anyone have an example of how to use this method correctly?

Thanks in advance.

Geraldo.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Oct 21, 2010 at 11:23 AM

    Hi,

    Check this blog, this may help you with some ideas...

    Browse Roles, Folders, Pages & iViews assigned to a user: EP6 SP2

    http://wiki.sdn.sap.com/wiki/display/Snippets/Browseportalcontentandobject+properties

    Regards,

    SrinivaS

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Geraldo,

      now you got me confused 😊

      Where exactly does the Class Cast happen?

      As far as I am aware, the following should be true:

      - iCtx.lookup(id) returns an instance of IPcdContext

      - ne.nextElement() returns an instance of IPcdSearchResult

      - searchResult.getObject() returns an instance of IPcdContext

      Regards,

      Tanja

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.