cancel
Showing results for 
Search instead for 
Did you mean: 

Problem accessing context

Former Member
0 Kudos

Hi,

I've search the forum but did not get any resolution on my problem. If this has been discussed before, I beg your pardon. By the way, i am a newbie, so please be patience

I'm doing typed access to a context node (Value Node).

I declare the component controller context as SalesOrders, it has several attributes, 0..n cardinality, typedaccessrequired = true.

so when I try to add an entry, i did the following in wdDoInit method:

ISalesOrdersNode salesRef = wdContext.nodeSalesOrders();

However, I do get error message saying that ISalesOrdersNode cannot be resolved or is not a type.

Do i need to import something? What have I missed?

Any helps/pointers would greatly be appreciated

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Iwan,

You have to do one of the following:

a) refer class as

IPrivate<NameOfYourControllerHere>.ISalesOrdersNode

b) add the following import statement

import <packages>.wdp.IPrivate<NameOfYourControllerHere>.*

VS

Former Member
0 Kudos

Thanks, that does it. By the way, point b that you've mentioned is already there.. i just did not refer the class as IPrivate<NameOfYourControllerHere>.ISalesOrdersNode

Thanks again for the help.

Answers (0)