CA Service Management

  • 1.  Employee edit detail_cr_wf

    Posted Sep 14, 2016 10:16 AM

    Hello guys,

     

    How can I configure to employee edit the detail_cr_wf?

    Any idea?

    The button to edit not appear on the detail_cr_wf form.

     



  • 2.  Re: Employee edit detail_cr_wf

    Posted Sep 14, 2016 12:52 PM

    Hi Thiago,

    The employee role typically would not edit workflow tasks as that would be something left only to analysts and administrators which are licensed users, so this would not be possible without quite a bit of customization.

    Thanks,

    Jon I.



  • 3.  Re: Employee edit detail_cr_wf

    Posted Sep 14, 2016 04:29 PM

    Jon,

     

    Do you know if customizing this is even possible given how the licensing model works (i.e. on a per-analyst basis)?  Thought it might be an important consideration as well.

     

    Regards,

     

    Marty



  • 4.  Re: Employee edit detail_cr_wf

    Posted Sep 14, 2016 04:34 PM

    I dont believe it would work unless the user was licensed - even with customization.  



  • 5.  Re: Employee edit detail_cr_wf

    Posted Sep 14, 2016 04:40 PM

    The new role that I created is licensed. =)



  • 6.  Re: Employee edit detail_cr_wf

    Posted Sep 14, 2016 04:37 PM

    I create a new role with analyst permissions and, at this moment, I trying to configure the home.htmpl (employee) to analysts.

    But didn't work yet. =(



  • 7.  Re: Employee edit detail_cr_wf

    Posted Sep 14, 2016 05:26 PM

    Hi, you do not need to license. It would make no sense ,since then if you need to get approval from direct manager to approve some standart change or service request you have to license 30% of your organization. As i remember all you need to do is change function access of the incident/request/problem reference to modify for that role



  • 8.  Re: Employee edit detail_cr_wf

    Posted Sep 14, 2016 06:36 PM

    Hi Gutis,

    Change the function access is switch the role that are you logged? I don't understand.

    I need the user logged as Employee can approve one workflow task (form: detail_cr_wr). The employee can see the form, but the button to Edit don't appear for me.



  • 9.  Re: Employee edit detail_cr_wf

    Posted Sep 14, 2016 06:48 PM



  • 10.  Re: Employee edit detail_cr_wf
    Best Answer

    Posted Sep 14, 2016 07:01 PM

    Ok Just checked it has nothing to do with functional access. To decide whatever to show edit buton allow_wf_edit() is called this function is defined in std_head.htmpl that resides in analyst form group. So you will have to modify your detail_cr_wf.htmpl and change:

     

    <input type="hidden" name="OP">
    <script language="JavaScript">

     

    to

    <input type="hidden" name="OP">
    <script language="JavaScript">

    function allow_wf_edit() {
             if ("$args.status.allow_task_update" == "1") {
                return true;
             }
             if ("$args.status.task_complete" == "1" && reopen_id != 0) {
                var has_reopen = false;
                <PDM_LIST SOURCE=args.behavior_templates PREFIX=list WHERE=" " FACTORY=bhvtpl>
                   if($list.context_attrval==reopen_id) { has_reopen=true; }
                </PDM_LIST>
                if (has_reopen) {
                      return true;
                }
             }
             return false;
          }

     

    After that do not forget to clear form cache pdm_webcache



  • 11.  Re: Employee edit detail_cr_wf

    Posted Sep 15, 2016 10:14 AM

    Hi Gutis, thanks for your help.

    The change works now, and the employee can update the detail_cr_wf.htmpl.

     

    I create a new function, and this one is licensed.