Change Request: change_request_calendar_view.do - Limit date changes?

kristenankeny
Tera Guru

We just upgraded our dev instance to Kingston and are working through some issues we found. One issue I need to resolve is the fact that people can change the change planned start and end via the change_request_calendar_view, even when we have the form locked to disallow date changes once submitted for approvals. I tried adding two ACLs that only allow writing to start and end when the change in a "new" state, but this caused weird behavior (the change was scheduled for 3:00 - 3:10 originally. I had the user try changing to 2:30 - 3:00 and it discarded their selection but set the time to 12:00 am to 12:00 am. I'd love to make this page available to people to view, but I can't if I cannot add in restrictions on the date changes.

EDIT: I have now tried to remove the ACL and instead added a business rule that will abort the action. I want to either do an alert or a gs.addErrorMessage. Neither work in the change_request_calendar_view.do. I've tried putting the messages both before and after the abort command.

3 REPLIES 3

swathi52
Tera Expert

Hi  Kristenankeny,

We are also facing same issue, but what we think here is, Is it possible to make these fields(start/end dates) read-only or Is it possible to delete 'save' button on the popup.? by changing UI page/script.

I have tried editing UI script related to this.

UI script: change_calendar.vcal.snChangeCabCalendar

I have updated below function by commenting the 3rd line as shown below.

scope.onUpdateClick = function(){
focusIDAfterUpdate = scope.parentEventId;
//scope.update();
};

 Now users are restricted from updating these fields through calendar view of change record. But it is not proper solution we feel, where users will be thinking there is a problem with system as it seems like 'save' button is not working.

So we want to make these fields readonly or delete 'save' button on pop-up.But not sure how to approach this.

If you find any other feasible solution or any other thoughts on this,  please do share with us.

 

Thanks

swathi

 

nari4
Tera Contributor

Hi,

A bit off topic here but can you tell me where can I find the change_request_calendar_view? I thought it was UI page but I cannot find it there.

 

Thanks, your help is much appreciated.

Nari.

I don't believe we have direct access to this page.