This allows you to manipulate the parameters before they are rendered, with the exception of area and project.
Edit Issue screen
public void ucEditInit ( SesameSession session, // current session HashMap values) { // contains values of form elements return; }
This is called as the Edit routine is first entered.
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); }