on 12-06-2007 1:27 AM
Hello,
As far as I know, wdContext is tied to the class that uses it. Like for example,
IPrivateTest1View.IContextNode wdContext;
How do I create a utility class that acceps a generic context, and evaluates the type of context that was pass?
Probably something like:
public void evaluate ( Object context) {
if (context instanceof IPrivateTest1View) {
//do something
}
Is this even possible? since the wdContext can have methods like currentElement based only on its declared context, which can differ on different wdContext's.
regards,
arnold
For generic access to context, use the IWDNode, IWDNodeElement, IWDNodeInfo etc. interfaces from progmodel.api.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can try to create a method as follows
private void a(DataNode node)
{
}
call it as
a(wdContext);
Your import should contain
import com.sap.tc.webdynpro.progmodel.context.DataNode;
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.