Post new topic Reply to topic  [ 6 posts ] 

Board index : GWT-Ext Forums : GWT-Ext 2.x Discussion

Author Message
 Post subject: Linking GWT-ext page with dyamnic data
PostPosted: Fri May 09, 2008 2:00 am 
Offline

Joined: Fri May 09, 2008 12:07 am
Posts: 2
I need to download data from a url through my application . the data is obtanied a .csv file whichi need to parse and display in gwt-ext page inside a grid.
i m not abl t ot find api/function that will me help me to get data frm that url and parse it.
I tried using ScriptTagProxy using following way.
DataProxy proxy = new ScriptTagProxy("http://download.finance.yahoo.com/d/quotes.csv?s=XOM+BBDb.TO+JNJ+MSFT&f=nd1l1");
and tried to read this data through jsonReader but that did not work


RecordDef recordDef = new RecordDef(
new FieldDef[]{
new StringFieldDef("name"),
new StringFieldDef("lasttrdate"),
new FloatFieldDef("lasttradeval")
}
);

//ArrayReader reader = new ArrayReader(recordDef);
JsonReader reader = new JsonReader(recordDef);

Request you to help me reagrding this.


Back to top
 Profile  
 
 Post subject: Re: Linking GWT-ext page with dyamnic data
PostPosted: Sat May 31, 2008 2:31 pm 
Offline

Joined: Mon Mar 10, 2008 7:21 am
Posts: 202
Hi, have you found a solution already?

ScriptTagProxy expects the server's response in a specific format. Take a look at this: http://gwt-ext.com/docs/gwtext2/com/gwt ... Proxy.html

But in this case, Yahoo just returns a csv file. Looks like that is the problem. One way to get the data would be to have a servlet which hits the Yahoo url, parses the CSV and converts it to JSON/XML and then use a JSON/XML reader on the client.

You could also try out GwtProxy if you would rather use a GWT remote service to do the work.
http://www.gwt-ext.com/demo-ux/#gwtProxySample

_________________
Gwt-Ext docs: http://gwt-ext.com/docs/2.0.4/
Your question may have been answered already: viewforum.php?f=9


Back to top
 Profile  
 
 Post subject: Re: Linking GWT-ext page with dyamnic data
PostPosted: Wed Jun 04, 2008 2:14 pm 
Offline

Joined: Mon Mar 10, 2008 7:21 am
Posts: 202
I have posted the solution at http://gwt-ext.com/users/abhijeet/GwtEx ... Reader.zip and a brief description on my blog at http://abhijeetmaharana.com/blog/2008/0 ... om-reader/

_________________
Gwt-Ext docs: http://gwt-ext.com/docs/2.0.4/
Your question may have been answered already: viewforum.php?f=9


Back to top
 Profile  
 
 Post subject: Re: Linking GWT-ext page with dyamnic data
PostPosted: Wed Jun 04, 2008 6:56 pm 
Offline
User avatar

Joined: Thu Feb 07, 2008 5:37 pm
Posts: 582
Location: San Francisco, CA.
Abhijeet,
This is awesome... Why don't you introduce it in the UX project? it will be great to have it for everyone to use.... (including me :) )


Back to top
 Profile  
 
 Post subject: Re: Linking GWT-ext page with dyamnic data
PostPosted: Wed Jun 04, 2008 7:24 pm 
Offline
Site Admin

Joined: Fri Dec 14, 2007 12:27 pm
Posts: 1017
Excellent blog. Agree that it would be a nice addition to gwt-ext-ux.

Can you add an entry for this (and your other blog articles) in the tips forum pointing to your blog url?

Thanks,
Sanjiv


Back to top
 Profile  
 
 Post subject: Re: Linking GWT-ext page with dyamnic data
PostPosted: Thu Jun 05, 2008 1:24 am 
Offline

Joined: Mon Mar 10, 2008 7:21 am
Posts: 202
Thanks!!!
Ill add the links to tips forum today evening.
Actually, I had thought of adding this to the UX project but changed my mind thinking its too small to matter. Now that you mention it, Ill check it in! After 2.0.4 though so that it doesn't affect the current release.
Sanjiv, request you to give me commit access to the project.

Thanks,
Abhijeet.

_________________
Gwt-Ext docs: http://gwt-ext.com/docs/2.0.4/
Your question may have been answered already: viewforum.php?f=9


Back to top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

Board index : GWT-Ext Forums : GWT-Ext 2.x Discussion


Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Style by Midnight Phoenix & N.Design Studio
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.