Skip to Content
avatar image
Former Member

WDPortalEventing

I have a question about the WDPortalEventing.

The signature of the subscribe method requires a IWDAction as the third parameter.

I want to use the subscribe method in a generic component in the component interface controller or in the component controller.

But it seems that WDActions can be created only in views.

So, is there a way to crate WDActions from component controllers (maybe dynamically)?

Thanks Avihai.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 27, 2004 at 01:06 PM

    Avihai,

    A. If you have SP9...

    B. If com.sap.tc.webdynpro.progmodel.gci is an API package or you agreed to have a risk of using non-API package...

    Then take a look at

    com.sap.tc.webdynpro.progmodel.gci.IGCIController

    class, it has very promising

    public abstract IWDAction createAction
      (
        String s, 
        GCIActionEventHandlerEnum gciActionEventHandlerEnum, 
        String s1, 
        String s2
      );

    method.

    After casting from IWDController to IGCIController you can get access to it.

    Regards,

    VS

    Disclaimer: not used previously, not even sure that it can be applied for non-view controllers.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      As I said, I don not know whether or not it is part of API (btw, what is GCI stay for???)

      NW contains no documentation about this package. I discovered it via Java Browsing Perspective in NW.

      VS

  • avatar image
    Former Member
    Oct 27, 2004 at 03:23 PM

    Hello,

    actions can only live in view controllers. Sorry, but there is no way to create actions from other kinds of controllers.

    Best regards,

    Thomas

    Add comment
    10|10000 characters needed characters exceeded