Skip to Content

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

IWDPageService - Need information

HI,

I have one portal page which contains two iviews.I want to use IWDPageService for my requirement.

If I make right hand side iview invisible,then lefthand side iview should occpy the entire page.

Similarly if I make lefthand side iview invisible,then the entire page should be occupied by the right hand side iview.

I tried all possible way to do this.Please suggest me.Here is my sample code:-

IWDPageService pageService = (IWDPageService)

WDPortalUtils.getService(WDPortalServiceType.PAGE_SERVICE);

// String array receives iView names

String[] iViews = pageService.getVisibleIViews(); //-->Here I am getting the length of the array as 0

IWDPageService pageService = (IWDPageService)

WDPortalUtils.getService(WDPortalServiceType.PAGE_SERVICE);

// display iView Search

pageService.showIView("<iview ID>");

// hide iView Details

PLease suggest me.

Regards

-Sandip

Former Member
Former Member replied

hi,

use th following link,

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1aa4d188-0e01-0010-2382-c5c65202c433

also refer to this post (for ARRAY BEING EMPTY).

Null Pointer error with IWDPageService

Regards

Jayapriya

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question