Ok, maybe this was a little vague. Here's a better description of what I'm trying to do...
The ultimate goal here is to have source paths for datasets that are configurable with an external XML file. In the directory with my openlaszlo app, there's an XML file called dspaths.xml containing something like this... <paths> <path1>http://www.domain.com/servlet1</path1> <path2>http://www.domain.com/servlet2</path2> </paths> In my app, I have a dataset that loads dspaths.xml... <dataset name="dspaths" src="http://dspaths.xml"/> Now I want to create two other datasets, that get their source from the dspath dataset... <dataset name="ds1" src="???"> <method event="oninit"> this.setSrc(dspaths:/paths/path1/text()); </method> </dataset> <dataset name="ds2" src="???"> <method event="oninit"> this.setSrc(dspaths:/paths/path2/text()); </method> </dataset> Obviously, the code above doesn't work. And I've tried everything I can think of and I've hit a wall. Can anyone help? -----Original Message----- From: William Krick [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 29, 2006 5:20 PM To: Laszlo-User Subject: [Laszlo-user] setting dataset src from external file at startup I need to be able to read URLs out of a configuration file and set my datasets' "src" attributes when my laszlo app starts up. I can't seem to figure out the syntax. Anyone know how to go about doing this? _______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user _______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
