Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Event is not subscribed -how to check ?

I created event according this article:

just set other namespace and name, see code below,

created action and subscribed to it

by wdThis.wdGetOnPostSave_ItemDetailsAction();

which is compiled.

This code works on one portal but not their copy (not full) .

For what reason this code may not work on portal copy ?

public void wdDoInit()
    //@@begin wdDoInit()
	String PostSave_eventName = "ItemDetails_PostSave"; 
	String SaveTest_eventNamespace = "";

	if (PostSave_eventName != null && SaveTest_eventNamespace  != null && PostSave_eventName.length() > 0 && SaveTest_eventNamespace.length() > 0) 
		WDPortalEventing.subscribe(SaveTest_eventNamespace  , PostSave_eventName, wdThis.wdGetOnPostSave_ItemDetailsAction());


 public void onActionOnPostSave_ItemDetails( wdEvent )
	throw new RuntimeException("eee");

Former Member
Not what you were looking for? View more on this topic or Ask a question