Project Workspace disable Delete Row in Planning screen

Ruihster
Tera Contributor

Hi Everyone,

 

We need to remove or disable the "Delete row", feature in the Project Workspace Planning Screen on Project Tasks.

This is because when deleting a project task via "Delete row", the project task is irreversibly deleted.
Normally when someone deletes a project task outside the workspace via the "Delete" UI action, there is going to be a log entry, and the project task lands in the deleted records table, but with the "Delete row", all of that is ignored, and it deletes the record.

 

Ruihster_0-1739968795330.png

 

We already tried to look in the UI Builder. But we couldn't find the "Delete row" option and weren't able to remove the option there.

 

We also found the "UX Actions Configuration" / "sys_ux_action_config" but there we only can remove or change the function of the Project Workspace and not of the Project task rows.

 

Does someone know where the Option is stored and if we can remove it or make that the records deleted via "Delete row" are stored in the Deleted Record table like normally ?

 

Thanks

 

2 REPLIES 2

wpatrickhames
Tera Guru

I know this is months later, but this may help someone else wanting to do this type of thing.

Search "Delete Row" in the Script includes and you will find the "Delete Row" code.

Have you considered editing the delete ACL to use a script similar to the solution in this post? It doesn't remove the "Delete Row" completely, but does remove it when there are child tasks.

answer = canDelete();

function canDelete(){
	var gr = new GlideRecord('pm_project_task');
	gr.addQuery('parent', current.sys_id);
	gr.query();

	if (gr.next()) {
		return false;
	} else {
		return true;
	}
}


Also, consider adding the property "sn_pw.save_data_with_glide_record" to turn on business rules as pointed out in KB1122212 

wpatrickhames
Tera Guru

Version 6.2.0 offers the solution of a warning popup when trying to delete the row.