Hi,
I got a problem “Access Denied” when open another entity editor window by a edit button of a table. The create button works well but edit button doesn’t.
public class IPDETAILBrowse extends AbstractLookup {
@Inject
private Table<IPDETAIL> table;
@Named("iPDETAILsTable.create")
private CreateAction IPDetailTableCreate;
@Named("iPDETAILsTable.edit")
private EditAction IPDetailTableEdit;
@Override
public void init(Map<String, Object> params) {
IPDetailTableCreate.setWindowId("mastert$IPHEADER.edit");
IPDetailTableEdit.setWindowId("mastert$IPHEADER.edit");
}
}
<layout expand="iPDETAILsTable"
spacing="true">
<filter id="filter"
applyTo="iPDETAILsTable"
datasource="iPDETAILsDs">
<properties include=".*"/>
</filter>
<groupTable id="iPDETAILsTable"
width="100%">
<actions>
<action id="create"/>
<action id="edit"/>
<action id="remove"/>
</actions>
<columns>
<column id="iPHEADER"/>
<column id="groupseq"/>
<column id="groupnm"/>
<column id="testseq"/>
<column id="testtype"/>
<column id="testname1"/>
<column id="testname2"/>
<column id="sttime"/>
<column id="entime"/>
<column id="resultdatatype"/>
</columns>
<rows datasource="iPDETAILsDs"/>
<rowsCount/>
<buttonsPanel id="buttonsPanel"
alwaysVisible="true">
<button id="createBtn"
action="iPDETAILsTable.create"/>
<button id="editBtn"
action="iPDETAILsTable.edit"
/>
<button id="removeBtn"
action="iPDETAILsTable.remove"/>
</buttonsPanel>
</groupTable>
</layout>