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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to Set timeout on the Client Side scripting

(0) ShareShare
ReportReport
Posted on by 50

Hi ,

i am using client side Scripting i am using information from the Quickview form , the mapping and loading of quickview form takes some time as it is dependent on server side C# Script 

so i want to wait my client side script until the quick view form is loaded .

please help me with how to halt the Competency check Function, where to integrate Set timeout before the loading of the executionContext .

var Sdk = window.Sdk || {};
(
    function() {
       
        this.CompetencyCheck = function(executionContext){
            var formContext = executionContext.getFormContext();
            //Get Required Competency
            var quickViewControl = formContext.ui.quickForms.get("IJP");
            var RequiredCompetency = quickViewControl.getControl("ijp_competency");
            var RC = RequiredCompetency.getAttribute().getValue()
            //Get Users Competency
            var quickViewControl1 = formContext.ui.quickForms.get("HRMS");
            var ActualCompetency = quickViewControl1.getControl("ijp_competency");
            var AC = ActualCompetency.getAttribute().getValue()
           
            var val = parseInt(RC[1]) - parseInt(AC[1])

            if (!(val == 0 || val == 1)){
                formContext.ui.setFormNotification("Competency Criteria Does not Match ","ERROR","formnot" );
               
            }else{
                formContext.ui.clearFormNotification("formnot")
            }


        }
    }
).call(Sdk);
thanks

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi,

    Please follow the blow URL.

    juniorcrmblog.blogspot.com/.../configure-inactivity-timeout-in-dcrm.html

    Thanks,

    Arshad

  • Verified answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    You can use isLoaded method on quick view control to know if control has loaded successfully.

    docs.microsoft.com/.../isloaded

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 137 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans