CA Service Management

Expand all | Collapse all

CallBack Dropdown Customization

Jump to Best Answer
  • 1.  CallBack Dropdown Customization

    Posted 04-17-2018 12:39 PM

    Hello Experts,

     

    We have a situation to modify the CallBack drop-down on detail_in.htmpl and detail_cr.htmpl file. By OOTB in the callback drop-down we have selection options for : In one day / In two days/ In one week/ Other... . According to the selection it calculates the time-span in seconds and auto convert the same on date. For example if we select : In one day, the callback field will automatically calculate and save the date for tomorrow.

     

    The same way we need to add another option for In three days . When I tried that in HTMPL it shows undefined in the dropdown selection. Looks like there is some javascript function which playing the conversion role from seconds to a meaningful text. May I have a suggestion here on how to add a new dropdown value under CallBack dropdown?

     

    CallBack DropDown



  • 2.  Re: CallBack Dropdown Customization
    Best Answer

    Posted 04-17-2018 11:57 PM

    hi,

    dropdown defined on detail form looks like:

    detailDateDropdown("Call Back Date/Time", "call_back_date", 1, 20,
                          "$args.REQUIRED_call_back_date",
                          "SET.call_back_flag",
                          86400, msgtext("In_one_day"),   // In one day
                          172800, msgtext("In_two_days"),  // In two days
                          604800, msgtext("In_one_week")); // In one week

    so it should be easy to add one more value:

    detailDateDropdown("Call Back Date/Time", "call_back_date", 1, 20,
                          "$args.REQUIRED_call_back_date",
                          "SET.call_back_flag",
                          86400, msgtext("In_one_day"),   // In one day
                          172800, msgtext("In_two_days"),  // In two days
                          (3 * 24 * 3600), "In three days",  // In three days
                          604800, msgtext("In_one_week")); // In one week

     

    PS: if you want to use msgtext alias like:

    msgtext("In_three_days")

    you need to add it into message array located in \wwwroot\scripts\msg_cat.js.

     

    Regards,

    Timur Alimov



  • 3.  Re: CallBack Dropdown Customization

    Broadcom Employee


  • 4.  Re: CallBack Dropdown Customization

    Broadcom Employee
    Posted 04-18-2018 04:39 AM

    Great find Gordon. That's pretty much a details document and crisp to understand.

     

    Thanks.



  • 5.  Re: CallBack Dropdown Customization

    Posted 04-19-2018 08:34 AM

    That was exact my requirement. Thanks much Gordon_Preston

     

    Thanks

    ArunavaS