Genpact Cora Knowledge Center

Support

Remove the New Request button from Case

Previous to V3.0

In Cora OpsManager, you have an option to disable the new request feature available on Case details page. To remove the New Request button from Case page, follow these steps:

  1. Hide new request in the case:
    1. Create a view HideNewRequest (in Customisable Views > Client Properties Views).
    2. Add the following code to the view:
      <script>
       Sys.Application.add_load(hideNewRequestButton);
       function hideNewRequestButton()
        {
          var nrBtn =
      $findByControlId("btnNewRequest");
          if(nrBtn)
          {
                       nrBtn.set_visible(false);
          }
       }
       </script>
    3. Add the following to the bottom of all other views in this form:
      <sq8:SubView runat="server" ID="svHideNR" VirtualPath="hideNewRequest.ascx"></sq8:SubView>
  2. Hide “My Task” menu item.
    1. Go to C:\Program Files\PNMsoft\Shared Resources\Components\Flowtime\Config\Portal\Commands, on your system. 
    2. Edit the OpsCenter.xml file. 
    3. Comment these tags.
      <MenuItem
      Id="OpsCenterMyTasks" Command="OpsCenterMyTasksCommand"
      Text="{$resources.MyTasks}" Tooltip="{$resources.MyTasks}"
      CssClass="sqpt-aggregation-tasks"></MenuItem>

V3.0 and later

In Cora OpsManager, you have an option to disable the new request feature available on Case details page. To remove the New Request button from Case page, follow these steps:

  1. Hide new request in the case:
    1. Create a view HideNewRequest (in the workflow that holds custom views).
    2. Add the following code to the view:
      <script>
       Sys.Application.add_load(hideNewRequestButton);
       function hideNewRequestButton()
        {
          var nrBtn =
      $findByControlId("btnNewRequest");
          if(nrBtn)
          {
                       nrBtn.set_visible(false);
          }
       }
       </script>
    3. Add the following to the bottom of all other views in this form:
      <sq8:SubView runat="server" ID="svHideNR" VirtualPath="hideNewRequest.ascx"></sq8:SubView>
  2. Hide “My Task” menu item.
    1. Go to Administration > Global Settings > Application Variables.
    2. Edit the CoraOpsManager.ProcessTasksMenuItemVisibility.
    3. Change the Value to False.
    4. Click Update.