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.

@eric.tham

This question should be in the App Studio forum. Therefore, I have moved it to the App Studio forum.

@eric.tham

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks, AHS

@eric.tham

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,
AHS

1 Answer

· Write an Answer
Upvotes
Accepted
79.1k 250 52 74

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.