Select to view content in your preferred language

Unable to publish data from another .js file ?

2929
1
Jump to solution
07-27-2015 05:27 AM
RahmathUnissa
Deactivated User

Hello,

I have created a widget, where I have file structure as

-images'

-manifest.json

-Widget.html

-list.js

-Widget.js

I am adding all the functionality in list.js.In list.js I have the data which I need to pass to another widget. So, I published the data from that list.js using this.publish.Data function and its not working.

Can anyone suggest me If I am doing something wrong?

Thanks & Regards,

Rahmath Unissa.

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Ratmath,

   The publishData method is inherited from the BaseWidget so your list.js does not have that method. You need to call this method from your Widget.js that inherits from BaseWidget.

View solution in original post

1 Reply
RobertScheitlin__GISP
MVP Emeritus

Ratmath,

   The publishData method is inherited from the BaseWidget so your list.js does not have that method. You need to call this method from your Widget.js that inherits from BaseWidget.