I have used below code for opening iView in Current Window. Still it is opening in new Winodow. Have checked Iview properties and Work Protect Mode , everything is fine.
WDPortalNavigation.navigateAbsolute("ROLES://portal_content/locationofiView", WDPortalNavigationMode.SHOW_INPLACE, WDPortalNavigationHistoryMode.NO_HISTORY, "New iView");
Can you people help me out in resolving this issue.