Hi
I have a tabular grid with an updateable Detail view. (and Read only grid view, which is not displayed).
The toolbar of this grid is defined (default) as
<div>
{grid.detailView_part.firstRecord}
{grid.detailView_part.prevRecord}
{grid.detailView_part.nextRecord}
{grid.detailView_part.lastRecord}
{grid.detailView_part.newRecord}
{grid.detailView_part.cancelEdits}
{grid.detailView_part.deleteRecord}
{grid.detailView_part.SwitchToEditMode}
{grid.detailView_part.SwitchToViewMode}
{grid.detailView_part.saveChanges}
{grid.detailView_part.saveAndEnter}
{grid.DetailViewActionButtonHTMLTemplate}
</div>
After the first rendering of the grid, only the navigation arrows and the delete button are active, the other ones are there but grayed out.
So far so good.
But: As soon as a record is changed - "dirtied", the "Cancel" and the "Save Changes" buttons disappear and only the "Save and add new record" will be activated (and works fine). (The navigation buttons and Delete are still active).
I can not cancel the changes and navigate to another record.
Why???
Eventually I will need the "Cancel" button only (I will handle a custom save) and this grid is actually a "pick-list" so no new records will be entered in this page ever.
Any pointer is appreciated.
In the meantime I found out that this only happens if this grid is part of a "Page Layout Builder" page.
if I run the Grid by itself it works fine... Odd, odder..
I have a tabular grid with an updateable Detail view. (and Read only grid view, which is not displayed).
The toolbar of this grid is defined (default) as
<div>
{grid.detailView_part.firstRecord}
{grid.detailView_part.prevRecord}
{grid.detailView_part.nextRecord}
{grid.detailView_part.lastRecord}
{grid.detailView_part.newRecord}
{grid.detailView_part.cancelEdits}
{grid.detailView_part.deleteRecord}
{grid.detailView_part.SwitchToEditMode}
{grid.detailView_part.SwitchToViewMode}
{grid.detailView_part.saveChanges}
{grid.detailView_part.saveAndEnter}
{grid.DetailViewActionButtonHTMLTemplate}
</div>
After the first rendering of the grid, only the navigation arrows and the delete button are active, the other ones are there but grayed out.
So far so good.
But: As soon as a record is changed - "dirtied", the "Cancel" and the "Save Changes" buttons disappear and only the "Save and add new record" will be activated (and works fine). (The navigation buttons and Delete are still active).
I can not cancel the changes and navigate to another record.
Why???
Eventually I will need the "Cancel" button only (I will handle a custom save) and this grid is actually a "pick-list" so no new records will be entered in this page ever.
Any pointer is appreciated.
In the meantime I found out that this only happens if this grid is part of a "Page Layout Builder" page.
if I run the Grid by itself it works fine... Odd, odder..
Comment