question

Upvotes
Accepted
75 1 4 5

Can options be set in News.js to obtain Global news for private cos? For eg. i want to search for related Global news for MyRepublic and have it downloaded through the app studio

eikonnewseikon-app-studiojavascript
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
83.1k 281 53 77

You can use subscription.newsExpression (expression) to set expression for selecting news headlines that will be received from container. For example:

  var s = JET.News.create()
             .newsExpression("BOJP OR ABNNEW")            
             .onAppend(function (upd) { console.log(upd.h); })
             .onInsert(function (upd) { console.log(upd.h); })
             .start();

The above code will receive news headlines from ABN Newswire and Bank of Japan Announcements.

You can find valid expressions from filters in News Monitors application.


expressions.png (28.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.