Hi,
there seems to be a problem with manipulating data in a DMI as described here when related data is involved:
I tried to do this but get
and the related field is not appearing.
For demoing this (this is also where above exception is from), I just took this example
http://www.smartclient.com/smartgwtee/showcase/#hbRelationManyToOneSimple
and added the following CitiesDMI.java
To invoke the DMI I added
to cityManyToOneSimpleHB.ds.xml.
When the page is loaded (and the data fetched using the DMI), above exception is thrown.
If dsResponse.setData(data); is outcommented, everything works as expected.
This happens for the showcase of
Version: 4.0p (built Fri Aug 23 10:02:00 GMT 2013)
but also in my productive environment
SmartClient Version: v8.3p_2013-09-25/PowerEdition Deployment (built 2013-09-25)
Thanks,
fatzopilot
there seems to be a problem with manipulating data in a DMI as described here when related data is involved:
Originally posted by Isomorphic
View Post
Code:
Couldn't get value for property 'country' for datasource 'cityManyToOneSimpleHB' - ignoring. Actual error: java.lang.Exception: Specified object is not instance of com.smartgwt.sample.showcase.server.CityManyToOneSimple
For demoing this (this is also where above exception is from), I just took this example
http://www.smartclient.com/smartgwtee/showcase/#hbRelationManyToOneSimple
and added the following CitiesDMI.java
Code:
package com.smartgwt.sample.showcase.server; import java.util.List; import com.isomorphic.datasource.DSRequest; import com.isomorphic.datasource.DSResponse; import com.isomorphic.log.Logger; public class CitiesDMI { Logger log = new Logger(CitiesDMI.class.getName()); public DSResponse fetch(DSRequest dsRequest) throws Exception { log.info("processing DMI fetch operation"); DSResponse dsResponse = dsRequest.execute(); List data = dsResponse.getRecords(); dsResponse.setData(data); return dsResponse; } }
Code:
<serverObject className="com.smartgwt.sample.showcase.server.CitiesDMI"/>
When the page is loaded (and the data fetched using the DMI), above exception is thrown.
If dsResponse.setData(data); is outcommented, everything works as expected.
This happens for the showcase of
Version: 4.0p (built Fri Aug 23 10:02:00 GMT 2013)
but also in my productive environment
SmartClient Version: v8.3p_2013-09-25/PowerEdition Deployment (built 2013-09-25)
Thanks,
fatzopilot
Comment