Update / Refresh a TableField after an update / change [message #1016705] |
Thu, 07 March 2013 07:33  |
Eclipse User |
|
|
|
I created a form, called TitleForm, and I added a TableField, called DetailTableField. In this DetailTableField I added an Edit menu to open another form, called DetailForm, obviously, for changes of the details from a title.
Until this point, everything work fine.
When I press the OK button, the changes are stored at database.
The problem is when the DetailForm is closed. The DetailTableField from TitleForm not is refreshed/reloaded.
I include the following code in my execAction method:
protected void execAction() throws ProcessingException {
DetailForm form = new DetailForm();
form.setGcf_titulo_det_id( getTable().getGcf_titulo_det_idColumn().getSelectedValue() );
form.startModify();
form.waitFor();
if (form.isFormStored()) {
reloadTableData(); // try 1
getDetailTableField().reloadTableData(); // try 2
}
}
Need I to write any other code to update the DetailTableField?
[Updated on: Mon, 11 March 2013 09:19] by Moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03233 seconds