web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Adxstudio display Roll up duration in "days"

(0) ShareShare
ReportReport
Posted on by 525

Hi guys,

We need to display a roll up (duration) field in "days" on the Adxportal. In CRM, the format can show in days or minutes. However, the portal default to show in minutes probably because the field format is whole number. The field is displayed in an Entity List (view), unable to figure out how to change the display format.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Nicole L Profile Picture
    525 on at
    RE: Adxstudio display Roll up duration in "days"

    Thanks. We applied the script and it works!

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Adxstudio display Roll up duration in "days"

    Hi,

    You can try the below custom JavaScript on the entity list.

    ---------------------

    $(document).ready(function (){

      $(".entitylist.entity-grid").on("loaded", function () {

          $(this).children(".view-grid").find("td[data-attribute='new_duration']").each(function (i, e){

            var value = $(this).data("value");

            if(value <60)

            {

              value = value + " minutes";

            }

            else

            {

              value = (value/60) + " hours";

            }

             $(this).html(value);

         });

      });

    });

    ------------------------------------

    Hope this helps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#2
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans