Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • App Studio /
avatar image
Question by ichim_raluca · Oct 27, 2016 at 04:35 AM · newsheadlines

headline body

Dear Support,

I would like to ask for your help regarding the News pluggin. I am using App Studio web Sdk.

I managed to fetch the headlines, as per the example given in Top&Basket documentation of Jet pluggin. However, I would also like to get the stories behind the headlines (to be able to open the headlines and see the body of the story). If that is possible, how can I achieve it?

I did notice that to open a news you do :

		JET.navigate

		({name:"News",
		entities:[{NewsQuery: query
		}]})

but I was not able to use that in the News object (jet.News.create()).

I would also like to ask, what the "A" means from the following expression: .newsExpression("A"). Are there any other expressions that can be used apart from "A" or rics? I read something about N2_UBMS, but that's I think that is not working anymore.

When creating a subscription, I saw that this is used: JET.News.create("myID"); Could you please explain me how this works? From what I understood, when you do JET.News.create("myID") then you need to use an input field with your query(like in the given example). This is called subscription. The other option is to do .newsExpression("A") and this will run the headlines "automatically", without user input. Did I get it right ?

Sorry for so many questions, let me know please if you need more information.

many thanks in advance.

raluca

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by jirapongse.phuriphanvichai · Oct 27, 2016 at 06:08 AM

Yes, you need to use JET.navigate to see the story.

JET.navigate( { name: "News", entities: [{ NewsQuery: urn }] });

You can get the urn field from the returned news object.

For the newsExpression, please refer to this thread. I assumes that 'A' means "All News".

To start a subscription, a news expression should be specified. In the sample code, it creates a news object and sets the callback methods after JET was loaded.

JET.onLoad(initApp);

JET.init({
    ID: "JETSample"
});

function initApp() {
    // Creating a subscription with custom ID.
    JET.News
        .create('MyID')
        .onAppend(onAppend)
        .onInsert(onInsert)
        .onDelete(onDelete);
...
}

Then, it gets the news object, sets the news expression and then calls restart() to start the subscription.

 JET.News
        .get('MyID')
        .newsExpression($('#input').val())
        .restart();
Comment
Zhenya Kovalyov

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

avatar image
Answer by ichim_raluca · Oct 28, 2016 at 02:30 AM

Thank you. it worked with the urn.

Best regards,

Raluca

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

Getting story content

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

What is wrong with news filtering?

News Monitor

Extracting full news content for news item in App studio

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges