Try "local:listName:/records/name". It's hidden in the documentation somewhere I guess.
Raju -----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] Gesendet: Montag, 27. März 2006 12:08 An: [email protected] Betreff: [Laszlo-user] accessing datasets within classes How do I reference a dataset from the canvas when it's called from an external class? Here's a very simplified test case, running solo under OL3.2 The datatest.lzx class: <library> <class name = "datatest" extends = "node" /> <dataset name = "listNames" request = "true" type = "http" src = "/names/records/" /> </class> </library> And the simplified canvas: <canvas> <include href = "../datatest.lzx" /> <datatest /> <view> <datapath xpath = "listNames:/records/name" /> <text datapath = "@firstname" /> </view> </canvas> The debugger returns "could not find dataset for listNames." What do I need to change for the dataset to be visible to the canvas? Many thanks _______________________________________________ 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
