on 05-15-2007 7:48 AM
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
Hartmut,
Definitely, do this check in wdDoInit method.
Save the check result as context attribute value or context node elements, then later access aforementioned values/elements from variable wdContext that is passed to wdDoModifyView method.
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hartmut
You can use wdModify method with a condition,Means if you want to perform role check in doInitialization you can do.
To display dynamically
you can use firstTime parameter
like
if(firstTime)
{
//write your code that is executed only when the screnn is rendering for the firstTime
}
regards
kalyan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.