Hi,
How to trigger custom code (in Java) on RecordClick without using Java code (i.e. just from XML?) to define the trigger?
There is an event Editor in Visual Builder that allows to trigger some built in Events (like fetchData), which creates XML like this:
but I have no idea how to alter this to call Java/GWT code.
Another option I could think of to accomplish the desired behavior would be to add implementations of RecordClickHandler (defined as class in Java) to the ListGrid (as it is done in Java code using addRecordClickHander()). However, how to do it (using a proper syntax) remains hidden to me as it seems to be documented (or showcased) nowhere.
1. SmartClient Version: v8.3p_2013-04-24/PowerEdition Deployment (built 2013-04-24)
2. FF 20.0.1 (dev and deployment mode), Chrome Version 26.0.1410.64 m, IE 10.0.9200.16540 (all on Windows 8)
Regards,
fatzopilot
How to trigger custom code (in Java) on RecordClick without using Java code (i.e. just from XML?) to define the trigger?
There is an event Editor in Visual Builder that allows to trigger some built in Events (like fetchData), which creates XML like this:
Code:
<ListGrid dataSource="ref:SomeBean" ID="SomeBeanGrid" autoDraw="false"> <fields> <ListGridField name="id" title="Id"/> <ListGridField name="anotherBeanId" title="Another Bean Id"/> <ListGridField name="aProperty" title="A Property"/> <ListGridField name="anotherBean" title="AnotherBean"/> </fields> <showFilterEditor>true</showFilterEditor> <recordClick> <Action> <target>SomeBeanGrid</target> <name>startEditing</name> <title>Start Editing</title> </Action> </recordClick> </ListGrid>
Another option I could think of to accomplish the desired behavior would be to add implementations of RecordClickHandler (defined as class in Java) to the ListGrid (as it is done in Java code using addRecordClickHander()). However, how to do it (using a proper syntax) remains hidden to me as it seems to be documented (or showcased) nowhere.
1. SmartClient Version: v8.3p_2013-04-24/PowerEdition Deployment (built 2013-04-24)
2. FF 20.0.1 (dev and deployment mode), Chrome Version 26.0.1410.64 m, IE 10.0.9200.16540 (all on Windows 8)
Regards,
fatzopilot
Comment