Skip to Content
0
Former Member
May 15, 2007 at 06:48 AM

Checking portal roles in WebDynpro

50 Views

Hi,

I want to make some role checking in my WD and depending on the role I want to create the WD dynamically. I know how I can check the roles and also how to generate the WD dynamically, but I don't know where to do it.

In which method should I do the role checking and generating the WD dynamically?

public void wdDoInit()

OR

public static void wdDoModifyView(IPrivateComponentEDView wdThis, IPrivateComponentEDView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)

I think I should use the wdDoInit() method, but to generate the WD dynamically I need this parameter IWDView from the wdDoModifyView method. But I think it's not the right method for that...

So what should I do where?

Thanks in advance,

Hartmut