Hi,
When I attached selectitem to the listgrid then the selectitem.getselectedrecord() is giving error, but when I added the same selectitem to the dynamic form then it is working fine..Please let me know How can I solve this...The Error I am getting is
Uncaught JavaScript exception [com.google.gwt.core.client.JavaScriptException: (TypeError): Object doesn't support this property or method
number: -2146827850
description: Object doesn't support this property or method
at com.smartgwt.client.widgets.form.fields.SelectItem.getSelectedRecord(Native Method)
at com.sikorsky.fmoc.client.composer.grid.AircraftHoursGrid$1.onChange(AircraftHoursGrid.java:209)
at com.smartgwt.client.widgets.form.fields.events.ChangeEvent.dispatch(ChangeEvent.java:96)
at com.smartgwt.client.widgets.form.fields.events.ChangeEvent.dispatch(ChangeEvent.java:1)
at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65)
at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53)
at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178)
at com.smartgwt.client.core.DataClass.fireEvent(DataClass.java:189)] in http://localhost:8080/fmoc/composer/hosted.html?composer, line 8.
I've been struggling for almost 4 days to figure it out. Please let me know how can I solve it.
Thanks
When I attached selectitem to the listgrid then the selectitem.getselectedrecord() is giving error, but when I added the same selectitem to the dynamic form then it is working fine..Please let me know How can I solve this...The Error I am getting is
Uncaught JavaScript exception [com.google.gwt.core.client.JavaScriptException: (TypeError): Object doesn't support this property or method
number: -2146827850
description: Object doesn't support this property or method
at com.smartgwt.client.widgets.form.fields.SelectItem.getSelectedRecord(Native Method)
at com.sikorsky.fmoc.client.composer.grid.AircraftHoursGrid$1.onChange(AircraftHoursGrid.java:209)
at com.smartgwt.client.widgets.form.fields.events.ChangeEvent.dispatch(ChangeEvent.java:96)
at com.smartgwt.client.widgets.form.fields.events.ChangeEvent.dispatch(ChangeEvent.java:1)
at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65)
at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53)
at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178)
at com.smartgwt.client.core.DataClass.fireEvent(DataClass.java:189)] in http://localhost:8080/fmoc/composer/hosted.html?composer, line 8.
I've been struggling for almost 4 days to figure it out. Please let me know how can I solve it.
Thanks
Comment