View Full Version : Datapath pooling
roundpeg
10-15-2003, 11:56 PM
I am struggling with getting pooling to work with datapaths.
Do you have any sample code that shows a group of replicated views updating when the datapath is updated?
Thanks!
antun
10-16-2003, 09:15 AM
When the datapath is updated? You don't mean when the data is updated, do you?
If it's the datapath, then there is a bug right now in the LPS that prevents views from updating if their datapath is set, and it's not set absolutely (e.g. you call setDatapath( 'foo[3]' ), rather than setDatapath( 'myds:/items/foo[3]' ), if the parent's datapath is already 'myds:/items').
If you do mean when the data is updated, then have a look here:
http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&threadid=254&highlight=pooling
If you post a snippet of how you're trying to implement pooling, I'll tell you if it's correct or not.
-Antun
roundpeg
10-16-2003, 12:28 PM
Another datapath question.
When you call setDataPath(), can the argument be a concatenated string?
eg. foo.setDataPath( 'myds:/items/foo['+i+']' );
where i is some index.
antun
10-16-2003, 12:55 PM
Absolutely - that should work. You can also build up the string as a variable, and then pass that to setDatapath():
var dp = 'myds:/items/foo['+i+']';
foo.setDatapath( dp );
-Antun
Originally posted by roundpeg
Another datapath question.
When you call setDataPath(), can the argument be a concatenated string?
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.