1. Get rid of all advertisements and get unlimited access to documents by upgrading to Premium Membership. Upgrade to Premium Now and also get a Premium Badge!

Site Hierarchy

Discussion in 'Oracle Webcenter Suite (formerly Oracle ECM)' started by oracleUCM, Jul 26, 2010.

  1. oracleUCM

    oracleUCM Active Member

    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    55
    Hello Evryone,

    I need to display 2 levels of contribution folders on the front end as a link

    For example : Home--> parent1--> child ( are three folders where home is parent of parent 1 and so on)
    Home--> parent1--> child
    My screen should display

    HOME
    . Parent1
    .Child
    .Parent2
    .child

    I am using following code to display the first level of folders for parent1 and parent2.

    <!--$parentID="123"-->
    <!--$exec getViewValuesResultSet("Folders", "", "")-->
    <!--$loop SchemaData-->
    <!--$if strEquals(SchemaData.dParentCollectionID,parentID)-->
    <!--$SchemaData.dCollectionName-->

    <!--$endif-->
    <!--$endloop-->

    but when I am trying to loop the second level it goes to infinite loop as shown:

    <!--$parentID="123"-->
    <!--$exec getViewValuesResultSet("Folders", "", "")-->
    <!--$loop SchemaData-->
    <!--$if strEquals(SchemaData.dParentCollectionID,parentID)-->
    <!--$SchemaData.dCollectionName-->
    <!--$vars= SchemaData.dCollectionID-->
    <!--$exec getViewValuesResultSet("Folders", "", "")-->
    <!--$loop SchemaData-->
    <!--$if strEquals(SchemaData.dParentCollectionID,parentID)-->
    <!--$SchemaData.dCollectionName-->
    <!--$endif-->
    <!--$endloop-->

    <!--$endif-->
    <!--$endloop-->

    Appreciate the great help.