Access denied when open a window by a edit button of a table

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>

Hi.
Could you please explain why do you set the window id for the actions? Create, edit and remove actions should work by default. You have some problems with the standard realization?

Hi Natalia,
I am facing similar issue. After Edit action, the screen is showing me updated values but edited value is not is not updating into the database table.

I tired overwriting commitAndClose method. still its not showing changes in the database. So I used datamanager.commit(). With this EDIT action works fine. Since I am redefining this method I have to close the window manually. i.e close(WINDOW_CLOSE_ACTION); But in this case CREATE action doest not reflect the new entry on the screen but can see that entry in the database.

    protected void commitAndClose(Action.ActionPerformedEvent event) {
        NetworkShare networkShare = super.getEditedEntity();
        networkShare.setAdvertiser(advertiserField.getValue());
        networkShare.setNetwork(networkField.getValue());
        networkShareDc.setItem(networkShare);
        CommitContext commitContext = new CommitContext(networkShare);
        //dataManager.commit(commitContext);
        //close(WINDOW_CLOSE_ACTION);
        super.commitAndClose(event);
    }