View Full Version : How do I use an agent to feed xml data into a view?
waldav00
1 May 2008, 7:38 PM
Hi,
Until now, I have been using the Ext.nd.uiview but now I have a situation where I need to somehow loop through several documents and create the XML to feed into the view. Can this be done? How do I do this using Print statements in an agent? How do I call such an agent when setting up the view?
Thanks very much!
galdaka
1 May 2008, 10:47 PM
http://extjs.com/forum/showthread.php?t=8005
RWaters
5 May 2008, 9:36 AM
If you are going through an agent I would strongly recommend generating a simple set of JSON (There are even a couple open source JSON libraries for Lotuscript now). Json is much easier to deal with on the client side and is probably easier than hand generating some form of XML server side.
Then a simple JsonStore will take care of the rest.
Zakaroonikov
5 May 2008, 1:47 PM
If you are going through an agent I would strongly recommend generating a simple set of JSON (There are even a couple open source JSON libraries for Lotuscript now). Json is much easier to deal with on the client side and is probably easier than hand generating some form of XML server side.
Then a simple JsonStore will take care of the rest.
The performance on the client side should be better too as it doesn't have to convert the xml nodes to javascript objects. I have found even using outputformat=JSON appears faster then without it when doing readviewentries.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.