You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to raise custom event from app-flow.js file in VBCS appn

edited Oct 23, 2019 9:37AM in Visual Builder 4 comments

Summary

How to raise custom event from app-flow.js file in VBCS appn

Content

Hi,

I want to programatically raise a custom event from app-flow.js file using below syntax.

 var AppModule = function AppModule(context) {

 this.eventHelper = context.getEventHelper();
 this.eventHelper.fireCustomEvent("setBrowserLocaleEvent", e);

}

But context object passed in the constructor shows as undefined.

The same works if we raise the custom event from page level (context object gets the data).

Could you please help here.

Thanks,

Sweta

Version

19.3.1.3
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!