Hi Maxim, you can also use datasets, you can simply either convert an array to a dataset or add a dataobject to a remotecall:
1) To use the dataobject of a netremotecall: http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/WebContent/openmeetings/base/remote/rtmpConnection.lzx#203 attribute "dataobject" sample: http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/WebContent/openmeetings/base/hibernate/hibRtmpConnection.lzx#221 + Line 6 <dataset name="languagesSet" /> ( Line 6) (Line 221) <netRemoteCallHib name="getLanguages" funcname="languageservice.getLanguages" dataobject="languagesSet" > <handler name="ondata" args="value"> //The onResult-Handler will be called be the rtmpconnection //Debug.write("getLanguages: ",value); canvas.thishib.loaderVar.setProgress(); parent.getDefaultLanguage.doCall(); </handler> </netRemoteCallHib> And to render the dataset for example as items in a combobox: http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/WebContent/openmeetings/modules/settings/editUserProfile.lzx#215 2) To transfer a simple Array directly to a dataset (actually the same thing happens in the netremotecall) var element = LzDataElement.valueToElement(value); dateSetVariable.appendChild( element ); Sebastian 2011/10/14 Maxim Solodovnik <[email protected]> > > Hello Sebastian, > I have questions regarding chart components: > 1) regarding to the examples at openlaszlo charts are dealing with <dataset> > as data source. Is there any way to make it working with Array of objects > (List<RoomPollAnswers>) > 2) could you please take a look at the current poll results design? Would it > be OK if I will add "Chart type" dropdowm to the same dialog? > > Thanks in advance > On Mon, Oct 10, 2011 at 01:13, [email protected] <[email protected]> > wrote: >> >> Okay, >> >> maybe I will add some changes beforehand, but only UI changes no logical >> things. >> >> Sebastian >> >> 2011/10/9 Maxim Solodovnik <[email protected]> >>> >>> Hello Sebastian, >>> Currently I'm busy on paid OM customization >>> I'm afraid I will have no time to improve polls couple more days. >>> I think I can start this work Tue or Wed. >>> >>> On Sun, Oct 9, 2011 at 20:12, [email protected] <[email protected]> >>> wrote: >>>> >>>> Hi Maxim, >>>> >>>> I have the following requirements for the polls feature, maybe you've >>>> already had them on your list too... >>>> >>>> 1. The dialog-windows for the poll feature are really VERY old, they are >>>> around 3-4 years old. >>>> They look a little but ugly and outdated.. >>>> You should change at least in all dialog windows to have the button >>>> sequence inverted ... currently it is: >>>> Cancel OK >>>> => this is the wrong order, it should be: >>>> OK Cancel >>>> ... I don't know why I have done that the wrong way ... but its really >>>> long time ago. >>>> The dialogs might be a little bit polished anyway. >>>> >>>> 2. Every poll should have at least two text fields: >>>> A text field for the polls name (single line, that should be the name also >>>> that is shown in the File-Explorer then) >>>> A Text field with the actual long text of the poll >>>> >>>> 3. Currently it seems to me like you can vote multiple times, actually I >>>> was not able to make my vote count. >>>> >>>> 4. Improve the charting that is shown with the results (I can help you >>>> with that, chart components in OpenLaszlo are a bit tricky, but I have >>>> been using them a number of times.) >>>> >>>> If you need me on any of the tasks or have a no time currently, let me >>>> know ... >>>> >>>> >>>> Thanks >>>> Sebastian >>>> >>>> -- >>>> Sebastian Wagner >>>> http://www.openmeetings.de >>>> http://www.webbase-design.de >>>> http://www.wagner-sebastian.com >>>> [email protected] >>> >>> >>> >>> -- >>> WBR >>> Maxim aka solomax >> >> >> >> -- >> Sebastian Wagner >> http://www.openmeetings.de >> http://www.webbase-design.de >> http://www.wagner-sebastian.com >> [email protected] > > > > -- > WBR > Maxim aka solomax -- Sebastian Wagner http://www.openmeetings.de http://www.webbase-design.de http://www.wagner-sebastian.com [email protected] -- You received this message because you are subscribed to the Google Groups "OpenMeetings developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/openmeetings-dev?hl=en.
