I've got a grid backed by a server datasource where I'd like to turn off the ability to edit certain fields if they have values that come from the server. I can't seem to get it to work, and debugging this kind of thing seems to be a real pain.
I've tried several iterations, just to test turning off editing of the field if the record has been stored in the database:
<field name="myField" ...>
<editRequires><![CDATA[
#if ($storedRecord.hasRecord())
true
#else
false
]]>
It seems like not all the pre-populated variables listed https://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/VelocitySupport.html are available in this context.
I can kind of handle this through validation, but would prefer to be able to turn off the editor. Any suggestions would be appreciated.
Version: SmartClient Version: SNAPSHOT_v9.1d_2014-01-27/PowerEdition Development Only (built 2014-01-27)
I've tried several iterations, just to test turning off editing of the field if the record has been stored in the database:
<field name="myField" ...>
<editRequires><![CDATA[
#if ($storedRecord.hasRecord())
true
#else
false
]]>
It seems like not all the pre-populated variables listed https://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/VelocitySupport.html are available in this context.
I can kind of handle this through validation, but would prefer to be able to turn off the editor. Any suggestions would be appreciated.
Version: SmartClient Version: SNAPSHOT_v9.1d_2014-01-27/PowerEdition Development Only (built 2014-01-27)