Can options be set in News.js to obtain Global news for private cos? For eg. i want to search for re

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

Best Answer

  • Jirapongse
    Answer ✓

    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.

    image