Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hox to het News Channel Data froml a custom view 1

Status
Not open for further replies.

scuderia1

Technical User
May 6, 2009
3
FR
Hello
I'm quite a newbie in Livelink. To improve the way the news are displayed in a custom view (List starting from the top with date and Headline instead of rotating ticker)I'm looking a way to get all the data corresponding to a new channel and I'll process them with JAvascript in a custom view.

My question: How to get those data from the custom view?
Thanks in advance
 
Assuming that you do not like the newsticker that is part of standard livelink and you want to make up your own kind of way you should understand this.The customview.html is an object in livelink that the livelink pages render or stream.By design it cannot call data sources/Request Handlers etc.That is what the ticker is doing it is calling the news object which is probably stored in the extendeddata column of dtree for that object.So in my mind I could envision the customview made up of an iframe and the iframe makes a server side call to get the data.Or perhaps the AJAX technology that we hear about could help you.Regardless of technolgy in implementation if you are storing the news in livelink you would need to get it,if it comes from an external source a submit to get that data form that datasource as well.Alternatively check out the webreports product which allows stanadard javascripting and tag libraries to create dashboards etc all the LL server side calls are abstracted from you by the product.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer and probably certfiable,Livelink ECM Champion 2008

 
Thanks for the answer:
your assumption is coorect I do not like the way the news are displayed. When there several news the user has to wait for all news to pass.The way I think, It would be a list with Link to get more for each.
Looking to WebReport is a good Idea . I foun one which provide me all the data ( So I would be able to process them with Javasript ,but I do not know how send thos data to a customview.html.
If you could give me the way I'll try it.
Thanks
 
I do not know too much about this but in less than five minutes I did this.

I created a Livereport (you seem to know web report so LR is one of the data sources of WR) and I executed it.I copied its URL it looks like this
After I checked it was giving me output I created a customview and in the source of the customview I inserted these lines
Code:
<iframe src ="[URL unfurl="true"]http://localhost/Livelink/livelink.exe?func=ll&objId=18947&objAction=RunReport"[/URL] width="100%" height="300">
  <p>Your browser does not support iframes.</p>
</iframe>

When the page loaded I could see the iframe executing the LR and providing me results.If you use this judiciously you could theoretically do what you are trying to do.

I did this on LL9.7.1

[/code]

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer and probably certfiable,Livelink ECM Champion 2008

 
Thanks
It is helpfull. Even if I do not get exactly what I was lloking for in term of aspect; it gives me clue how to get further.
As you said in the 1rst answer data I'm looking for are in ExtendedData Column.
So from the webreport I'll Extract only what I need in a 1rst step, then I'll see how to process them more in the way I want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top