2 Replies Latest reply on Jun 23, 2011 3:34 PM by JoFrmOZ

    Remove Sub Bookmarks from Bookmark Tree

    JoFrmOZ Level 1

      I have a report with over 100 main bookmarks which will be generated each week.


      Each bookmark contains sub bookmarks in the tree which needs to be removed.


      Persons Name and Employee Number - (Main Bookmark)

      Job Number 1 (Sub bookmark)

      Job Number 2 (Sub bookmark)


      I have a script to remove the sub bookmarks but it is not working.


      Can anyone please provide assistance with modifying the script so it will remove the sub bookmarks?


      function RemoveBookmark(bkm, nLevel)

      for (var i = 0; i < bkm.children.length; i++)


      Thank you