[Laszlo-user] performance of grid in OL

André Bargull a.bargull at intensis.de
Sat Jul 21 03:39:15 PDT 2007


"grid" has got an attribute called "contentdatapath", which controls the 
replication-point for your grid (it defaults to "*", which means all nodes).
But this attribute cannot be changed at runtime, see LPP-4317 
("http://www.openlaszlo.org/jira/browse/LPP-4317"). So we have to create 
a workaround by using 
"view_newhire_grid.content.rowparent.replicator.setDatapath(..)".
"content" denotes the content-area for a grid, "rowparent" holds all 
rows in this content-area and "replicator" is an instance of 
"basegridrow" (or whatever is set as "basegrid#_rowclass") resp. an 
instance of "LzLazyReplicationManager" once replication has started.

André


mike_openlaszlo at serenesoftware.com wrote:
> Thanks! That helped a great deal. The longer explanation would be helpful
> for future reference.
>
> Thanks again,
>  
> Michael Sick
>
> -----Original Message-----
> From: André Bargull [mailto:a.bargull at intensis.de] 
> Sent: Wednesday, July 18, 2007 3:21 PM
> To: mike_openlaszlo at serenesoftware.com
> Cc: laszlo-user at openlaszlo.org
> Subject: Re: performance of grid in OL
>
> Hello Michael,
> I bet this was quite slow for you, because you actually replicated a 
> bunch of grids.
> However, try this code to update your grid:
> [code]
> view_newhire_grid.content.rowparent.replicator.setDatapath( 
> "managers:/response/resultset/result[@managerId='"+ id + "']" );
> [/code]
>
> I could write a longer explanation for this line of code, but as you 
> said you are new to OpenLaszlo, so I'm not sure if it was useful to 
> speak about things like "LzLazyReplicationManager" etc. :-)
>
> Best regards,
> André
>
>   
>> The attached/included use of OL's grid is pretty slow for a small table.
>>     
> As
>   
>> I grow the table/data set it gets very slow. I must be doing something
>>     
> quite
>   
>> wrong but it is not apparent to me from looking at existing examples. New
>>     
> to
>   
>> OL and any feedback greatly appreciated.
>>
>>  
>> Thanks,
>>
>> Michael Sick
>>     

-- 
Mit freundlichen Grüßen,

André Bargull


Intensis
Lösungen für Informationslogistik

Tel.:   +49 231 5522-900
Fax:    +49 231 5522-901
E-Mail: a.bargull at intensis.de
_________________________________
Intensis GmbH
Ruhrallee 9
44139 Dortmund

Amtsgericht Dortmund:
HRB 15547

Geschäftsführer:
Holger Schmitt

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070721/3facc708/attachment.html


More information about the Laszlo-user mailing list