SmartClient Version: v9.0p_2013-11-14/PowerEdition Deployment (built 2013-11-14)
I have a CanvasItem that is working fine in a DynamicForm, but not in a ListGrid. I'm using a showValueHandler to put the value into the CanvasItem and then calling storeValue() when the value changes.
I have added logging just before the call to storeValue() and I can see that the correct value is be passed to storeValue, and in fact I can examine the DynamicForm that is created when the grid row is put into edit mode and I can see that the correct new value is in the getValues() map after the call to storeValue. But the new value doesn't show up in the grid row.
Do I have to call setEditValue() instead of showValue when the CanvasItem is in a grid? If so, how do I detect that it is a grid editor form and get a reference back to the grid row so I can call setEditValue()?
I've attached my code as a standalone test case which is a modified version of BuiltInDS sample, but it requires the TinyMCE js library. I'm using version 3. I can zip up my version and attach it if needed.
I have a CanvasItem that is working fine in a DynamicForm, but not in a ListGrid. I'm using a showValueHandler to put the value into the CanvasItem and then calling storeValue() when the value changes.
I have added logging just before the call to storeValue() and I can see that the correct value is be passed to storeValue, and in fact I can examine the DynamicForm that is created when the grid row is put into edit mode and I can see that the correct new value is in the getValues() map after the call to storeValue. But the new value doesn't show up in the grid row.
Do I have to call setEditValue() instead of showValue when the CanvasItem is in a grid? If so, how do I detect that it is a grid editor form and get a reference back to the grid row so I can call setEditValue()?
I've attached my code as a standalone test case which is a modified version of BuiltInDS sample, but it requires the TinyMCE js library. I'm using version 3. I can zip up my version and attach it if needed.
Comment