[Laszlo-dev] how to archive a datapath?

Andrew McClain amcclain at laszlosystems.com
Thu Jun 9 12:02:42 PDT 2005


I need to archive a datapath for a component and be able to restore it 
later.

That is: I need a way to preserve a datapath, xpath and all.

Using dupePointer() trashes the xpath...

simply doing
	<attribute name="archive">
	
	this.archive = this.datapath;

then
	
	this.setAttribute("datapath", archive);


assigns <<archive>> to this.datapath, but strangely then 
this.datapath.xpath is also <<archive>>. Is that a bug?

andrew



More information about the Laszlo-dev mailing list