A remote call might be placed outside the javarpc tag, that why there's a remotecontext attribute I believe. It seems the best is to create everything under canvas using javascript programming.
Thanks anyway for your help. On Fri, May 23, 2008 at 6:59 PM, Robert Yeager <[EMAIL PROTECTED]> wrote: > Datasets can be local, but I believe the remotecall can only be placed > within rpc definitions, e.g. within the <javarpc> tag. > > IMO, the questions you ask indicate some gaps in your knowledge of > programming and in particular a lack of OpenLaszlo knowledge...perhaps you > would benefit from OpenLaszlo training provided by Laszlo Systems, if you > want to be a professional OL developer. OpenLaszlo has a few quirks, but > IMO fewer quirks than other competing development tools...actually, I don't > know of a competing multi-runtime RIA development tool. They don't call it > the bleeding edge of technology for nothing... :-) > > Robert Yeager > http://www.qrowd.com > http://www.cooqy.com > > On Fri, May 23, 2008 at 1:20 PM, Daniel Garrido <[EMAIL PROTECTED]> > wrote: >> >> Here I am again, posting another question... I must say that my >> experience with OpenLaszlo either makes me feel stupid or makes me >> think there's still a lot of work around OpenLaszlo to be done... Hope >> it's the first one, so that OpenLaszlo remains being a possibility to >> my project. >> >> I'm trying to find a way to do the following: >> >> Create a class component, that will have a remotecall to a started >> javarpc. That remotecall is supposed to map its returned value to a >> dataset local to the class. Is that possible? I tried the following >> code, but with no success. >> >> <library> >> <class name="Component"> >> <handler name="oninit"> >> var dataset = new LzDataset(this, { >> name : "available_models" >> }); >> >> this.getAvailableModels.invoke(['equipment']); >> Debug.write("Created component " + this.name); >> </handler> >> >> <datacombobox shownitems="6" defaulttext="Choose One..." >> itemdatapath="local:parent.available_models:/*" >> valuedatapath="name()"> >> >> <handler name="onselected"> >> Debug.write("Selected model " + >> this.getValue()); >> >> canvas.configuration.selectModel.invoke(['equipment', >> this.getValue()]); >> </handler> >> </datacombobox> >> >> >> <remotecall name="getAvailableModels" >> >> dataobject="parent.available_models" >> funcname="getAvailableModelsOL" >> >> remotecontext="$once{canvas.configuration}" /> >> </class> >> </library> >> >> I also tried another things like, instead of creating the dataset >> locally to the class to put it into canvas, but still the remotecall >> was not able to see the dataset. >> >> I wonder if the only way to make this work, is to put both dataset and >> remotecall into canvas... >> >> Regards, >> Daniel Garrido > >
