-
November 12th, 2009, 03:11 PM
#1
2 ArrayList for two pages ?? (StockList example)
Is it possible to have 2 ArrayLists ("stockGenerators1" (with name as "exp1", "exp2", "exp3")... and "stockGenerators2" (with names as "item1", "item2", "item3"...)) in the same Feed Simulator class (the first one is going to be used for page1, and the other for page2), or we have to make 2 Feed simulators and 2 pages ?
And is it possible to show the two tables in the same page ?
-
November 13th, 2009, 11:45 AM
#2
The FeedSimulator class is only for demonstration purpose and it is not part of the Data Adapter interface specifications.
Moreover, it was included in the demo adapter just as a placeholder for a real feed.
In general, you can show multiple tables in your page, by subscribing to the same or different items.
All the involved items may be supplied by the same Data Adapter.
In this case, the Data Adapter does not know how (e.g. in which tables) the various client pages use these items.
The Data Adapter only distinguishes the items based on the external channel by which it can get their values. There may be one or multiple such channels.
If you want to simulate getting data from multiple channels, then you may want to take advantage of the the FeedSimulator class and reuse it to create 2 FeedSimulators.
On the other hand, you may, for your convenience, reuse one FeedSimulator. In that case, you can extend it internally in whichever way.
I think that you might just extend the included stockGenerators list.
-
November 17th, 2009, 02:46 PM
#3
Similar Threads
-
By sharathbabuk in forum General
Replies: 8
Last Post: July 30th, 2010, 03:18 PM
-
By indrajit in forum Adapter SDKs
Replies: 8
Last Post: May 22nd, 2008, 05:01 AM
-
By hungn in forum Adapter SDKs
Replies: 8
Last Post: May 7th, 2008, 09:53 AM
-
By tuongkha in forum Client SDKs
Replies: 4
Last Post: March 19th, 2008, 10:10 AM
-
By indrajit in forum Client SDKs
Replies: 5
Last Post: February 22nd, 2008, 10:37 AM
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 05:15 AM.
Bookmarks