HOME | SOLUTIONS | INDUSTRIES | SERVICES | ABOUT US | NEWS & EVENTS | SUPPORT CENTER | CONTACT

 
Product Documentation
Dovetail SelfService
Knowledge Base
Support Forums
Employee Blogs
Contact Us

Save, Discard, Cancel not available on workflow actions (Article # 144)

View products that this article applies to.

Problem:

If a Case, CR, PR Detail, etc. is modified in fcClient, and then a "workflow action" (discard, assign, move, etc.) is performed before the changes are saved, the modifications are lost (cleared).

In Clarify, the modifications are not lost (cleared), the dirty bit remains set,
and, after the "Workflow action" is completed, when "Done" is selected,
the Save/Discard/Cancel prompt allows the user to decide if the changes
will be saved or not.

Scenario:

Login to fcClient
Open an existing Case
Make some changes to the values on the form
Now, Dispatch, Assign or Move the Case

Result: The modifed values are reset to the original values, before the action
was performed.

Login to Clarify
Open an existing Case
Make some changes to the values on the form
Now, Dispatch, Assign or Move the Case

Result: The modifed values are retained after the action is performed.
When you then press "Done", the Save/Discard/Cancel form is
presented, and you can decide whether to keep the chnages or not..

Resolution:

1. Add the following client-side script to the page:

//Check the dirty bit before doing a workflow operation function WorkflowCheckDirty(which_operation){
  if(document.getElementById('dirty_flag').value == '1') {
      var msg = 'The current form has changed. Would you like to save your changes before performing the ' + which_operation + ' operation?';
          msg+= '\nPress OK to Save changes, Press Cancel to discard changes and proceed with the ' + which_operation + ' operation.'
      var answer = confirm(msg);
      if(answer){
            document.getElementById('save').click();
            return false;
          } else {
            //user does not want to save - let the workflow action happen
            return true;
          } //end if
  } //end if

  //form is not dirty
  return true;
}

2. Before doing any workflow operations, call this function. i.e.:
<a href="javascript:if (WorkflowCheckDirty('move')) OpenMoveWindow('<% =boCR.Id %>','bug')" onmouseover="onItem('actionMenu')" id="move" onmouseout="offItem('actionMenu')">Move CR</a>

Applies To:

Copyright © 2008 Dovetail Software, Inc. All rights reserved.

 

support center | blogs | terms & conditions | contact