Skip to Content
avatar image
Former Member

Problem accessing context

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Dec 14, 2005 at 06:13 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.