CA Service Management

Expand all | Collapse all

Customize forms for employee

  • 1.  Customize forms for employee

    Posted Sep 27, 2017 10:20 AM

    Hi!

     

    We have a request to add the search filters "location" and "group" to employee forms "list_in.htmpl" and "list_cr.htmpl".

    We created list_cnt.htmpl and list_loc.htmpl (attached). The list_cnt.htmpl works correctly but the list_loc.htmpl doesn't.

    When we select the location from the list_loc.htmpl, it should close this page and the location should appear in the location lookup box in list_in or list_cr. Instead the form list_loc.htmpl never closes, but the location appears in the list_in or list_cr.

    Any ideas why the different behavior? The list_forms are the same, the only thing that changes is the factory.

     

    Regards,

    Marta

    Attachment(s)

    zip
    list_forms.zip   1 KB 1 version
    zip
    Employee.zip   12 KB 1 version


  • 2.  Re: Customize forms for employee

    Posted Sep 27, 2017 10:39 AM

    Hi Marta,

    I believe that is driven by javascript files- you would have to take a look at what is called for a working example.  I am not sure off hand how that works exactly.  

    Jon I.



  • 3.  Re: Customize forms for employee

    Posted Sep 27, 2017 11:09 AM

    Hi Jon,

     

    Thanks for your quick response.

    Both files include the same javascript files, and list_cnt is working correctly, so I don't believe the problem is with javascripts, but I will check it again.

     

    Thank you



  • 4.  Re: Customize forms for employee

    Posted Sep 27, 2017 01:20 PM

    Welcome - sorry I cant offer much more.  That particular type of customization is out of our scope as its not something that is meant to be added to a form by a customer.   There may be other folks out here that have gotten it to work and may be willing to share their info with you, but I cannot say for sure.

    Jon



  • 5.  Re: Customize forms for employee

    Posted Oct 02, 2017 07:52 AM

    Hi,

    a simple compare show me that you have  a difference between the two files where the

    <script language="JavaScript" src="$CAisd/scripts/update_lrel.js"></script>

    is not included in the head section of the list_loc.htmpl.

    Not sure if this is the problem but not cost much to try..

    My 2 cents

    /J



  • 6.  Re: Customize forms for employee

    Posted Oct 02, 2017 08:53 AM

    Hi Jerome,

    That line is not the problem. Thanks.



  • 7.  Re: Customize forms for employee

    Broadcom Employee
    Posted Oct 02, 2017 11:57 AM

    Marta, if you could attach the whole custom site\mods\www\htmpl\web\employee folder and \site\mods\www\wwwroot\scripts folder, I will take a look to see if I can figure out something. Thanks _Chi



  • 8.  Re: Customize forms for employee

    Posted Oct 02, 2017 12:29 PM

    Hi Chi,

    I attached the content of site\mods\www\htmpl\web\employee. The scripts folder in site/mods is empty.

    Thank you for your help.



  • 9.  Re: Customize forms for employee

    Broadcom Employee
    Posted Oct 02, 2017 04:05 PM

    Marta, can you run the following and post the results here:

    bop_sinfo -d in|findstr "z_location"

    bop_sinfo -f loc

    Thanks _Chi



  • 10.  Re: Customize forms for employee

    Posted Oct 03, 2017 04:37 AM

    Hi Chi,

    Here is the output:

    commads

    Thanks, Marta



  • 11.  Re: Customize forms for employee

    Posted Oct 04, 2017 05:32 PM

    This seems to be the issue but, currently I am not sure why:

     

    TypeError: _dtl is undefined[Learn More] detail_form.js:5028:1
    backfill_event http://hostname:8080/CAisd/scripts/detail_form.js:5028:1
    backfill http://hostname:8080/CAisd/scripts/std_list.js:7751:1
    rsBackfill http://hostname:8080/CAisd/scripts/std_list.js:7295:1
    <anonymous> javascript:rsBackfill(0):1:1



  • 12.  Re: Customize forms for employee

    Posted Oct 05, 2017 11:20 AM

    I believe this to be a bug and the only way to resolve this is to edit detail_form.js to make sure _dtl is not undefined before trying to set the lastkeycode. Please open a case and if you want reference this communities post.



  • 13.  Re: Customize forms for employee
    Best Answer

    Posted Oct 06, 2017 04:20 AM

    Hi Anthony,

    I've already opened a case in CA regarding this issue.

    Thank you for your help.

    Regards



  • 14.  Re: Customize forms for employee

    Posted Oct 06, 2017 07:57 AM

    Hi Marta,

    Can you post the case number here for us so we can track it from our side?  This way we can update the post with the solution once its resolved.

    Thanks,

    Jon I.



  • 15.  Re: Customize forms for employee

    Posted Oct 06, 2017 08:00 AM

    I found it - CA Support Case is 00858425.

    Thanks,

    Jon



  • 16.  Re: Customize forms for employee

    Broadcom Employee
    Posted Oct 06, 2017 11:37 AM

    Marta, sorry for the late reply. Today I finally got the chance to try it out...and it worked for me. The only change is I changed your z_location to zlocation but I don't think that will have anything to do here. I am curious if you run

    bop_sinfo -d cr|findstr "loc"

    will you see something like this?

    z_location SREL -> loc.id

    Thanks _Chi



  • 17.  Re: Customize forms for employee

    Posted Oct 06, 2017 12:05 PM

    Hi Chi,

     

    Yes:

     

    Thanks,

    Marta



  • 18.  Re: Customize forms for employee

    Broadcom Employee
    Posted Oct 06, 2017 12:12 PM

    Marta, it seems there could be something else specific to your env causes this problem. I don't see any problem in the files you posted here(in fact, I copied them to my install and it worked fine for me). Please continue using 858425 to continue work on this case. Thanks _Chi