Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

On expanding grid the case is considered dirty

SA-66327

Summary



When expanding a grid using 'Show details' on the 'Operations' tab configuration, the case is considered 'dirty' and the dialog displays the below message.

You are about to discard your unsaved changes

This occurs despite the user making no changes. If the screen is 'read-only', warnings must not display regardless of the number of server-hits.


Error Messages



You are about to discard your unsaved changes


Steps to Reproduce

  1. Configure a page list as a source for a grid on a section.
  2. Configure 'Show details' with a flow action on the Operations tab. This flow action only displays a section. It does not display the pre-processing data transform or activity.
  3. Start a case with the section containing the grid.
  4. Expand a grid line and close the case using the Close button on the tab. The message, 'You are about to discard your unsaved changes.' displays. When the user does not expand a grid line and closes the case, the message does not display and the case is closed.

Root Cause



This behavior is as per Pega product design.

The Refresh action is triggered on the case. This occurs while expanding a grid row. The expansion of row details in the expand pane, although read only, is a server hit. That is, details are fetched to the network from the server to the client using a separate AJAX. This also involves server side processing such as, execution of pre-activity of the flow action which renders row details. Hence, this interaction may unintentionally leave or lose any uncommitted change on the server if the user is not alerted while closing the work object.



Resolution



Perform the following local-change:
  1. Include the pxDisableClientDirtyDetection embedded section in the parent section.
  2. Configure an action set Event as Change and Action as RunScript in all the editable fields in the grid.
  3. Add the below script in the UserWorkForm:

    function resetDirtyFlag(){
          pega.u.d.gDirtyOverride=true;
        }
Suggest Edit

Published August 19, 2019 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us