Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

IWDPageService return empty iView

Greetings,

I have WebDynPro Java iView and a non-WebDynPro iView that is attached a portal page. In the the WebDyn Pro Java iView, I have tried execute code to call portal service (page service) in order to get information of how many visible iView in the particular portal page and try to hide the non-WebDynPro iView from the portal page.

Problem:

After the execute the code below, the iView name array contains nothing (length equals to zero). I expected the length be 2 (as it contains 2 iView).

IWDPageService pageService = (IWDPageService)
		WDPortalUtils.getService(WDPortalServiceType.PAGE_SERVICE);
		
	if (pageService!=null){	
		// String array receives iView names
		String[] iViews = pageService.getVisibleIViews();
	
                *// iViews length is 0*
		if (iViews!=null){
                        pageService.hideIView("Details");
		}
	}

Note:

Sharing reference for page service is not set in the WebDynPro component as written in the SAP article.

http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/0357425e060d53e10000000a155106/content.htm

I would like to know why does this happen.

Former Member
Not what you were looking for? View more on this topic or Ask a question