26. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 5/23/2019 1:16:28 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

26.1 Files compared

# Location File Last Modified
1 PATS_R_SourceCode.zip\MVI Search\MVI Search.Assets\Charts ServConnDisabilitiesGridScriptLib.js Mon Apr 22 18:08:00 2019 UTC
2 PATS_R_SourceCode.zip\MVI Search\MVI Search.Assets\Charts ServConnDisabilitiesGridScriptLib.js Thu May 23 01:28:26 2019 UTC

26.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 854
Changed 1 2
Inserted 0 0
Removed 0 0

26.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

26.4 Active regular expressions

No regular expressions were active.

26.5 Comparison detail

  1   /// <refer ence path= '../../tri ipcrm_/TR_ KU_V2015_2 _902/js/jq uery.min.j s' />
  2   /// <refer ence path= '../../tri ipcrm_/TR_ KU_V2015_2 _902/js/ke ndo.all.mi n.js' />
  3   /// <refer ence path= "SampleJso nData.js"  />
  4   /// <refer ence path= "../../ftp _/WebServi ceSecurity Lib/js/Web ServiceSec urityLibra ry.js" />
  5  
  6   //ServConn Disabiliti esGridScri ptLib.js
  7   //Contains  variables  and funct ions used  by the Ser vConnDisab ilitiesGri d.html pag e
  8  
  9   //Static V ariables
  10   var scdg_c rmOdataEnd Point = '/ XRMService s/2011/Org anizationD ata.svc';
  11   var scdg_c ontext = G etGlobalCo ntext();
  12   var scdg_s erverUrl =  scdg_cont ext.getCli entUrl();
  13  
  14   //var scdg _Enrollmen tEligibili tySummaryU RLbase = ' https:// DNS . URL /WebParts/ DEV/api/es r/Enrollme ntEligibil itySummary /2.0/json/ ';    //OLD MANU AL DEV URL
  15   var scdg_e esummaryUR Lbase = '' ;
  16   var scdg_E nrollmentE ligibility SummaryURL base = '';
  17   //Set Defa ult Servic e Return v alue = nul l
  18   var scdg_E nrollmentE ligibility SummaryDat a = null;
  19  
  20   function c allAction( action, da ta, callba ck, errHan dler) {
  21       var se rverURL =  Xrm.Page.c ontext.get ClientUrl( );
  22       var re q = new XM LHttpReque st();
  23       // spe cify name  of the ent ity, recor d id and n ame of the  action in  the Wen A PI Url
  24       req.op en("POST",  serverURL  + "/api/d ata/v9.0/"  + action,  true);
  25       req.se tRequestHe ader("Acce pt", "appl ication/js on");
  26       req.se tRequestHe ader("Cont ent-Type",  "applicat ion/json;  charset=ut f-8");
  27       req.se tRequestHe ader("ODat a-MaxVersi on", "4.0" );
  28       req.se tRequestHe ader("ODat a-Version" , "4.0");
  29       req.on readystate change = f unction ()  {
  30           if  (this.rea dyState ==  4 /* comp lete */) {
  31                req.onre adystatech ange = nul l;
  32                if (this .status ==  200 && th is.respons e != null)  {
  33                    var  res = JSON .parse(thi s.response );
  34                    call back(res);
  35                }
  36                else {
  37                    if ( this.respo nse != nul l && this. response ! = "") {
  38                         var error  = JSON.par se(this.re sponse).er ror;
  39                         errHandler (error.mes sage);
  40                    }
  41                }
  42           }
  43       };
  44       // sen d the requ est with t he data fo r the inpu t paramete r
  45       req.se nd(window. JSON.strin gify(data) );
  46   }
  47   function s cdg_getQue ryVariable (scdg_vari able) {
  48       try {
  49           // Get a Quer y Variable
  50           va r scdg_que ry = windo w.location .search.su bstring(1) ;
  51           va r scdg_var s = scdg_q uery.split ('&');
  52           fo r (var i =  0; i < sc dg_vars.le ngth; i++)  {
  53                var scdg _pair = sc dg_vars[i] .split('=' );
  54                if (scdg _pair[0] = = scdg_var iable) {
  55                    retu rn scdg_pa ir[1];
  56                }
  57           }
  58           // alert('A r equired Qu ery Variab le: ' + sc dg_variabl e + ' is m issing!');
  59           re turn '';
  60       }
  61       catch  (err) {
  62           al ert("Servi ce Connect ed Disabil ities Grid  Web Resou rce Functi on Error(s cdg_getQue ryVariable ): " + err .message);
  63       }
  64   }
  65  
  66   function s cdg_Settin gsWebServi ceURL_resp onse(scdg_ settingDat a, scdg_la stSkip, sc dg_eesumma ryURLbase_ NA) {
  67       try {
  68           va r scdg_xrm data = scd g_getQuery Variable(" data");
  69           // '000000' +  scdg_xrmd ata + '000 000'
  70           va r data =
  71           {
  72                "Request ": scdg_xr mdata
  73                //"Reque st": '0000 00' + scdg _xrmdata +  '000000'
  74           }
  75           ca llAction(" patsr_Enro llmentElig ibilityAct ion", data , scdg_get EsrEnrollm entJSON_re sponse, fu nction (er r) { alert ("Service  Connected  Disabiliti es Grid We b Resource  Function  Error(scdg _SettingsW ebServiceU RL_respons e): " + er r.message) ; });
  76       }
  77       catch  (err) {
  78           al ert("Servi ce Connect ed Disabil ities Grid  Web Resou rce Functi on Error(s cdg_Settin gsWebServi ceURL_resp onse): " +  err.messa ge);
  79       }
  80   }
  81   function s cdg_getEsr Enrollment JSON_respo nse(data)  {
  82       try {
  83           // NOTE:Expec ting JSON  result, if  changed t o XML modi fy code ac cordingly.
  84  
  85           // Set JSON D ata to Nul l;
  86           sc dg_Enrollm entEligibi litySummar yData = JS ON.parse(d ata.Respon se);;
  87           if  (scdg_Enr ollmentEli gibilitySu mmaryData. ErrorOccur red == tru e && scdg_ Enrollment Eligibilit ySummaryDa ta.ErrorMe ssage != " ") {
  88                alert("A n ESR Secu re Service  error occ ured:\n "  + scdg_Enr ollmentEli gibilitySu mmaryData. ErrorMessa ge);
  89           }
  90           el se {
  91                scdg_Bui ldGrid();
  92           }
  93       }
  94       catch  (err) {
  95           al ert("Servi ce Connect ed Disabil ities Grid  Web Resou rce Functi on Error(s cdg_getEsr Enrollment JSON_respo nse): " +  err.messag e);
  96       }
  97   }
  98  
  99   function s cdg_FormLo ad() {
  100       try {
  101           // GET CRM SE TTINGS WEB  SERVICE U RLS
  102           va r scdg_con ditionalFi lter = "(p atsr_name  eq 'Active  Settings' )";
  103           sc dg_getMult ipleEntity DataAsync( 'patsr_set tingSet',  'patsr_DAC URL, patsr _ESREnroll mentEligib ilitySumma ryAPIURL',  scdg_cond itionalFil ter, 'pats r_name', ' asc', 0, s cdg_Settin gsWebServi ceURL_resp onse, scdg _eesummary URLbase);
  104       }
  105       catch  (err) {
  106           al ert("Servi ce Connect ed Disabil ities Grid  Web Resou rce Functi on Error(s cdg_FormLo ad): " + e rr.message );
  107       }
  108   }
  109  
  110   function s cdg_BuildG rid() {
  111       try {
  112           // Temporary  action: js on result  is empty,  use sample  data
  113           // ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********
  114           // if (scdg_E nrollmentE ligibility SummaryDat a == null  || scdg_En rollmentEl igibilityS ummaryData  == '') {  scdg_Enrol lmentEligi bilitySumm aryData =  json_resul t2[0]; }
  115           // ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********
  116  
  117           // Define Gri ds
  118           // Define the  main grid
  119           $( '#ku_disab ilitygrid' ).kendoGri d({
  120                columns:  [
  121                    { fi eld: 'ID',  type: 'st ring', hid den: true  },
  122                    { fi eld: 'type ', title:  'Eligibili ty', type:  'string'  },
  123                    { fi eld: 'enro llmentCate goryName',  title: 'S tatus', ty pe: 'strin g' },
  124                    { fi eld: 'rate dDisabilit yPercentag eTotal', t itle: 'SC%  (total)',  type: 'st ring' },
  125                    { fi eld: 'envC ontaminant sInd', tit le: 'Envir onmental C ontaminant ', type: ' string' },
  126                    { fi eld: 'radi ationExpos ureInd', t itle: 'Rad iation Exp osure', ty pe: 'strin g' },
  127                    { fi eld: 'agen tOrangeInd ', title:  'Agent Ora nge', type : 'string'  },
  128                    { fi eld: 'camp LejeuneInd ', title:  'Camp Leje une', type : 'string'  },
  129                    { fi eld: 'diag nosedWithC ancer', ti tle: 'Head /Neck Canc er', type:  'string'  },
  130                    { fi eld: 'mili tarySexual Trauma', t itle: 'Mil itary Sexu al Trauma' , type: 's tring' },
  131                    { fi eld: 'comb atVeteran' , title: ' Combat Vet eran', typ e: 'string ' },
  132                    { fi eld: 'shad Indicator' , title: ' Shipboard  Hazard & D efense', t ype: 'stri ng' }
  133                ],
  134                dataSour ce: {
  135                    sche ma: {
  136                         model: {
  137                             id: 'I D'
  138                         }
  139                    }
  140                },
  141                groupabl e: false,
  142                sortable : false,
  143                editable : false,
  144                height:  130,
  145                resizabl e: true,
  146                navigata ble: true,
  147                selectab le: false,
  148                noRecord s: true
  149           }) ;
  150           // Define the  detail gr id
  151           $( '#ku_disab ilitydetai lgrid').ke ndoGrid({
  152                columns:  [
  153                    { fi eld: 'ID',  type: 'st ring', hid den: true  },
  154                    { fi eld: 'disa bility', t itle: 'Ind ividual Di sability',  type: 'st ring' },
  155                    { fi eld: 'perc entage', t itle: 'SC% ', type: ' string' }
  156                ],
  157                dataSour ce: {
  158                    sche ma: {
  159                         model: {
  160                             id: 'I D'
  161                         }
  162                    }
  163                },
  164                groupabl e: false,
  165                sortable : false,
  166                editable : false,
  167                height:  200,
  168                resizabl e: true,
  169                navigata ble: true,
  170                selectab le: false,
  171                noRecord s: true
  172           }) ;
  173  
  174           // Create dis abilty gri d datasour ce
  175           va r scdg_dis abilityGri d = $('#ku _disabilit ygrid').da ta('kendoG rid');
  176           // Create dis abilty det ail grid d atasource
  177           va r scdg_dis abilitydet ailGrid =  $('#ku_dis abilitydet ailgrid'). data('kend oGrid');
  178  
  179           // Data from  parentnode  'enrollme ntDetermin ationInfo'  
  180           va r $scdg_en rollmentDe terminatio nInfo = nu ll;
  181           va r $scdg_pr imaryEligi bility = n ull;
  182           va r $scdg_ty pe = null;
  183           va r scdg_typ eText = nu ll;
  184           va r $scdg_en rollmentCa tegoryName  = null;
  185           va r scdg_enr ollmentCat egoryNameT ext = null ;
  186           va r $scdg_sp ecialFacto rs = null;
  187           va r $scdg_en vContamina ntsInd = n ull;
  188           va r scdg_env Contaminan tsIndText  = null;
  189           va r $scdg_ra diationExp osureInd =  null;
  190           va r scdg_rad iationExpo sureIndTex t = null;
  191           va r $scdg_ag entOrangeI nd = null;
  192           va r scdg_age ntOrangeIn dText = nu ll;
  193           va r $scdg_ca mpLejeuneI nd = null;
  194           va r scdg_cam pLejeuneIn dText = nu ll;
  195           va r $scdg_se rviceConne ctionAward  = null;
  196           va r $scdg_se rviceConne ctedPercen tage = nul l;
  197           va r scdg_ser viceConnec tedPercent ageText =  null;
  198           va r $scdg_ra tedDisabil ities = nu ll;
  199  
  200           va r $scdg_ag entOrangeL ocation =  null;
  201           va r scdg_age ntOrangeLo cationText  = null;
  202           va r $scdg_ra diationExp osureMetho d = null;
  203           va r scdg_rad iationExpo sureMethod Text = nul l;
  204  
  205           va r $scdg_no seThroatRa diumInfo =  null;
  206           va r $scdg_di agnosedWit hCancer =  null;
  207           va r scdg_dia gnosedWith CancerText  = null;
  208  
  209           va r $scdg_mi litarySexu alTraumaIn fo = null;
  210           va r $scdg_mi lSexTrauma Status = n ull;
  211           va r scdg_mil SexTraumaS tatusText  = null;
  212  
  213           // Data from  parentnode  'military ServiceInf o' 
  214           va r $scdg_mi litaryServ iceInfo =  null;
  215           va r $scdg_co mbatVetera nEligibili tyEndDate  = null;
  216           va r scdg_com batVeteran Eligibilit yEndDateTe xt = null;
  217           va r $scdg_sh adIndicato r = null;
  218           va r scdg_sha dIndicator Text = nul l;
  219  
  220           va r scdg_rat edDisabili tyPercenta geTotal =  0;
  221           va r scdg_det ailrowcoun t = 0;
  222  
  223           if  (scdg_Enr ollmentEli gibilitySu mmaryData  != null) {
  224                $scdg_en rollmentDe terminatio nInfo = sc dg_Enrollm entEligibi litySummar yData.Data .Enrollmen tDetermina tionInfo;
  225           }
  226  
  227           if  ($scdg_en rollmentDe terminatio nInfo != n ull) {
  228                $scdg_pr imaryEligi bility = $ scdg_enrol lmentDeter minationIn fo.Primary Eligibilit y;
  229                if ($scd g_primaryE ligibility  != null)  {
  230                    $scd g_type = $ scdg_prima ryEligibil ity.Type;
  231                    if ( $scdg_type  != null)  { scdg_typ eText = $s cdg_type;  }
  232                }
  233                $scdg_en rollmentCa tegoryName  = $scdg_e nrollmentD eterminati onInfo.Enr ollmentCat egoryName;
  234                if ($scd g_enrollme ntCategory Name != nu ll) { scdg _enrollmen tCategoryN ameText =  $scdg_enro llmentCate goryName;  }
  235  
  236                $scdg_sp ecialFacto rs = $scdg _enrollmen tDetermina tionInfo.S pecialFact ors;
  237                if ($scd g_specialF actors !=  null) {
  238                    $scd g_envConta minantsInd  = $scdg_s pecialFact ors.EnvCon taminantsI nd;
  239                    if ( $scdg_envC ontaminant sInd != nu ll) { scdg _envContam inantsIndT ext = $scd g_envConta minantsInd ; }
  240  
  241                    $scd g_radiatio nExposureI nd = $scdg _specialFa ctors.Radi ationExpos ureInd;
  242                    if ( $scdg_radi ationExpos ureInd !=  null) { sc dg_radiati onExposure IndText =  $scdg_radi ationExpos ureInd; }
  243  
  244                    $scd g_agentOra ngeInd = $ scdg_speci alFactors. AgentOrang eInd;
  245                    if ( $scdg_agen tOrangeInd  != null)  { scdg_age ntOrangeIn dText = $s cdg_agentO rangeInd;  }
  246  
  247                    $scd g_campLeje uneInd = $ scdg_speci alFactors. CampLejeun eInd;
  248                    if ( $scdg_camp LejeuneInd  != null)  { scdg_cam pLejeuneIn dText = $s cdg_campLe jeuneInd;  }
  249  
  250                    $scd g_agentOra ngeLocatio n = $scdg_ specialFac tors.Agent OrangeLoca tion;
  251                    if ( $scdg_agen tOrangeLoc ation != n ull) { scd g_agentOra ngeLocatio nText = $s cdg_agentO rangeLocat ion; }
  252  
  253                    $scd g_radiatio nExposureM ethod = $s cdg_specia lFactors.R adiationEx posureMeth od;
  254                    if ( $scdg_radi ationExpos ureMethod  != null) {  scdg_radi ationExpos ureMethodT ext = $scd g_radiatio nExposureM ethod; }
  255                }
  256  
  257                $scdg_se rviceConne ctionAward  = $scdg_e nrollmentD eterminati onInfo.Ser viceConnec tionAward;
  258                if ($scd g_serviceC onnectionA ward != nu ll) {
  259                    $scd g_serviceC onnectedPe rcentage =  $scdg_ser viceConnec tionAward. ServiceCon nectedPerc entage;
  260                    if ( $scdg_serv iceConnect edPercenta ge != null ) { scdg_s erviceConn ectedPerce ntageText  = $scdg_se rviceConne ctedPercen tage; }
  261  
  262                    $scd g_ratedDis abilities  = $scdg_se rviceConne ctionAward .RatedDisa bilities;
  263                    //Ge t each dis ability li sted
  264                    for  (var i = 0 ; !!$scdg_ ratedDisab ilities &&  Array.isA rray($scdg _ratedDisa bilities.R atedDisabi lity) && i  <= $scdg_ ratedDisab ilities.Ra tedDisabil ity.length  - 1; i++)  {
  265                         var scdg_r atedDisabi lityPercen t = 0;
  266                         var scdg_d isability  = null;
  267                         if (Number ($scdg_rat edDisabili ties.Rated Disability [i].Percen tage) > 0)  {
  268                             scdg_r atedDisabi lityPercen tageTotal  = scdg_rat edDisabili tyPercenta geTotal +  Number($sc dg_ratedDi sabilities .RatedDisa bility[i]. Percentage );
  269                             scdg_r atedDisabi lityPercen t = Number ($scdg_rat edDisabili ties.Rated Disability [i].Percen tage);
  270                         }
  271  
  272                         //Add to d etail grid
  273                         scdg_detai lrowcount  = scdg_det ailrowcoun t + 1;
  274                         scdg_disab ilitydetai lGrid.data Source.pus hCreate({
  275                             ID: sc dg_detailr owcount,
  276                             disabi lity: $scd g_ratedDis abilities. RatedDisab ility[i].D isability,
  277                             percen tage: scdg _ratedDisa bilityPerc ent
  278                         });
  279                    };
  280                }
  281  
  282                $scdg_no seThroatRa diumInfo =  $scdg_enr ollmentDet ermination Info.NoseT hroatRadiu mInfo;
  283                if ($scd g_noseThro atRadiumIn fo != null ) {
  284                    $scd g_diagnose dWithCance r = $scdg_ noseThroat RadiumInfo .Diagnosed WithCancer ;
  285                    if ( $scdg_diag nosedWithC ancer != n ull) { scd g_diagnose dWithCance rText = $s cdg_diagno sedWithCan cer; }
  286                }
  287  
  288                $scdg_mi litarySexu alTraumaIn fo = $scdg _enrollmen tDetermina tionInfo.M ilitarySex ualTraumaI nfo;
  289                if ($scd g_military SexualTrau maInfo !=  null) {
  290                    $scd g_milSexTr aumaStatus  = $scdg_m ilitarySex ualTraumaI nfo.Status ;
  291                    if ( $scdg_milS exTraumaSt atus != nu ll) { scdg _milSexTra umaStatusT ext = $scd g_milSexTr aumaStatus ; }
  292                }
  293           }
  294  
  295           if  (scdg_Enr ollmentEli gibilitySu mmaryData  != null) {
  296                $scdg_mi litaryServ iceInfo =  scdg_Enrol lmentEligi bilitySumm aryData.Da ta.Militar yServiceIn fo;
  297           }
  298           if  ($scdg_mi litaryServ iceInfo !=  null) {
  299                $scdg_co mbatVetera nEligibili tyEndDate  = $scdg_mi litaryServ iceInfo.Co mbatVetera nEligibili tyEndDate;
  300                if ($scd g_combatVe teranEligi bilityEndD ate != nul l) {
  301                    scdg _combatVet eranEligib ilityEndDa teText = s cdg_combat VeteranEli gibilityEn dDateText  = $scdg_co mbatVetera nEligibili tyEndDate;
  302                }
  303                $scdg_sh adIndicato r = $scdg_ militarySe rviceInfo. ShadIndica tor;
  304                if ($scd g_shadIndi cator != n ull) { scd g_shadIndi catorText  = $scdg_sh adIndicato r; }
  305           }
  306  
  307           // If no elig ibility sp ecified, s et to fals e
  308           if  (scdg_typ eText == n ull || scd g_typeText  == '') {  scdg_typeT ext = fals e; }
  309  
  310           // Change boo lean value s to false  if not ma rked true
  311           if  (scdg_env Contaminan tsIndText  != 'true')  { scdg_en vContamina ntsIndText  = false;  }
  312           if  (scdg_rad iationExpo sureIndTex t != 'true ') { scdg_ radiationE xposureInd Text = fal se; }
  313           if  (scdg_age ntOrangeIn dText != ' true') { s cdg_agentO rangeIndTe xt = false ; }
  314           if  (scdg_cam pLejeuneIn dText != ' true') { s cdg_campLe jeuneIndTe xt = false ; }
  315  
  316           if  (scdg_dia gnosedWith CancerText  != 'true' ) { scdg_d iagnosedWi thCancerTe xt = false ; }
  317           if  (scdg_sha dIndicator Text != 't rue') { sc dg_shadInd icatorText  = false;  }
  318  
  319           // Change all  True/Fals e to Yes/N o and Hide  No column s
  320           if  (scdg_typ eText == f alse) { sc dg_typeTex t = 'No';  }
  321  
  322           if  (scdg_env Contaminan tsIndText  == "true")  { scdg_en vContamina ntsIndText  = "Yes";  } else { s cdg_envCon taminantsI ndText = " No"; scdg_ disability Grid.hideC olumn("env Contaminan tsInd"); }
  323           if  (scdg_rad iationExpo sureIndTex t == "true ") {
  324                scdg_rad iationExpo sureIndTex t = "Yes";
  325                if (scdg _radiation ExposureMe thodText ! = null) {  scdg_radia tionExposu reIndText  = scdg_rad iationExpo sureIndTex t + " - "  + scdg_rad iationExpo sureMethod Text; }
  326           }  else {
  327                scdg_rad iationExpo sureIndTex t = "No";  scdg_disab ilityGrid. hideColumn ("radiatio nExposureI nd");
  328           }
  329           if  (scdg_age ntOrangeIn dText == " true") {
  330                scdg_age ntOrangeIn dText = "Y es";
  331                if (scdg _agentOran geLocation Text != nu ll) { scdg _agentOran geIndText  = scdg_age ntOrangeIn dText + "  - " + scdg _agentOran geLocation Text; }
  332           }
  333           el se {
  334                scdg_age ntOrangeIn dText = "N o"; scdg_d isabilityG rid.hideCo lumn("agen tOrangeInd ");
  335           }
  336           if  (scdg_cam pLejeuneIn dText == " true") { s cdg_campLe jeuneIndTe xt = "Yes" ; } else {  scdg_camp LejeuneInd Text = "No "; scdg_di sabilityGr id.hideCol umn("campL ejeuneInd" ); }
  337  
  338           if  (scdg_dia gnosedWith CancerText  == "true" ) { scdg_d iagnosedWi thCancerTe xt = "Yes" ; } else {  scdg_diag nosedWithC ancerText  = "No"; sc dg_disabil ityGrid.hi deColumn(" diagnosedW ithCancer" ); }
  339  
  340           if  (scdg_mil SexTraumaS tatusText  == null ||  scdg_milS exTraumaSt atusText = = '') { sc dg_disabil ityGrid.hi deColumn(" militarySe xualTrauma "); }
  341  
  342           if  (scdg_com batVeteran Eligibilit yEndDateTe xt != null  && scdg_c ombatVeter anEligibil ityEndDate Text != '' ) { scdg_c ombatVeter anEligibil ityEndDate Text = 'Ye s'; } else  { scdg_di sabilityGr id.hideCol umn("comba tVeteran") ; }
  343  
  344           if  (scdg_sha dIndicator Text == "t rue") { sc dg_shadInd icatorText  = "Yes";  } else { s cdg_shadIn dicatorTex t = "No";  scdg_disab ilityGrid. hideColumn ("shadIndi cator"); }
  345  
  346           // Update dis ability ma in grid da ta
  347           sc dg_disabil ityGrid.da taSource.p ushCreate( {
  348                ID: '01' ,
  349                type: sc dg_typeTex t,
  350                enrollme ntCategory Name: scdg _enrollmen tCategoryN ameText,
  351                ratedDis abilityPer centageTot al: scdg_s erviceConn ectedPerce ntageText,
  352                envConta minantsInd : scdg_env Contaminan tsIndText,
  353                radiatio nExposureI nd: scdg_r adiationEx posureIndT ext,
  354                agentOra ngeInd: sc dg_agentOr angeIndTex t,
  355                campLeje uneInd: sc dg_campLej euneIndTex t,
  356                diagnose dWithCance r: scdg_di agnosedWit hCancerTex t,
  357                military SexualTrau ma: scdg_m ilSexTraum aStatusTex t,
  358                combatVe teran: scd g_combatVe teranEligi bilityEndD ateText,
  359                shadIndi cator: scd g_shadIndi catorText
  360           }) ;
  361  
  362           // Hide the d etails gri d if the S C% total =  0
  363           if  (scdg_rat edDisabili tyPercenta geTotal ==  0 || scdg _ratedDisa bilityPerc entageTota l == null  || scdg_ra tedDisabil ityPercent ageTotal = = '') {
  364                $('#ku_d isabilityd etailgrid' ).hide();
  365           }
  366  
  367       }
  368       catch  (err) {
  369           al ert("Servi ce Connect ed Disabil ities Grid  Web Resou rce Functi on Error(s cdg_BuildG rid): " +  err.messag e);
  370       }
  371   }
  372  
  373  
  374   function s cdg_execut eCrmOdataG etRequest( scdg_jsonQ uery, scdg _aSync, sc dg_aSyncCa llback, sc dg_skipCou nt, scdg_o ptionArray ) {
  375       //This  function  executes a  CRM Odata  web servi ce call to  retrieve  Crm data
  376       //*scd g_jsonQuer y* - a pro perly form atted CRM  Odata Quer y string ( required)
  377       //*scd g_aSync* -  specify ' true' to e xecute asy nchronousl y otherwis e 'false'  (required)
  378       //*scd g_aSyncCal lback* - s pecify the  name of t he return  function t o call upo n completi on (requir ed if scdg _aSync = t rue.  Othe rwise '')
  379       //*scd g_skipCoun t* - Initi al setting  is always  '0', incr ements by  50 per CRM  SDK Odata  standards  (required )
  380       //*scd g_optionAr ray* - is  an optiona l array or  single va lue, that  contains a dditional  task speci fic variab les that c an be pass ed between  functions  (pass 'nu ll' if not  used)
  381       try {
  382           va r scdg_ent ityData =  null;
  383           $. ajax({
  384                type: 'G ET',
  385                contentT ype: 'appl ication/js on; charse t=utf-8',
  386                datatype : 'json',
  387                url: scd g_jsonQuer y,
  388                beforeSe nd: functi on (XMLHtt pRequest)  {
  389                    XMLH ttpRequest .setReques tHeader('A ccept', 'a pplication /json');
  390                },
  391                success:  function  (data, tex tStatus, X mlHttpRequ est) {
  392                    scdg _entityDat a = data;
  393                    if ( scdg_aSync  == true)  {
  394                         scdg_aSync Callback(s cdg_entity Data, scdg _skipCount , scdg_opt ionArray);
  395                    }
  396                },
  397                error: f unction (X MLHttpRequ est, textS tatus, err orThrown)  {
  398                    aler t('Fail: A jax Error  in scdg_ex ecuteCrmOd ataGetRequ est: ' + e rrorThrown  + " Reque st: " + sc dg_jsonQue ry);
  399                },
  400                async: s cdg_aSync,
  401                cache: f alse
  402           }) ;
  403           re turn scdg_ entityData ;
  404       }
  405       catch  (err) {
  406           al ert('An er ror occure d in the s cdg_execut eCrmOdataG etRequest  function.   Error Det ail Messag e: ' + err );
  407       }
  408   }
  409  
  410   function s cdg_getMul tipleEntit yDataAsync (scdg_enti tySetName,  scdg_attr ibuteSet,  scdg_condi tionalFilt er, scdg_s ortAttribu te, scdg_s ortDirecti on, scdg_s kipCount,  scdg_aSync Callback,  scdg_optio nArray) {
  411       //This  function  returns a  CRM JSON d ataset for  all entit y records  matching c riteria pr ovided Asy ncronously
  412       //*scd g_entitySe tName* - i s the name  of the en tity set e .g 'Contac tSet'
  413       //*scd g_attribut eSet* -  i s a string  containin g the Crm  Attributes  to retrie ve e.g. 'F irstName,  LastName,  Telephone1 , EMailAdd ress1'
  414       //*scd g_conditio nalFilter*  - is the  conditiona l filter v alue place d on the d ata values  retrived  e.g. 'Stat eCode/Valu e eq 0'  t o retrieve  active co ntact reco rds only
  415       //*scd g_sortAttr ibute* - i s a string  containin g the name  of the at tribute to  sort the  result set  by e.g. ' LastName'
  416       //*scd g_sortDire ction* - i s a string  specifyin g the sort  as Ascend ing or Des cending e. g. 'asc' o r 'desc'
  417       //*scd g_skipCoun t* - is th e starting  point in  the result  (use if m ore than 5 0), (Put 0  if not us ed)
  418       //*scd g_aSyncCal lback* - i s the name  of the fu nction to  call when  returning  the result
  419       //*scd g_optionAr ray* - is  an optiona l array, t hat contai ns additio nal task s pecific va riables th at can be  passed bet ween funct ions
  420  
  421       try {
  422           va r scdg_jso nQuery = s cdg_server Url + scdg _crmOdataE ndPoint +  '/' + scdg _entitySet Name + '?$ select=' +  scdg_attr ibuteSet +  '&$filter =' + scdg_ conditiona lFilter +  '&$orderby =' + scdg_ sortAttrib ute + ' '  + scdg_sor tDirection  + '&$skip =' + scdg_ skipCount;
  423           sc dg_execute CrmOdataGe tRequest(s cdg_jsonQu ery, true,  scdg_aSyn cCallback,  scdg_skip Count, scd g_optionAr ray);
  424       }
  425       catch  (err) {
  426           al ert('An er ror occure d in the s cdg_getMul tipleEntit yDataAsync  function.   Error De tail Messa ge: ' + er r);
  427       }
  428   }