Purpose
This allows you to manipulate the parameters before they are rendered, with the exception of area and project.
Applies To
Edit Issue screen
Signature
public void ucEditInit (
SesameSession session, // current session
HashMap values) // contains values of form elements
Notes
This is called as the Edit routine is first entered.
Example
This method demonstrates how just as an Edit screen is entered, the status of the issue is checked. If the status is no longer in draft mode, the Approver role can have access to edit the issue. If the status of the issue is still in draft, Approvers have no ability to edit.
public void ucEditInit (SesameSession session, HashMap values) {
String status = (String)values.get("STATUS");
//only set the access to approve if the status is not longer in draft mode.
if(statusPendingApproval.equals(status)){
setApproverAccess(values,session.getUserId());
}
super.ucEditInit(session, values);
}