-
June 8th, 2010, 09:31 AM
#1
Read and display items from XML
Hi,
Currently, I am trying to do a dynamic HTML page that retrieves the items list from an XML file, display them in the HTML page and subscribe to them in a java adapter. So far all the examples hardcodes the list of items (at least those i've seen) on the HTML page. I am rather new to LS so it will be really helpful if someone can advise on this!
thanks in advance!
-
June 9th, 2010, 09:07 AM
#2
We should distinguish between the subscription stuff and the visualization stuff.
The subscription request consists of creating a Table object and issuing addTable.
If you use a NonVisualTable, this is entirely dynamical and just requires you to know the items and fields to be subscribed to at the time of subscription.
Then, your code will take care of showing the values on the page.
On the other hand, if you want to take advantage of a VisualTable, then you have to provide suitable "cells" on the page, to allow the visual table to display the values.
Even in this case, you don't need to hardcode the cells in the page; you should just have them available at the time of subscription.
One of our online demos, the grid demo, shows dynamical creation of subscriptions and related cells.
In that case, any time the scrollbar is moved, the page is modified by adding some cells and removing others. Note that the behavior is more complex than in your case.
You can grab the source through the browser.
-
June 9th, 2010, 09:54 AM
#3
Originally Posted by
chewjq
So far all the examples hardcodes the list of items (at least those i've seen) on the HTML page.
The Portfolio Demo shows how to dynamically push the list of items too.
Similar Threads
-
By colmfield in forum Client SDKs
Replies: 2
Last Post: August 25th, 2010, 05:21 PM
-
By hungn in forum Client SDKs
Replies: 8
Last Post: March 25th, 2010, 09:02 AM
-
By huynhdt in forum Client SDKs
Replies: 0
Last Post: March 8th, 2010, 10:27 AM
-
By EWANG in forum Client SDKs
Replies: 1
Last Post: October 9th, 2009, 10:46 AM
-
By itsupport in forum Client SDKs
Replies: 3
Last Post: March 6th, 2009, 03:13 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 06:24 PM.
Bookmarks