203. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/22/2018 1:28:23 PM Central 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.

203.1 Files compared

# Location File Last Modified
1 v1603_release_60.zip\CRM_solutions\North52BPA_1_0_0_549_managed_2013_2015_2016_Dyn365.zip\WebResources north52_javascriptwizardfunctionsDD010923-EF36-E711-B776-00155D011502 Fri Mar 30 17:17:44 2018 UTC
2 v1603_release_60.zip\CRM_solutions\North52BPA_1_0_0_549_managed_2013_2015_2016_Dyn365.zip\WebResources north52_javascriptwizardfunctionsDD010923-EF36-E711-B776-00155D011502 Mon Jun 18 13:58:29 2018 UTC

203.2 Comparison summary

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

203.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

203.4 Active regular expressions

No regular expressions were active.

203.5 Comparison detail

  1   "undefined "==typeof  North52&&( North52={} ),void 0== =North52.W izardFunct ions&&(Nor th52.Wizar dFunctions ={}),North 52.WizardF unctions.T emplate='< div>{{#if  options.la bel}}<div  class="row "><div cla ss="col-md -12"><lege nd>{{optio ns.label}} </legend>< h6 style=" padding-bo ttom: 5px" ><i>{{sche ma.descrip tion}}</i> </h6></div ></div>{{/ if}}<div c lass="row" ><div clas s="col-md- 10" id="le ft"></div>  <div clas s="col-md- 2" id="rig ht" style= "margin-to p: -1px">  </div> </d iv> {{#if  options.he lper}} <di v class="r ow"> <div  class="col -md-12"> < h4>{{optio ns.helper} }</h4> </d iv> </div>  {{/if}} < /div>',Nor th52.Wizar dFunctions .FindValue Quick=func tion(e,t,i ){$(e).alp aca({schem a:{title:t ,descripti on:North52 .WizardHel pers.GetWi zardHelp(t ),type:"ob ject",prop erties:{dt friendlyna me:{type:" string",ti tle:"Frien dly Name", required:! 1},dthelpe r:{title:" Type",type :"string", default:"C alculation s",require d:!1,enum: ["Calculat ions","Act ions"]},en tityname:{ title:"Ent ity Name", type:"stri ng",requir ed:!1},ent itynameloo kup:{title :"&nbsp;", type:"arra y",uniqueI tems:!0,it ems:{type: "string"}} ,inputvalu e:{title:i ,type:"str ing",requi red:!1}}}, postRender :function( e){North52 .WizardHel pers.Decis ionTableHi deHelperFi elds(e),e. childrenBy PropertyId .entitynam elookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",North 52.WizardH elpers.Fie ldSubscrib e("entityn ame","enti tynamelook up",e,!1), e.form.get ButtonEl(" submit").c ss("margin -right","3 00px");var  t=String( e.children ByProperty Id.entityn amelookup. id);$("#"+ String(t)) .multisele ct("datapr ovider",So urceEntity .Entities) },view:{pa rent:"boot strap-edit ",layout:{ template:N orth52.Wiz ardFunctio ns.Templat e,bindings :{dtfriend lyname:"#l eft",dthel per:"#righ t",entityn ame:"#left ",entityna melookup:" #right",in putvalue:" #left"}}}, options:{f ields:{dth elper:{typ e:"select" ,hideNone: !0},entity name:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, inputvalue :{events:{ focus:func tion(){win dow.n52cur rentwizard control=th is}}},enti tynamelook up:{hideIn itValidati onError:!0 ,sort:!1,s ize:1,mult iselect:{e nableFilte ring:!0,on Change:fun ction(e,t, i){North52 .WizardHel pers.Singl eOnly(e,t, this.$sele ct)},inclu deSelectAl lOption:!1 ,enableCas eInsensiti veFilterin g:!0,filte rBehavior: "both",max Height:250 ,buttonWid th:"40px", buttonText :function( e,t){retur n""},onDro pdownShown :function( e){North52 .WizardHel pers.SetFo cusLookup( this)},onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)}},type: "select",e vents:{cha nge:functi on(){}}}}, form:{butt ons:{submi t:{title:" Generate", styles:"bt n btn-prim ary",click :function( ){North52. WizardHelp ers.Genera teFunction Call2()}}} }}})},Nort h52.Wizard Functions. OpenEntity Form=funct ion(e,t,i) {$(e).alpa ca({schema :{title:"O penEntityF orm",descr iption:Nor th52.Wizar dHelpers.G etWizardHe lp("OpenEn tityForm") ,type:"obj ect",prope rties:{dtf riendlynam e:{type:"s tring",tit le:"Friend ly Name",r equired:!1 },dthelper :{title:"T ype",type: "string",d efault:"Ca lculations ",required :!1,enum:[ "Calculati ons","Acti ons"]},ent ityname:{t itle:"Enti ty Name",t ype:"strin g",require d:!1},enti tynamelook up:{title: "&nbsp;",t ype:"array ",uniqueIt ems:!0,ite ms:{type:" string"}}, inputvalue :{title:"I D",type:"s tring",req uired:!1}, parameters :{title:"P arameters" ,type:"str ing",requi red:!1}}}, postRender :function( e){North52 .WizardHel pers.Decis ionTableHi deHelperFi elds(e),e. childrenBy PropertyId .entitynam elookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",North 52.WizardH elpers.Fie ldSubscrib e("entityn ame","enti tynamelook up",e,!1), e.form.get ButtonEl(" submit").c ss("margin -right","3 00px");var  t=String( e.children ByProperty Id.entityn amelookup. id);$("#"+ String(t)) .multisele ct("datapr ovider",So urceEntity .Entities) },view:{pa rent:"boot strap-edit ",layout:{ template:N orth52.Wiz ardFunctio ns.Templat e,bindings :{dtfriend lyname:"#l eft",dthel per:"#righ t",entityn ame:"#left ",entityna melookup:" #right",in putvalue:" #left",par ameters:"# left"}}},o ptions:{fi elds:{dthe lper:{type :"select", hideNone:! 0},entityn ame:{event s:{focus:f unction(){ window.n52 currentwiz ardcontrol =this}}},i nputvalue: {events:{f ocus:funct ion(){wind ow.n52curr entwizardc ontrol=thi s}}},param eters:{eve nts:{focus :function( ){window.n 52currentw izardcontr ol=this}}} ,entitynam elookup:{h ideInitVal idationErr or:!0,sort :!1,size:1 ,multisele ct:{enable Filtering: !0,onChang e:function (e,t,i){No rth52.Wiza rdHelpers. SingleOnly (e,t,this. $select)}, includeSel ectAllOpti on:!1,enab leCaseInse nsitiveFil tering:!0, filterBeha vior:"both ",maxHeigh t:250,butt onWidth:"4 0px",butto nText:func tion(e,t){ return""}, onDropdown Shown:func tion(e){No rth52.Wiza rdHelpers. SetFocusLo okup(this) },onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)}}, type:"sele ct",events :{change:f unction(){ }}}},form: {buttons:{ submit:{ti tle:"Gener ate",style s:"btn btn -primary", click:func tion(){Nor th52.Wizar dHelpers.G enerateFun ctionCall2 ()}}}}}})} ,North52.W izardFunct ions.Local TimeFromUt cTime=func tion(e){$( e).alpaca( {schema:{t ype:"objec t",title:" LocalTimeF romUtcTime ",descript ion:North5 2.WizardHe lpers.GetW izardHelp( "LocalTime FromUtcTim e"),proper
  2   ties:{dtfr iendlyname :{type:"st ring",titl e:"Friendl y Name"},d thelper:{t itle:"Type ",type:"st ring",defa ult:"Calcu lations",r equired:!1 ,enum:["Ca lculations ","Actions "]},inputd ate:{type: "string",t itle:"Inpu t Date"},i nputdatelo okup:{type :"array",t itle:"&nbs p;",unique Items:!0,i tems:{type :"string"} },inputtyp e:{title:" Timezone.  None, uses  current u sers timez one",type: "string",r equired:!1 ,enum:["0" ,"1","2"," 3","4","10 ","13","15 ","20","25 ","30","33 ","35","40 ","45","50 ","55","56 ","60","65 ","70","73 ","75","80 ","83","85 ","90","95 ","100","1 05","110", "113","115 ","120","1 25","130", "135","140 ","145","1 50","155", "158","160 ","165","1 70","175", "180","185 ","190","1 93","195", "200","201 ","203","2 05","207", "210","215 ","220","2 25","227", "230","235 ","240","2 45","250", "255","260 ","265","2 70","275", "280","285 ","290","3 00"]}}},po stRender:f unction(e) {North52.W izardHelpe rs.Decisio nTableHide HelperFiel ds(e),SDK. Metadata.R etrieveEnt ity(15,Sou rceEntity. CurrentEnt ity,null,! 1,function (e){North5 2.WizardHe lpers.succ essRetriev eAttribute sPicklist( e,["DateTi me"],"inpu tdatelooku p")},North 52.WizardH elpers.err orRetrieve Attributes ),e.childr enByProper tyId.input datelookup .getFieldE l()[0].chi ldNodes[4] .childNode s[0].class Name="mult iselect dr opdown-tog gle btn bt n-default  glyphicon  glyphicon- search",e. form.getBu ttonEl("su bmit").css ("margin-r ight","300 px"),North 52.WizardH elpers.Fie ldSubscrib e("inputda te","input datelookup ",e,!0)},v iew:{paren t:"bootstr ap-edit",l ayout:{tem plate:Nort h52.Wizard Functions. Template,b indings:{d tfriendlyn ame:"#left ",dthelper :"#right", inputdate: "#left",in putdateloo kup:"#righ t",inputty pe:"#left" }}},option s:{fields: {inputdate :{events:{ focus:func tion(){win dow.n52cur rentwizard control=th is}}},inpu tdatelooku p:{hideIni tValidatio nError:!0, sort:!1,si ze:1,type: "select",m ultiselect :{enableFi ltering:!0 ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)},in cludeSelec tAllOption :!1,enable CaseInsens itiveFilte ring:!0,fi lterBehavi or:"both", maxHeight: 250,button Width:"40p x",onDropd ownShown:f unction(e) {North52.W izardHelpe rs.SetFocu sLookup(th is)},butto nText:func tion(e,t){ return""}} },dthelper :{type:"se lect",hide None:!0},i nputtype:{ type:"sele ct",hideNo ne:!1,opti onLabels:[ "(GMT-12:0 0) Interna tional Dat e Line Wes t","(GMT-1 1:00) Midw ay Island,  Samoa","( GMT-10:00)  Hawaii"," (GMT-09:00 ) Alaska", "(GMT-08:0 0) Pacific  Time (US  and Canada ); Tijuana ","(GMT-07 :00) Mount ain Time ( US and Can ada)","(GM T-07:00) C hihuahua,  La Paz, Ma zatlan","( GMT-07:00)  Arizona", "(GMT-06:0 0) Central  Time (US  and Canada )","(GMT-0 6:00) Sask atchewan", "(GMT-06:0 0) Guadala jara, Mexi co City, M onterrey", "(GMT-06:0 0) Central  America", "(GMT-05:0 0) Eastern  Time (US  and Canada )","(GMT-0 5:00) Indi ana (East) ","(GMT-05 :00) Bogot a, Lima, Q uito","(GM T-04:00) A tlantic Ti me (Canada )","(GMT-0 4:00) Cara cas, La Pa z","(GMT-0 4:00) Sant iago","(GM T-03:30) N ewfoundlan d and Labr ador","(GM T-03:00) B rasilia"," (GMT-03:00 ) Buenos A ires, Geor getown","( GMT-03:00)  Greenland ","(GMT-02 :00) Mid-A tlantic"," (GMT-01:00 ) Azores", "(GMT-01:0 0) Cape Ve rde Island s","(GMT)  Greenwich  Mean Time:  Dublin, E dinburgh,  Lisbon, Lo ndon","(GM T) Casabla nca, Monro via","(GMT +01:00) Be lgrade, Br atislava,  Budapest,  Ljubljana,  Prague"," (GMT+01:00 ) Sarajevo , Skopje,  Warsaw, Za greb","(GM T+01:00) B russels, C openhagen,  Madrid, P aris","(GM T+01:00) A msterdam,  Berlin, Be rn, Rome,  Stockholm,  Vienna"," (GMT+01:00 ) West Cen tral Afric a","(GMT+0 2:00) Buch arest","(G MT+02:00)  Cairo","(G MT+02:00)  Helsinki,  Kiev, Riga , Sofia, T allinn, Vi lnius","(G MT+02:00)  Athens, Is tanbul, Mi nsk","(GMT +02:00) Je rusalem"," (GMT+02:00 ) Harare,  Pretoria", "(GMT+03:0 0) Moscow,  St. Peter sburg, Vol gograd","( GMT+03:00)  Kuwait, R iyadh","(G MT+03:00)  Nairobi"," (GMT+03:00 ) Baghdad" ,"(GMT+03: 30) Tehran ","(GMT+04 :00) Abu D habi, Musc at","(GMT+ 04:00) Bak u, Tbilisi , Yerevan" ,"(GMT+04: 30) Kabul" ,"(GMT+05: 00) Ekater inburg","( GMT+05:00)  Islamabad , Karachi,  Tashkent" ,"(GMT+05: 30) Chenna i, Kolkata , Mumbai,  New Delhi" ,"(GMT+05: 45) Kathma ndu","(GMT +06:00) As tana, Dhak a","(GMT+0 6:00) Sri  Jayawarden epura","(G MT+06:00)  Almaty, No vosibirsk" ,"(GMT+06: 30) Yangon  Rangoon", "(GMT+07:0 0) Bangkok , Hanoi, J akarta","( GMT+07:00)  Krasnoyar sk","(GMT+ 08:00) Bei jing, Chon gqing, Hon g Kong SAR , Urumqi", "(GMT+08:0 0) Kuala L umpur, Sin gapore","( GMT+08:00)  Taipei"," (GMT+08:00 ) Perth"," (GMT+08:00 ) Irkutsk,  Ulaanbaat ar","(GMT+ 09:00) Seo ul","(GMT+ 09:00) Osa ka, Sappor o, Tokyo", "(GMT+09:0 0) Yakutsk ","(GMT+09 :30) Darwi n","(GMT+0 9:30) Adel aide","(GM T+10:00) C anberra, M elbourne,  Sydney","( GMT+10:00)  Brisbane" ,"(GMT+10: 00) Hobart ","(GMT+10 :00) Vladi vostok","( GMT+10:00)  Guam, Por t Moresby" ,"(GMT+11: 00) Magada n, Solomon  Islands,  New Caledo nia","(GMT +12:00) Fi ji Islands , Kamchatk a, Marshal l Islands" ,"(GMT+12: 00) Auckla nd, Wellin gton","(GM T+13:00) N uku'alofa" ]}},form:{ buttons:{s ubmit:{tit le:"Genera te",styles :"btn btn- primary",c lick:funct ion(){setT imeout(fun ction(){No rth52.Wiza rdHelpers. GenerateFu nctionCall 2()},500)} }}}}})},No rth52.Wiza rdFunction s.LocalWit hTimeZone= function(e ,t){$(e).a lpaca({sch ema:{title :t,descrip tion:North 52.WizardH elpers.Get WizardHelp (t),type:" object",pr operties:{ dtfriendly name:{type :"string", title:"Fri endly Name ",required
  3   :!1},dthel per:{title :"Type",ty pe:"string ",default: "Calculati ons",requi red:!1,enu m:["Calcul ations","A ctions"]}, inputtype: {title:"Ti mezone. No ne, uses c urrent use rs timezon e",type:"s tring",req uired:!1,e num:["0"," 1","2","3" ,"4","10", "13","15", "20","25", "30","33", "35","40", "45","50", "55","56", "60","65", "70","73", "75","80", "83","85", "90","95", "100","105 ","110","1 13","115", "120","125 ","130","1 35","140", "145","150 ","155","1 58","160", "165","170 ","175","1 80","185", "190","193 ","195","2 00","201", "203","205 ","207","2 10","215", "220","225 ","227","2 30","235", "240","245 ","250","2 55","260", "265","270 ","275","2 80","285", "290","300 "]}}},post Render:fun ction(e){N orth52.Wiz ardHelpers .DecisionT ableHideHe lperFields (e),e.form .getButton El("submit ").css("ma rgin-right ","300px") },view:{pa rent:"boot strap-edit ",layout:{ template:N orth52.Wiz ardFunctio ns.Templat e,bindings :{dtfriend lyname:"#l eft",dthel per:"#righ t",inputty pe:"#left" }}},option s:{fields: {dthelper: {type:"sel ect",hideN one:!0},en tityname:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}},inputt ype:{type: "select",h ideNone:!1 ,optionLab els:["(GMT -12:00) In ternationa l Date Lin e West","( GMT-11:00)  Midway Is land, Samo a","(GMT-1 0:00) Hawa ii","(GMT- 09:00) Ala ska","(GMT -08:00) Pa cific Time  (US and C anada); Ti juana","(G MT-07:00)  Mountain T ime (US an d Canada)" ,"(GMT-07: 00) Chihua hua, La Pa z, Mazatla n","(GMT-0 7:00) Ariz ona","(GMT -06:00) Ce ntral Time  (US and C anada)","( GMT-06:00)  Saskatche wan","(GMT -06:00) Gu adalajara,  Mexico Ci ty, Monter rey","(GMT -06:00) Ce ntral Amer ica","(GMT -05:00) Ea stern Time  (US and C anada)","( GMT-05:00)  Indiana ( East)","(G MT-05:00)  Bogota, Li ma, Quito" ,"(GMT-04: 00) Atlant ic Time (C anada)","( GMT-04:00)  Caracas,  La Paz","( GMT-04:00)  Santiago" ,"(GMT-03: 30) Newfou ndland and  Labrador" ,"(GMT-03: 00) Brasil ia","(GMT- 03:00) Bue nos Aires,  Georgetow n","(GMT-0 3:00) Gree nland","(G MT-02:00)  Mid-Atlant ic","(GMT- 01:00) Azo res","(GMT -01:00) Ca pe Verde I slands","( GMT) Green wich Mean  Time: Dubl in, Edinbu rgh, Lisbo n, London" ,"(GMT) Ca sablanca,  Monrovia", "(GMT+01:0 0) Belgrad e, Bratisl ava, Budap est, Ljubl jana, Prag ue","(GMT+ 01:00) Sar ajevo, Sko pje, Warsa w, Zagreb" ,"(GMT+01: 00) Brusse ls, Copenh agen, Madr id, Paris" ,"(GMT+01: 00) Amster dam, Berli n, Bern, R ome, Stock holm, Vien na","(GMT+ 01:00) Wes t Central  Africa","( GMT+02:00)  Bucharest ","(GMT+02 :00) Cairo ","(GMT+02 :00) Helsi nki, Kiev,  Riga, Sof ia, Tallin n, Vilnius ","(GMT+02 :00) Athen s, Istanbu l, Minsk", "(GMT+02:0 0) Jerusal em","(GMT+ 02:00) Har are, Preto ria","(GMT +03:00) Mo scow, St.  Petersburg , Volgogra d","(GMT+0 3:00) Kuwa it, Riyadh ","(GMT+03 :00) Nairo bi","(GMT+ 03:00) Bag hdad","(GM T+03:30) T ehran","(G MT+04:00)  Abu Dhabi,  Muscat"," (GMT+04:00 ) Baku, Tb ilisi, Yer evan","(GM T+04:30) K abul","(GM T+05:00) E katerinbur g","(GMT+0 5:00) Isla mabad, Kar achi, Tash kent","(GM T+05:30) C hennai, Ko lkata, Mum bai, New D elhi","(GM T+05:45) K athmandu", "(GMT+06:0 0) Astana,  Dhaka","( GMT+06:00)  Sri Jayaw ardenepura ","(GMT+06 :00) Almat y, Novosib irsk","(GM T+06:30) Y angon Rang oon","(GMT +07:00) Ba ngkok, Han oi, Jakart a","(GMT+0 7:00) Kras noyarsk"," (GMT+08:00 ) Beijing,  Chongqing , Hong Kon g SAR, Uru mqi","(GMT +08:00) Ku ala Lumpur , Singapor e","(GMT+0 8:00) Taip ei","(GMT+ 08:00) Per th","(GMT+ 08:00) Irk utsk, Ulaa nbaatar"," (GMT+09:00 ) Seoul"," (GMT+09:00 ) Osaka, S apporo, To kyo","(GMT +09:00) Ya kutsk","(G MT+09:30)  Darwin","( GMT+09:30)  Adelaide" ,"(GMT+10: 00) Canber ra, Melbou rne, Sydne y","(GMT+1 0:00) Bris bane","(GM T+10:00) H obart","(G MT+10:00)  Vladivosto k","(GMT+1 0:00) Guam , Port Mor esby","(GM T+11:00) M agadan, So lomon Isla nds, New C aledonia", "(GMT+12:0 0) Fiji Is lands, Kam chatka, Ma rshall Isl ands","(GM T+12:00) A uckland, W ellington" ,"(GMT+13: 00) Nuku'a lofa"]}},f orm:{butto ns:{submit :{title:"G enerate",s tyles:"btn  btn-prima ry",click: function() {North52.W izardHelpe rs.Generat eFunctionC all2()}}}} }})},North 52.WizardF unctions.W hoAmI=func tion(e){$( e).alpaca( {schema:{t itle:"WhoA mI",descri ption:Nort h52.Wizard Helpers.Ge tWizardHel p("WhoAmI" ),type:"ob ject",prop erties:{dt friendlyna me:{type:" string",ti tle:"Frien dly Name", required:! 1},dthelpe r:{title:" Type",type :"string", default:"C alculation s",require d:!1,enum: ["Calculat ions","Act ions"]},in puttype:{t itle:"Inpu t",type:"s tring",def ault:"user id",requir ed:!1,enum :["userid" ,"initiati nguserid", "whoamireq uest","bus inessuniti d","organi zationid"] }}},postRe nder:funct ion(e){Nor th52.Wizar dHelpers.D ecisionTab leHideHelp erFields(e ),e.form.g etButtonEl ("submit") .css("marg in-right", "300px")}, view:{pare nt:"bootst rap-edit", layout:{te mplate:Nor th52.Wizar dFunctions .Template, bindings:{ dtfriendly name:"#lef t",dthelpe r:"#right" ,inputtype :"#left"}} },options: {fields:{d thelper:{t ype:"selec t",hideNon e:!0},enti tyname:{ev ents:{focu s:function (){window. n52current wizardcont rol=this}} },inputtyp e:{type:"s elect",hid eNone:!0}} ,form:{but tons:{subm it:{title: "Generate" ,styles:"b tn btn-pri mary",clic k:function (){North52 .WizardHel pers.Gener ateFunctio nCall2()}} }}}})},Nor th52.Wizar dFunctions .RefreshFo rm=functio n(e){$(e). alpaca({sc hema:{titl e:"Refresh Form",desc ription:No rth52.Wiza rdHelpers. GetWizardH elp("Refre shForm"),t ype:"objec t",propert ies:{dtfri endlyname: {type:"str ing",title :"Friendly  Name",req uired:!1}, dthelper:{
  4   title:"Typ e",type:"s tring",def ault:"Calc ulations", required:! 1,enum:["C alculation s","Action s"]},input type:{titl e:"Input", type:"stri ng",defaul t:"true",r equired:!1 ,enum:["tr ue","false "]}}},post Render:fun ction(e){N orth52.Wiz ardHelpers .DecisionT ableHideHe lperFields (e),e.form .getButton El("submit ").css("ma rgin-right ","300px") },view:{pa rent:"boot strap-edit ",layout:{ template:N orth52.Wiz ardFunctio ns.Templat e,bindings :{dtfriend lyname:"#l eft",dthel per:"#righ t",inputty pe:"#left" }}},option s:{fields: {dthelper: {type:"sel ect",hideN one:!0},en tityname:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}},inputt ype:{type: "select",h ideNone:!0 }},form:{b uttons:{su bmit:{titl e:"Generat e",styles: "btn btn-p rimary",cl ick:functi on(){North 52.WizardH elpers.Gen erateFunct ionCall2() }}}}}})},N orth52.Wiz ardFunctio ns.RecordU nShare=fun ction(e){$ (e).alpaca ({schema:{ title:"Rec ordUnShare ",descript ion:North5 2.WizardHe lpers.GetW izardHelp( "RecordUnS hare"),typ e:"object" ,propertie s:{dtfrien dlyname:{t ype:"strin g",title:" Friendly N ame",requi red:!1},dt helper:{ti tle:"Type" ,type:"str ing",defau lt:"Calcul ations",re quired:!1, enum:["Cal culations" ,"Actions" ]},entityn ame:{title :"Entity N ame",type: "string",r equired:!1 },entityna melookup:{ title:"&nb sp;",type: "array",un iqueItems: !0,items:{ type:"stri ng"}},reco rdid:{titl e:"Record  ID",type:" string",re quired:!1} ,recordidl ookup:{tit le:"&nbsp; ",type:"ar ray",uniqu eItems:!0, items:{typ e:"string" }},systemu serteament ityname:{t itle:"Syst em User or  Team",typ e:"string" ,required: !1},system userteamen titynamelo okup:{titl e:"&nbsp;" ,type:"arr ay",unique Items:!0,i tems:{type :"string"} },systemus erteamreco rdid:{titl e:"System  User or Te am Record  ID",type:" string",re quired:!1} ,systemuse rteamrecor didlookup: {title:"&n bsp;",type :"array",u niqueItems :!0,items: {type:"str ing"}}}},p ostRender: function(e ){North52. WizardHelp ers.Decisi onTableHid eHelperFie lds(e),SDK .Metadata. RetrieveEn tity(15,So urceEntity .CurrentEn tity,null, !1,functio n(e){North 52.WizardH elpers.suc cessRetrie veAttribut esPicklist (e,["Looku p","Unique identifier "],"record idlookup") },North52. WizardHelp ers.errorR etrieveAtt ributes),S DK.Metadat a.Retrieve Entity(15, SourceEnti ty.Current Entity,nul l,!1,funct ion(e){Nor th52.Wizar dHelpers.s uccessRetr ieveAttrib utesPickli st(e,["Loo kup","Uniq ueidentifi er"],"syst emuserteam recordidlo okup")},No rth52.Wiza rdHelpers. errorRetri eveAttribu tes),e.chi ldrenByPro pertyId.en titynamelo okup.getFi eldEl()[0] .childNode s[4].child Nodes[0].c lassName=" multiselec t dropdown -toggle bt n btn-defa ult glyphi con glyphi con-search ",e.childr enByProper tyId.recor didlookup. getFieldEl ()[0].chil dNodes[4]. childNodes [0].classN ame="multi select dro pdown-togg le btn btn -default g lyphicon g lyphicon-s earch",e.c hildrenByP ropertyId. systemuser teamrecord idlookup.g etFieldEl( )[0].child Nodes[4].c hildNodes[ 0].classNa me="multis elect drop down-toggl e btn btn- default gl yphicon gl yphicon-se arch",e.ch ildrenByPr opertyId.s ystemusert eamentityn amelookup. getFieldEl ()[0].chil dNodes[4]. childNodes [0].classN ame="multi select dro pdown-togg le btn btn -default g lyphicon g lyphicon-s earch",Nor th52.Wizar dHelpers.F ieldSubscr ibe("entit yname","en titynamelo okup",e,!1 ),North52. WizardHelp ers.FieldS ubscribe(" recordid", "recordidl ookup",e,! 0,"entityn ame"),Nort h52.Wizard Helpers.Fi eldSubscri be("system userteamen tityname", "systemuse rteamentit ynamelooku p",e,!1),N orth52.Wiz ardHelpers .FieldSubs cribe("sys temusertea mrecordid" ,"systemus erteamreco rdidlookup ",e,!0,"sy stemuserte amentityna me"),e.for m.getButto nEl("submi t").css("m argin-righ t","300px" );var t=St ring(e.chi ldrenByPro pertyId.en titynamelo okup.id);$ ("#"+Strin g(t)).mult iselect("d ataprovide r",SourceE ntity.Enti ties);var  i=String(e .childrenB yPropertyI d.systemus erteamenti tynamelook up.id);$(" #"+String( i)).multis elect("dat aprovider" ,SourceEnt ity.Entiti es)},view: {parent:"b ootstrap-e dit",layou t:{templat e:North52. WizardFunc tions.Temp late,bindi ngs:{dtfri endlyname: "#left",dt helper:"#r ight",enti tyname:"#l eft",entit ynamelooku p:"#right" ,recordid: "#left",re cordidlook up:"#right ",systemus erteamenti tyname:"#l eft",syste muserteame ntitynamel ookup:"#ri ght",syste muserteamr ecordid:"# left",syst emuserteam recordidlo okup:"#rig ht"}}},opt ions:{fiel ds:{dthelp er:{type:" select",hi deNone:!0} ,entitynam e:{events: {focus:fun ction(){wi ndow.n52cu rrentwizar dcontrol=t his}}},sys temusertea mentitynam e:{events: {focus:fun ction(){wi ndow.n52cu rrentwizar dcontrol=t his}}},rec ordid:{eve nts:{focus :function( ){window.n 52currentw izardcontr ol=this}}} ,systemuse rteamrecor did:{event s:{focus:f unction(){ window.n52 currentwiz ardcontrol =this}}},e ntitynamel ookup:{hid eInitValid ationError :!0,sort:! 1,size:1,m ultiselect :{enableFi ltering:!0 ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)},in cludeSelec tAllOption :!1,enable CaseInsens itiveFilte ring:!0,fi lterBehavi or:"both", maxHeight: 250,button Width:"40p x",buttonT ext:functi on(e,t){re turn""},on DropdownSh own:functi on(e){Nort h52.Wizard Helpers.Se tFocusLook up(this)}, onChange:f unction(e, t,i){North 52.WizardH elpers.Sin gleOnly(e, t,this.$se lect)}},ty pe:"select ",events:{ change:fun ction(){No rth52.Wiza rdHelpers. OnChangeEn tity(this. getValue() ,["Lookup" ,"Uniqueid entifier"] ,"recordid lookup")}} },systemus erteamenti tynamelook
  5   up:{hideIn itValidati onError:!0 ,sort:!1,s ize:1,mult iselect:{e nableFilte ring:!0,on Change:fun ction(e,t, i){North52 .WizardHel pers.Singl eOnly(e,t, this.$sele ct)},inclu deSelectAl lOption:!1 ,enableCas eInsensiti veFilterin g:!0,filte rBehavior: "both",max Height:250 ,buttonWid th:"40px", buttonText :function( e,t){retur n""},onDro pdownShown :function( e){North52 .WizardHel pers.SetFo cusLookup( this)},onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)}},type: "select",e vents:{cha nge:functi on(){}}},s ystemusert eamrecordi dlookup:{h ideInitVal idationErr or:!0,sort :!1,size:1 ,type:"sel ect",multi select:{en ableFilter ing:!0,onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)},includ eSelectAll Option:!1, enableCase Insensitiv eFiltering :!0,filter Behavior:" both",maxH eight:250, buttonWidt h:"40px",o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,buttonTex t:function (e,t){retu rn""}},eve nts:{chang e:function (){}}},rec ordidlooku p:{hideIni tValidatio nError:!0, sort:!1,si ze:1,type: "select",m ultiselect :{enableFi ltering:!0 ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)},in cludeSelec tAllOption :!1,enable CaseInsens itiveFilte ring:!0,fi lterBehavi or:"both", maxHeight: 250,button Width:"40p x",onDropd ownShown:f unction(e) {North52.W izardHelpe rs.SetFocu sLookup(th is)},butto nText:func tion(e,t){ return""}} ,events:{c hange:func tion(){}}} },form:{bu ttons:{sub mit:{title :"Generate ",styles:" btn btn-pr imary",cli ck:functio n(){North5 2.WizardHe lpers.Gene rateFuncti onCall2()} }}}}})},No rth52.Wiza rdFunction s.RecordUn ShareAll=f unction(e) {$(e).alpa ca({schema :{title:"R ecordUnSha reAll",des cription:N orth52.Wiz ardHelpers .GetWizard Help("Reco rdUnShareA ll"),type: "object",p roperties: {dtfriendl yname:{typ e:"string" ,title:"Fr iendly Nam e",require d:!1},dthe lper:{titl e:"Type",t ype:"strin g",default :"Calculat ions",requ ired:!1,en um:["Calcu lations"," Actions"]} ,entitynam e:{title:" Entity Nam e",type:"s tring",req uired:!1}, entityname lookup:{ti tle:"&nbsp ;",type:"a rray",uniq ueItems:!0 ,items:{ty pe:"string "}},record id:{title: "Record ID ",type:"st ring",requ ired:!1},r ecordidloo kup:{title :"&nbsp;", type:"arra y",uniqueI tems:!0,it ems:{type: "string"}} }},postRen der:functi on(e){Nort h52.Wizard Helpers.De cisionTabl eHideHelpe rFields(e) ,SDK.Metad ata.Retrie veEntity(1 5,SourceEn tity.Curre ntEntity,n ull,!1,fun ction(e){N orth52.Wiz ardHelpers .successRe trieveAttr ibutesPick list(e,["L ookup","Un iqueidenti fier"],"re cordidlook up")},Nort h52.Wizard Helpers.er rorRetriev eAttribute s),e.child renByPrope rtyId.enti tynamelook up.getFiel dEl()[0].c hildNodes[ 4].childNo des[0].cla ssName="mu ltiselect  dropdown-t oggle btn  btn-defaul t glyphico n glyphico n-search", e.children ByProperty Id.recordi dlookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",North 52.WizardH elpers.Fie ldSubscrib e("entityn ame","enti tynamelook up",e,!1), North52.Wi zardHelper s.FieldSub scribe("re cordid","r ecordidloo kup",e,!0, "entitynam e"),e.form .getButton El("submit ").css("ma rgin-right ","300px") ;var t=Str ing(e.chil drenByProp ertyId.ent itynameloo kup.id);$( "#"+String (t)).multi select("da taprovider ",SourceEn tity.Entit ies)},view :{parent:" bootstrap- edit",layo ut:{templa te:North52 .WizardFun ctions.Tem plate,bind ings:{dtfr iendlyname :"#left",d thelper:"# right",ent ityname:"# left",enti tynamelook up:"#right ",recordid :"#left",r ecordidloo kup:"#righ t"}}},opti ons:{field s:{dthelpe r:{type:"s elect",hid eNone:!0}, entityname :{events:{ focus:func tion(){win dow.n52cur rentwizard control=th is}}},reco rdid:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, entityname lookup:{hi deInitVali dationErro r:!0,sort: !1,size:1, multiselec t:{enableF iltering:! 0,onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)},i ncludeSele ctAllOptio n:!1,enabl eCaseInsen sitiveFilt ering:!0,f ilterBehav ior:"both" ,maxHeight :250,butto nWidth:"40 px",button Text:funct ion(e,t){r eturn""},o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)}},t ype:"selec t",events: {change:fu nction(){} }},recordi dlookup:{h ideInitVal idationErr or:!0,sort :!1,size:1 ,type:"sel ect",multi select:{en ableFilter ing:!0,onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)},includ eSelectAll Option:!1, enableCase Insensitiv eFiltering :!0,filter Behavior:" both",maxH eight:250, buttonWidt h:"40px",o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,buttonTex t:function (e,t){retu rn""}},eve nts:{chang e:function (){}}}},fo rm:{button s:{submit: {title:"Ge nerate",st yles:"btn  btn-primar y",click:f unction(){ North52.Wi zardHelper s.Generate FunctionCa ll2()}}}}} })},North5 2.WizardFu nctions.Re cordShare= function(e ){$(e).alp aca({schem a:{title:" RecordShar e",descrip tion:North 52.WizardH elpers.Get WizardHelp ("RecordSh are"),type :"object", properties :{dtfriend lyname:{ty pe:"string ",title:"F riendly Na me",requir ed:!1},dth elper:{tit le:"Type", type:"stri ng",defaul t:"Calcula tions",req uired:!1,e num:["Calc ulations", "Actions"] },entityna me:{title: "Entity Na me",type:" string",re quired:!1} ,entitynam elookup:{t itle:"&nbs p;",type:" array",uni queItems:!
  6   0,items:{t ype:"strin g"}},recor did:{title :"Record I D",type:"s tring",req uired:!1}, recordidlo okup:{titl e:"&nbsp;" ,type:"arr ay",unique Items:!0,i tems:{type :"string"} },systemus erteamenti tyname:{ti tle:"Syste m User or  Team",type :"string", required:! 1},systemu serteament itynameloo kup:{title :"&nbsp;", type:"arra y",uniqueI tems:!0,it ems:{type: "string"}} ,systemuse rteamrecor did:{title :"System U ser or Tea m Record I D",type:"s tring",req uired:!1}, systemuser teamrecord idlookup:{ title:"&nb sp;",type: "array",un iqueItems: !0,items:{ type:"stri ng"}},read access:{ti tle:"Read  Access",ty pe:"string ",default: "true",req uired:!1,e num:["true ","false"] },writeacc ess:{title :"Write Ac cess",type :"string", default:"t rue",requi red:!1,enu m:["true", "false"]}, deleteacce ss:{title: "Delete Ac cess",type :"string", default:"t rue",requi red:!1,enu m:["true", "false"]}, assignacce ss:{title: "Assign Ac cess",type :"string", default:"t rue",requi red:!1,enu m:["true", "false"]}, shareacces s:{title:" Share Acce ss",type:" string",de fault:"tru e",require d:!1,enum: ["true","f alse"]},ap pendaccess :{title:"A ppend Acce ss",type:" string",de fault:"tru e",require d:!1,enum: ["true","f alse"]},ap pendtoacce ss:{title: "Append To  Access",t ype:"strin g",default :"true",re quired:!1, enum:["tru e","false" ]}}},postR ender:func tion(e){No rth52.Wiza rdHelpers. DecisionTa bleHideHel perFields( e),SDK.Met adata.Retr ieveEntity (15,Source Entity.Cur rentEntity ,null,!1,f unction(e) {North52.W izardHelpe rs.success RetrieveAt tributesPi cklist(e,[ "Lookup"," Uniqueiden tifier"]," recordidlo okup")},No rth52.Wiza rdHelpers. errorRetri eveAttribu tes),SDK.M etadata.Re trieveEnti ty(15,Sour ceEntity.C urrentEnti ty,null,!1 ,function( e){North52 .WizardHel pers.succe ssRetrieve Attributes Picklist(e ,["Lookup" ,"Uniqueid entifier"] ,"systemus erteamreco rdidlookup ")},North5 2.WizardHe lpers.erro rRetrieveA ttributes) ,e.childre nByPropert yId.entity namelookup .getFieldE l()[0].chi ldNodes[4] .childNode s[0].class Name="mult iselect dr opdown-tog gle btn bt n-default  glyphicon  glyphicon- search",e. childrenBy PropertyId .recordidl ookup.getF ieldEl()[0 ].childNod es[4].chil dNodes[0]. className= "multisele ct dropdow n-toggle b tn btn-def ault glyph icon glyph icon-searc h",e.child renByPrope rtyId.syst emuserteam recordidlo okup.getFi eldEl()[0] .childNode s[4].child Nodes[0].c lassName=" multiselec t dropdown -toggle bt n btn-defa ult glyphi con glyphi con-search ",e.childr enByProper tyId.syste muserteame ntitynamel ookup.getF ieldEl()[0 ].childNod es[4].chil dNodes[0]. className= "multisele ct dropdow n-toggle b tn btn-def ault glyph icon glyph icon-searc h",North52 .WizardHel pers.Field Subscribe( "entitynam e","entity namelookup ",e,!1),No rth52.Wiza rdHelpers. FieldSubsc ribe("reco rdid","rec ordidlooku p",e,!0,"e ntityname" ),North52. WizardHelp ers.FieldS ubscribe(" systemuser teamentity name","sys temusertea mentitynam elookup",e ,!1),North 52.WizardH elpers.Fie ldSubscrib e("systemu serteamrec ordid","sy stemuserte amrecordid lookup",e, !0,"system userteamen tityname") ,e.form.ge tButtonEl( "submit"). css("margi n-right"," 300px");va r t=String (e.childre nByPropert yId.entity namelookup .id);$("#" +String(t) ).multisel ect("datap rovider",S ourceEntit y.Entities );var i=St ring(e.chi ldrenByPro pertyId.sy stemuserte amentityna melookup.i d);$("#"+S tring(i)). multiselec t("datapro vider",Sou rceEntity. Entities)} ,view:{par ent:"boots trap-edit" ,layout:{t emplate:No rth52.Wiza rdFunction s.Template ,bindings: {dtfriendl yname:"#le ft",dthelp er:"#right ",entityna me:"#left" ,entitynam elookup:"# right",rec ordid:"#le ft",record idlookup:" #right",sy stemuserte amentityna me:"#left" ,systemuse rteamentit ynamelooku p:"#right" ,systemuse rteamrecor did:"#left ",systemus erteamreco rdidlookup :"#right", readaccess :"#left",w riteaccess :"#left",d eleteacces s:"#left", assignacce ss:"#left" ,shareacce ss:"#left" ,appendacc ess:"#left ",appendto access:"#l eft"}}},op tions:{fie lds:{dthel per:{type: "select",h ideNone:!0 },entityna me:{events :{focus:fu nction(){w indow.n52c urrentwiza rdcontrol= this}}},sy stemuserte amentityna me:{events :{focus:fu nction(){w indow.n52c urrentwiza rdcontrol= this}}},re cordid:{ev ents:{focu s:function (){window. n52current wizardcont rol=this}} },systemus erteamreco rdid:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, entityname lookup:{hi deInitVali dationErro r:!0,sort: !1,size:1, multiselec t:{enableF iltering:! 0,onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)},i ncludeSele ctAllOptio n:!1,enabl eCaseInsen sitiveFilt ering:!0,f ilterBehav ior:"both" ,maxHeight :250,butto nWidth:"40 px",button Text:funct ion(e,t){r eturn""},o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)}},t ype:"selec t",events: {change:fu nction(){N orth52.Wiz ardHelpers .OnChangeE ntity(this .getValue( ),["Lookup ","Uniquei dentifier" ],"recordi dlookup")} }},systemu serteament itynameloo kup:{hideI nitValidat ionError:! 0,sort:!1, size:1,mul tiselect:{ enableFilt ering:!0,o nChange:fu nction(e,t ,i){North5 2.WizardHe lpers.Sing leOnly(e,t ,this.$sel ect)},incl udeSelectA llOption:! 1,enableCa seInsensit iveFilteri ng:!0,filt erBehavior :"both",ma xHeight:25 0,buttonWi dth:"40px" ,buttonTex t:function (e,t){retu rn""},onDr opdownShow n:function (e){North5 2.WizardHe lpers.SetF ocusLookup (this)},on Change:fun ction(e,t, i){North52
  7   .WizardHel pers.Singl eOnly(e,t, this.$sele ct)}},type :"select", events:{ch ange:funct ion(){}}}, systemuser teamrecord idlookup:{ hideInitVa lidationEr ror:!0,sor t:!1,size: 1,type:"se lect",mult iselect:{e nableFilte ring:!0,on Change:fun ction(e,t, i){North52 .WizardHel pers.Singl eOnly(e,t, this.$sele ct)},inclu deSelectAl lOption:!1 ,enableCas eInsensiti veFilterin g:!0,filte rBehavior: "both",max Height:250 ,buttonWid th:"40px", onDropdown Shown:func tion(e){No rth52.Wiza rdHelpers. SetFocusLo okup(this) },buttonTe xt:functio n(e,t){ret urn""}},ev ents:{chan ge:functio n(){}}},re cordidlook up:{hideIn itValidati onError:!0 ,sort:!1,s ize:1,type :"select", multiselec t:{enableF iltering:! 0,onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)},i ncludeSele ctAllOptio n:!1,enabl eCaseInsen sitiveFilt ering:!0,f ilterBehav ior:"both" ,maxHeight :250,butto nWidth:"40 px",onDrop downShown: function(e ){North52. WizardHelp ers.SetFoc usLookup(t his)},butt onText:fun ction(e,t) {return""} },events:{ change:fun ction(){}} },systemus erteam:{ty pe:"select ",hideNone :!0},reada ccess:{typ e:"select" ,hideNone: !0},writea ccess:{typ e:"select" ,hideNone: !0},delete access:{ty pe:"select ",hideNone :!0},assig naccess:{t ype:"selec t",hideNon e:!0},shar eaccess:{t ype:"selec t",hideNon e:!0},appe ndaccess:{ type:"sele ct",hideNo ne:!0},app endtoacces s:{type:"s elect",hid eNone:!0}} ,form:{but tons:{subm it:{title: "Generate" ,styles:"b tn btn-pri mary",clic k:function (){North52 .WizardHel pers.Gener ateFunctio nCall2()}} }}}})},Nor th52.Wizar dFunctions .FindRecor dsAuditHtm l=function (e){$(e).a lpaca({sch ema:{title :"FindReco rdsAuditHt ml",descri ption:Nort h52.Wizard Helpers.Ge tWizardHel p("FindRec ordsAuditH tml"),type :"object", properties :{dtfriend lyname:{ty pe:"string ",title:"F riendly Na me",requir ed:!1},dth elper:{tit le:"Type", type:"stri ng",defaul t:"Calcula tions",req uired:!1,e num:["Calc ulations", "Actions"] },entityna me:{title: "Entity Na me",type:" string",re quired:!1} ,entitynam elookup:{t itle:"&nbs p;",type:" array",uni queItems:! 0,items:{t ype:"strin g"}},recor did:{title :"Record I D",type:"s tring",req uired:!1}, recordidlo okup:{titl e:"&nbsp;" ,type:"arr ay",unique Items:!0,i tems:{type :"string"} },lastnumb erofdays:{ title:"Las t Number O f Days",ty pe:"intege r",require d:!1}}},po stRender:f unction(e) {North52.W izardHelpe rs.Decisio nTableHide HelperFiel ds(e),SDK. Metadata.R etrieveEnt ity(15,Sou rceEntity. CurrentEnt ity,null,! 1,function (e){North5 2.WizardHe lpers.succ essRetriev eAttribute sPicklist( e,["Lookup ","Uniquei dentifier" ],"recordi dlookup")} ,North52.W izardHelpe rs.errorRe trieveAttr ibutes),e. childrenBy PropertyId .entitynam elookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",e.chi ldrenByPro pertyId.re cordidlook up.getFiel dEl()[0].c hildNodes[ 4].childNo des[0].cla ssName="mu ltiselect  dropdown-t oggle btn  btn-defaul t glyphico n glyphico n-search", North52.Wi zardHelper s.FieldSub scribe("en tityname", "entitynam elookup",e ,!1),North 52.WizardH elpers.Fie ldSubscrib e("recordi d","record idlookup", e,!0,"enti tyname"),e .form.getB uttonEl("s ubmit").cs s("margin- right","30 0px");var  t=String(e .childrenB yPropertyI d.entityna melookup.i d);$("#"+S tring(t)). multiselec t("datapro vider",Sou rceEntity. Entities)} ,view:{par ent:"boots trap-edit" ,layout:{t emplate:No rth52.Wiza rdFunction s.Template ,bindings: {dtfriendl yname:"#le ft",dthelp er:"#right ",entityna me:"#left" ,entitynam elookup:"# right",rec ordid:"#le ft",record idlookup:" #right",la stnumberof days:"#lef t"}}},opti ons:{field s:{dthelpe r:{type:"s elect",hid eNone:!0}, entityname :{events:{ focus:func tion(){win dow.n52cur rentwizard control=th is}}},reco rdid:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, entityname lookup:{hi deInitVali dationErro r:!0,sort: !1,size:1, multiselec t:{enableF iltering:! 0,onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)},i ncludeSele ctAllOptio n:!1,enabl eCaseInsen sitiveFilt ering:!0,f ilterBehav ior:"both" ,maxHeight :250,butto nWidth:"40 px",button Text:funct ion(e,t){r eturn""},o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)}},t ype:"selec t",events: {change:fu nction(){N orth52.Wiz ardHelpers .OnChangeE ntity(this .getValue( ),["Lookup ","Uniquei dentifier" ],"recordi dlookup")} }},recordi dlookup:{h ideInitVal idationErr or:!0,sort :!1,size:1 ,type:"sel ect",multi select:{en ableFilter ing:!0,onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)},includ eSelectAll Option:!1, enableCase Insensitiv eFiltering :!0,filter Behavior:" both",maxH eight:250, buttonWidt h:"40px",o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,buttonTex t:function (e,t){retu rn""}},eve nts:{chang e:function (){}}}},fo rm:{button s:{submit: {title:"Ge nerate",st yles:"btn  btn-primar y",click:f unction(){ North52.Wi zardHelper s.Generate FunctionCa ll2()}}}}} })},North5 2.WizardFu nctions.Fi ndProductP ropertiesB yRegarding IDAndPrope rtyName=fu nction(e){ $(e).alpac a({schema: {title:"Fi ndProductP ropertiesB yRegarding IDAndPrope rtyName",d escription :North52.W izardHelpe rs.GetWiza rdHelp("Fi ndProductP ropertiesB yRegarding IDAndPrope rtyName"), type:"obje ct",proper ties:{dtfr iendlyname :{type:"st ring",titl e:"Friendl
  8   y Name",re quired:!1} ,dthelper: {title:"Ty pe",type:" string",de fault:"Cal culations" ,required: !1,enum:[" Calculatio ns","Actio ns"]},reco rdid:{titl e:"Record  ID",type:" string",re quired:!1} ,recordidl ookup:{tit le:"&nbsp; ",type:"ar ray",uniqu eItems:!0, items:{typ e:"string" }},propert yname:{tit le:"Proper ty Name",t ype:"strin g",require d:!1}}},po stRender:f unction(e) {North52.W izardHelpe rs.Decisio nTableHide HelperFiel ds(e),SDK. Metadata.R etrieveEnt ity(15,Sou rceEntity. CurrentEnt ity,null,! 1,function (e){North5 2.WizardHe lpers.succ essRetriev eAttribute sPicklist( e,["Lookup ","Uniquei dentifier" ],"recordi dlookup")} ,North52.W izardHelpe rs.errorRe trieveAttr ibutes),e. childrenBy PropertyId .recordidl ookup.getF ieldEl()[0 ].childNod es[4].chil dNodes[0]. className= "multisele ct dropdow n-toggle b tn btn-def ault glyph icon glyph icon-searc h",North52 .WizardHel pers.Field Subscribe( "recordid" ,"recordid lookup",e, !0),e.form .getButton El("submit ").css("ma rgin-right ","300px") },view:{pa rent:"boot strap-edit ",layout:{ template:N orth52.Wiz ardFunctio ns.Templat e,bindings :{dtfriend lyname:"#l eft",dthel per:"#righ t",recordi d:"#left", recordidlo okup:"#rig ht",proper tyname:"#l eft"}}},op tions:{fie lds:{dthel per:{type: "select",h ideNone:!0 },recordid :{events:{ focus:func tion(){win dow.n52cur rentwizard control=th is}}},prop ertyname:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}},record idlookup:{ hideInitVa lidationEr ror:!0,sor t:!1,size: 1,type:"se lect",mult iselect:{e nableFilte ring:!0,on Change:fun ction(e,t, i){North52 .WizardHel pers.Singl eOnly(e,t, this.$sele ct)},inclu deSelectAl lOption:!1 ,enableCas eInsensiti veFilterin g:!0,filte rBehavior: "both",max Height:250 ,buttonWid th:"40px", onDropdown Shown:func tion(e){No rth52.Wiza rdHelpers. SetFocusLo okup(this) },buttonTe xt:functio n(e,t){ret urn""}},ev ents:{chan ge:functio n(){}}}},f orm:{butto ns:{submit :{title:"G enerate",s tyles:"btn  btn-prima ry",click: function() {North52.W izardHelpe rs.Generat eFunctionC all2()}}}} }})},North 52.WizardF unctions.F indProduct Properties ByRegardin gID=functi on(e){$(e) .alpaca({s chema:{tit le:"FindPr oductPrope rtiesByReg ardingID", descriptio n:North52. WizardHelp ers.GetWiz ardHelp("F indProduct Properties ByRegardin gID"),type :"object", properties :{dtfriend lyname:{ty pe:"string ",title:"F riendly Na me",requir ed:!1},dth elper:{tit le:"Type", type:"stri ng",defaul t:"Calcula tions",req uired:!1,e num:["Calc ulations", "Actions"] },recordid :{title:"R ecord ID", type:"stri ng",requir ed:!1},rec ordidlooku p:{title:" &nbsp;",ty pe:"array" ,uniqueIte ms:!0,item s:{type:"s tring"}}}} ,postRende r:function (e){North5 2.WizardHe lpers.Deci sionTableH ideHelperF ields(e),S DK.Metadat a.Retrieve Entity(15, SourceEnti ty.Current Entity,nul l,!1,funct ion(e){Nor th52.Wizar dHelpers.s uccessRetr ieveAttrib utesPickli st(e,["Loo kup","Uniq ueidentifi er"],"reco rdidlookup ")},North5 2.WizardHe lpers.erro rRetrieveA ttributes) ,e.childre nByPropert yId.record idlookup.g etFieldEl( )[0].child Nodes[4].c hildNodes[ 0].classNa me="multis elect drop down-toggl e btn btn- default gl yphicon gl yphicon-se arch",Nort h52.Wizard Helpers.Fi eldSubscri be("record id","recor didlookup" ,e,!0),e.f orm.getBut tonEl("sub mit").css( "margin-ri ght","300p x")},view: {parent:"b ootstrap-e dit",layou t:{templat e:North52. WizardFunc tions.Temp late,bindi ngs:{dtfri endlyname: "#left",dt helper:"#r ight",reco rdid:"#lef t",recordi dlookup:"# right"}}}, options:{f ields:{dth elper:{typ e:"select" ,hideNone: !0},record id:{events :{focus:fu nction(){w indow.n52c urrentwiza rdcontrol= this}}},re cordidlook up:{hideIn itValidati onError:!0 ,sort:!1,s ize:1,type :"select", multiselec t:{enableF iltering:! 0,onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)},i ncludeSele ctAllOptio n:!1,enabl eCaseInsen sitiveFilt ering:!0,f ilterBehav ior:"both" ,maxHeight :250,butto nWidth:"40 px",onDrop downShown: function(e ){North52. WizardHelp ers.SetFoc usLookup(t his)},butt onText:fun ction(e,t) {return""} },events:{ change:fun ction(){}} }},form:{b uttons:{su bmit:{titl e:"Generat e",styles: "btn btn-p rimary",cl ick:functi on(){North 52.WizardH elpers.Gen erateFunct ionCall2() }}}}}})},N orth52.Wiz ardFunctio ns.Execute Action=fun ction(e){$ (e).alpaca ({schema:{ title:"Exe cuteAction ",descript ion:North5 2.WizardHe lpers.GetW izardHelp( "ExecuteAc tion"),typ e:"object" ,propertie s:{dtfrien dlyname:{t ype:"strin g",title:" Friendly N ame",requi red:!1},dt helper:{ti tle:"Type" ,type:"str ing",defau lt:"Calcul ations",re quired:!1, enum:["Cal culations" ,"Actions" ]},workflo wname:{tit le:"Action  Name",typ e:"string" ,required: !1},workfl ownamelook up:{title: "&nbsp;",t ype:"array ",uniqueIt ems:!0,ite ms:{type:" string"}}, entityname :{title:"E ntity Name ",type:"st ring",requ ired:!1},e ntitynamel ookup:{tit le:"&nbsp; ",type:"ar ray",uniqu eItems:!0, items:{typ e:"string" }},recordi d:{title:" Record ID" ,type:"str ing",requi red:!1},re cordidlook up:{title: "&nbsp;",t ype:"array ",uniqueIt ems:!0,ite ms:{type:" string"}}} },postRend er:functio n(e){North 52.WizardH elpers.Dec isionTable HideHelper Fields(e), SDK.Metada ta.Retriev eEntity(15 ,SourceEnt ity.Curren tEntity,nu ll,!1,func tion(e){No rth52.Wiza rdHelpers. successRet rieveAttri butesPickl ist(e,["Lo okup","Uni queidentif ier"],"rec ordidlooku p")},North 52.WizardH elpers.err orRetrieve Attributes );var t=St ring(e.chi ldrenByPro pertyId.wo rkflowname lookup.id) ;$("#"+Str ing(t)).mu ltiselect(
  9   "dataprovi der",North 52.WizardH elpers.Fin dProcesses ("Actions" ,3));var i =String(e. childrenBy PropertyId .entitynam elookup.id );$("#"+St ring(i)).m ultiselect ("dataprov ider",Sour ceEntity.E ntities),e .childrenB yPropertyI d.workflow namelookup .getFieldE l()[0].chi ldNodes[4] .childNode s[0].class Name="mult iselect dr opdown-tog gle btn bt n-default  glyphicon  glyphicon- search",e. childrenBy PropertyId .entitynam elookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",e.chi ldrenByPro pertyId.re cordidlook up.getFiel dEl()[0].c hildNodes[ 4].childNo des[0].cla ssName="mu ltiselect  dropdown-t oggle btn  btn-defaul t glyphico n glyphico n-search", North52.Wi zardHelper s.FieldSub scribe("wo rkflowname ","workflo wnamelooku p",e,!1),N orth52.Wiz ardHelpers .FieldSubs cribe("ent ityname"," entityname lookup",e, !1),North5 2.WizardHe lpers.Fiel dSubscribe ("recordid ","recordi dlookup",e ,!0,"entit yname"),e. form.getBu ttonEl("su bmit").css ("margin-r ight","300 px")},view :{parent:" bootstrap- edit",layo ut:{templa te:North52 .WizardFun ctions.Tem plate,bind ings:{dtfr iendlyname :"#left",d thelper:"# right",wor kflowname: "#left",wo rkflowname lookup:"#r ight",enti tyname:"#l eft",entit ynamelooku p:"#right" ,recordid: "#left",re cordidlook up:"#right "}}},optio ns:{fields :{dthelper :{type:"se lect",hide None:!0},w orkflownam e:{events: {focus:fun ction(){wi ndow.n52cu rrentwizar dcontrol=t his}}},ent ityname:{e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }},recordi d:{events: {focus:fun ction(){wi ndow.n52cu rrentwizar dcontrol=t his}}},wor kflownamel ookup:{hid eInitValid ationError :!0,sort:! 1,size:1,m ultiselect :{enableFi ltering:!0 ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)},in cludeSelec tAllOption :!1,enable CaseInsens itiveFilte ring:!0,fi lterBehavi or:"both", maxHeight: 250,button Width:"40p x",buttonT ext:functi on(e,t){re turn""},on DropdownSh own:functi on(e){Nort h52.Wizard Helpers.Se tFocusLook up(this)}, onChange:f unction(e, t,i){North 52.WizardH elpers.Sin gleOnly(e, t,this.$se lect)}},ty pe:"select ",events:{ change:fun ction(){}} },entityna melookup:{ hideInitVa lidationEr ror:!0,sor t:!1,size: 1,multisel ect:{enabl eFiltering :!0,onChan ge:functio n(e,t,i){N orth52.Wiz ardHelpers .SingleOnl y(e,t,this .$select)} ,includeSe lectAllOpt ion:!1,ena bleCaseIns ensitiveFi ltering:!0 ,filterBeh avior:"bot h",maxHeig ht:250,but tonWidth:" 40px",butt onText:fun ction(e,t) {return""} ,onDropdow nShown:fun ction(e){N orth52.Wiz ardHelpers .SetFocusL ookup(this )},onChang e:function (e,t,i){No rth52.Wiza rdHelpers. SingleOnly (e,t,this. $select)}} ,type:"sel ect",event s:{change: function() {}}},recor didlookup: {hideInitV alidationE rror:!0,so rt:!1,size :1,type:"s elect",mul tiselect:{ enableFilt ering:!0,o nChange:fu nction(e,t ,i){North5 2.WizardHe lpers.Sing leOnly(e,t ,this.$sel ect)},incl udeSelectA llOption:! 1,enableCa seInsensit iveFilteri ng:!0,filt erBehavior :"both",ma xHeight:25 0,buttonWi dth:"40px" ,onDropdow nShown:fun ction(e){N orth52.Wiz ardHelpers .SetFocusL ookup(this )},buttonT ext:functi on(e,t){re turn""}},e vents:{cha nge:functi on(){}}}}, form:{butt ons:{submi t:{title:" Generate", styles:"bt n btn-prim ary",click :function( ){North52. WizardHelp ers.Genera teFunction Call2()}}} }}})},Nort h52.Wizard Functions. SingleProc ess=functi on(e,t,i,n ){$(e).alp aca({schem a:{title:t ,descripti on:North52 .WizardHel pers.GetWi zardHelp(t ),type:"ob ject",prop erties:{dt friendlyna me:{type:" string",ti tle:"Frien dly Name", required:! 1},dthelpe r:{title:" Type",type :"string", default:"C alculation s",require d:!1,enum: ["Calculat ions","Act ions"]},wo rkflowname :{title:"N ame",type: "string",r equired:!1 },workflow namelookup :{title:"& nbsp;",typ e:"array", uniqueItem s:!0,items :{type:"st ring"}}}}, postRender :function( e){North52 .WizardHel pers.Decis ionTableHi deHelperFi elds(e),e. childrenBy PropertyId .workflown amelookup. getFieldEl ()[0].chil dNodes[4]. childNodes [0].classN ame="multi select dro pdown-togg le btn btn -default g lyphicon g lyphicon-s earch",Nor th52.Wizar dHelpers.F ieldSubscr ibe("workf lowname"," workflowna melookup", e,!1),e.fo rm.getButt onEl("subm it").css(" margin-rig ht","300px ");var t=S tring(e.ch ildrenByPr opertyId.w orkflownam elookup.id );$("#"+St ring(t)).m ultiselect ("dataprov ider",Nort h52.Wizard Helpers.Fi ndProcesse s(i,n))},v iew:{paren t:"bootstr ap-edit",l ayout:{tem plate:Nort h52.Wizard Functions. Template,b indings:{d tfriendlyn ame:"#left ",dthelper :"#right", workflowna me:"#left" ,workflown amelookup: "#right"}} },options: {fields:{d thelper:{t ype:"selec t",hideNon e:!0},work flowname:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}},workfl ownamelook up:{hideIn itValidati onError:!0 ,sort:!1,s ize:1,mult iselect:{e nableFilte ring:!0,on Change:fun ction(e,t, i){North52 .WizardHel pers.Singl eOnly(e,t, this.$sele ct)},inclu deSelectAl lOption:!1 ,enableCas eInsensiti veFilterin g:!0,filte rBehavior: "both",max Height:250 ,buttonWid th:"40px", buttonText :function( e,t){retur n""},onDro pdownShown :function( e){North52 .WizardHel pers.SetFo cusLookup( this)},onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)}},type: "select",e vents:{cha nge:functi on(){}}}}, form:{butt ons:{submi t:{title:" Generate", styles:"bt n btn-prim ary",click :function( ){North52. WizardHelp ers.Genera teFunction Call2()}}} }}})},Nort h52.Wizard
  10   Functions. BPSetActiv eStageSSEx =function( e,t,i,n){$ (e).alpaca ({schema:{ title:"BPS etActiveSt ageSS",des cription:N orth52.Wiz ardHelpers .GetWizard Help("BPSe tActiveSta geSS"),typ e:"object" ,propertie s:{dtfrien dlyname:{t ype:"strin g",title:" Friendly N ame",requi red:!1},dt helper:{ti tle:"Type" ,type:"str ing",defau lt:"Calcul ations",re quired:!1, enum:["Cal culations" ,"Actions" ]},entityn ame:{title :"Entity N ame",type: "string",r equired:!1 },entityna melookup:{ title:"&nb sp;",type: "array",un iqueItems: !0,items:{ type:"stri ng"}},reco rdid:{titl e:"Record  ID",type:" string",re quired:!1} ,recordidl ookup:{tit le:"&nbsp; ",type:"ar ray",uniqu eItems:!0, items:{typ e:"string" }},workflo wname:{tit le:"Busine ss Process  Flow Name ",type:"st ring",requ ired:!1},w orkflownam elookup:{t itle:"&nbs p;",type:" array",uni queItems:! 0,items:{t ype:"strin g"}},stage name:{titl e:"Busines s Process  Flow Stage  Name",typ e:"string" ,required: !1},stagen amelookup: {title:"&n bsp;",type :"array",u niqueItems :!0,items: {type:"str ing"}}}},p ostRender: function(e ){North52. WizardHelp ers.Decisi onTableHid eHelperFie lds(e),SDK .Metadata. RetrieveEn tity(15,So urceEntity .CurrentEn tity,null, !1,functio n(e){North 52.WizardH elpers.suc cessRetrie veAttribut esPicklist (e,["Looku p","Unique identifier "],"record idlookup") },North52. WizardHelp ers.errorR etrieveAtt ributes),e .childrenB yPropertyI d.entityna melookup.g etFieldEl( )[0].child Nodes[4].c hildNodes[ 0].classNa me="multis elect drop down-toggl e btn btn- default gl yphicon gl yphicon-se arch",e.ch ildrenByPr opertyId.r ecordidloo kup.getFie ldEl()[0]. childNodes [4].childN odes[0].cl assName="m ultiselect  dropdown- toggle btn  btn-defau lt glyphic on glyphic on-search" ,e.childre nByPropert yId.workfl ownamelook up.getFiel dEl()[0].c hildNodes[ 4].childNo des[0].cla ssName="mu ltiselect  dropdown-t oggle btn  btn-defaul t glyphico n glyphico n-search", e.children ByProperty Id.stagena melookup.g etFieldEl( )[0].child Nodes[4].c hildNodes[ 0].classNa me="multis elect drop down-toggl e btn btn- default gl yphicon gl yphicon-se arch",Nort h52.Wizard Helpers.Fi eldSubscri be("entity name","ent itynameloo kup",e,!1) ,North52.W izardHelpe rs.FieldSu bscribe("r ecordid"," recordidlo okup",e,!0 ,"entityna me"),North 52.WizardH elpers.Fie ldSubscrib e("workflo wname","wo rkflowname lookup",e, !1),North5 2.WizardHe lpers.Fiel dSubscribe ("stagenam e","stagen amelookup" ,e,!1),e.f orm.getBut tonEl("sub mit").css( "margin-ri ght","300p x");var t= String(e.c hildrenByP ropertyId. workflowna melookup.i d);$("#"+S tring(t)). multiselec t("datapro vider",Nor th52.Wizar dHelpers.F indProcess es(i,n));v ar r=Strin g(e.childr enByProper tyId.entit ynamelooku p.id);$("# "+String(r )).multise lect("data provider", SourceEnti ty.Entitie s)},view:{ parent:"bo otstrap-ed it",layout :{template :North52.W izardFunct ions.Templ ate,bindin gs:{dtfrie ndlyname:" #left",dth elper:"#ri ght",entit yname:"#le ft",entity namelookup :"#right", recordid:" #left",rec ordidlooku p:"#right" ,workflown ame:"#left ",workflow namelookup :"#right", stagename: "#left",st agenameloo kup:"#righ t"}}},opti ons:{field s:{dthelpe r:{type:"s elect",hid eNone:!0}, workflowna me:{events :{focus:fu nction(){w indow.n52c urrentwiza rdcontrol= this}}},st agename:{e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }},entityn amelookup: {hideInitV alidationE rror:!0,so rt:!1,size :1,multise lect:{enab leFilterin g:!0,onCha nge:functi on(e,t,i){ North52.Wi zardHelper s.SingleOn ly(e,t,thi s.$select) },includeS electAllOp tion:!1,en ableCaseIn sensitiveF iltering:! 0,filterBe havior:"bo th",maxHei ght:250,bu ttonWidth: "40px",but tonText:fu nction(e,t ){return"" },onDropdo wnShown:fu nction(e){ North52.Wi zardHelper s.SetFocus Lookup(thi s)},onChan ge:functio n(e,t,i){N orth52.Wiz ardHelpers .SingleOnl y(e,t,this .$select)} },type:"se lect",even ts:{change :function( ){North52. WizardHelp ers.OnChan geEntity(t his.getVal ue(),["Loo kup","Uniq ueidentifi er"],"reco rdidlookup ")}}},reco rdidlookup :{hideInit Validation Error:!0,s ort:!1,siz e:1,type:" select",mu ltiselect: {enableFil tering:!0, onChange:f unction(e, t,i){North 52.WizardH elpers.Sin gleOnly(e, t,this.$se lect)},inc ludeSelect AllOption: !1,enableC aseInsensi tiveFilter ing:!0,fil terBehavio r:"both",m axHeight:2 50,buttonW idth:"40px ",onDropdo wnShown:fu nction(e){ North52.Wi zardHelper s.SetFocus Lookup(thi s)},button Text:funct ion(e,t){r eturn""}}, events:{ch ange:funct ion(){}}}, workflowna melookup:{ hideInitVa lidationEr ror:!0,sor t:!1,size: 1,multisel ect:{enabl eFiltering :!0,onChan ge:functio n(e,t,i){N orth52.Wiz ardHelpers .SingleOnl y(e,t,this .$select)} ,includeSe lectAllOpt ion:!1,ena bleCaseIns ensitiveFi ltering:!0 ,filterBeh avior:"bot h",maxHeig ht:250,but tonWidth:" 40px",butt onText:fun ction(e,t) {return""} ,onDropdow nShown:fun ction(e){N orth52.Wiz ardHelpers .SetFocusL ookup(this )}},type:" select",ev ents:{chan ge:functio n(){North5 2.WizardHe lpers.OnCh angeBPF(th is.getValu e(),"stage namelookup ")}}},stag enamelooku p:{hideIni tValidatio nError:!0, sort:!1,si ze:1,multi select:{en ableFilter ing:!0,onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)},includ eSelectAll Option:!1, enableCase Insensitiv eFiltering :!0,filter Behavior:" both",maxH eight:250, buttonWidt h:"40px",b uttonText: function(e ,t){return ""},onDrop downShown: function(e ){North52. WizardHelp ers.SetFoc usLookup(t his)}},typ e:"select" ,events:{c hange:func tion(){}}} },form:{bu ttons:{sub mit:{title
  11   :"Generate ",styles:" btn btn-pr imary",cli ck:functio n(){North5 2.WizardHe lpers.Gene rateFuncti onCall2()} }}}}})},No rth52.Wiza rdFunction s.SinglePr ocessExten ded=functi on(e,t,i,n ){$(e).alp aca({schem a:{title:t ,descripti on:North52 .WizardHel pers.GetWi zardHelp(t ),type:"ob ject",prop erties:{dt friendlyna me:{type:" string",ti tle:"Frien dly Name", required:! 1},dthelpe r:{title:" Type",type :"string", default:"C alculation s",require d:!1,enum: ["Calculat ions","Act ions"]},wo rkflowname :{title:"N ame",type: "string",r equired:!1 },workflow namelookup :{title:"& nbsp;",typ e:"array", uniqueItem s:!0,items :{type:"st ring"}},st agename:{t itle:"Stag e Name",ty pe:"string ",required :!1},stage namelookup :{title:"& nbsp;",typ e:"array", uniqueItem s:!0,items :{type:"st ring"}}}}, postRender :function( e){North52 .WizardHel pers.Decis ionTableHi deHelperFi elds(e),e. childrenBy PropertyId .workflown amelookup. getFieldEl ()[0].chil dNodes[4]. childNodes [0].classN ame="multi select dro pdown-togg le btn btn -default g lyphicon g lyphicon-s earch",e.c hildrenByP ropertyId. stagenamel ookup.getF ieldEl()[0 ].childNod es[4].chil dNodes[0]. className= "multisele ct dropdow n-toggle b tn btn-def ault glyph icon glyph icon-searc h",North52 .WizardHel pers.Field Subscribe( "workflown ame","work flownamelo okup",e,!1 ),North52. WizardHelp ers.FieldS ubscribe(" stagename" ,"stagenam elookup",e ,!1),e.for m.getButto nEl("submi t").css("m argin-righ t","300px" );var t=St ring(e.chi ldrenByPro pertyId.wo rkflowname lookup.id) ;$("#"+Str ing(t)).mu ltiselect( "dataprovi der",North 52.WizardH elpers.Fin dProcesses (i,n))},vi ew:{parent :"bootstra p-edit",la yout:{temp late:North 52.WizardF unctions.T emplate,bi ndings:{dt friendlyna me:"#left" ,dthelper: "#right",w orkflownam e:"#left", workflowna melookup:" #right",st agename:"# left",stag enamelooku p:"#right" }}},option s:{fields: {dthelper: {type:"sel ect",hideN one:!0},wo rkflowname :{events:{ focus:func tion(){win dow.n52cur rentwizard control=th is}}},stag ename:{eve nts:{focus :function( ){window.n 52currentw izardcontr ol=this}}} ,workflown amelookup: {hideInitV alidationE rror:!0,so rt:!1,size :1,multise lect:{enab leFilterin g:!0,onCha nge:functi on(e,t,i){ North52.Wi zardHelper s.SingleOn ly(e,t,thi s.$select) },includeS electAllOp tion:!1,en ableCaseIn sensitiveF iltering:! 0,filterBe havior:"bo th",maxHei ght:250,bu ttonWidth: "40px",but tonText:fu nction(e,t ){return"" },onDropdo wnShown:fu nction(e){ North52.Wi zardHelper s.SetFocus Lookup(thi s)}},type: "select",e vents:{cha nge:functi on(){North 52.WizardH elpers.OnC hangeBPF(t his.getVal ue(),"stag enamelooku p")}}},sta genamelook up:{hideIn itValidati onError:!0 ,sort:!1,s ize:1,mult iselect:{e nableFilte ring:!0,on Change:fun ction(e,t, i){North52 .WizardHel pers.Singl eOnly(e,t, this.$sele ct)},inclu deSelectAl lOption:!1 ,enableCas eInsensiti veFilterin g:!0,filte rBehavior: "both",max Height:250 ,buttonWid th:"40px", buttonText :function( e,t){retur n""},onDro pdownShown :function( e){North52 .WizardHel pers.SetFo cusLookup( this)}},ty pe:"select ",events:{ change:fun ction(){}} }},form:{b uttons:{su bmit:{titl e:"Generat e",styles: "btn btn-p rimary",cl ick:functi on(){North 52.WizardH elpers.Gen erateFunct ionCall2() }}}}}})},N orth52.Wiz ardFunctio ns.AlertCl ear=functi on(e){$(e) .alpaca({s chema:{tit le:"AlertC lear",desc ription:No rth52.Wiza rdHelpers. GetWizardH elp("Alert Clear"),ty pe:"object ",properti es:{dtfrie ndlyname:{ type:"stri ng",title: "Friendly  Name",requ ired:!1},d thelper:{t itle:"Type ",type:"st ring",defa ult:"Calcu lations",r equired:!1 ,enum:["Ca lculations ","Actions "]},messag e:{type:"s tring",tit le:"Messag e",require d:!1},mess agelookupd onoting:{t itle:"&nbs p;",type:" array",uni queItems:! 0,items:{t ype:"strin g"}},recor did:{title :"Control  ID",type:" string",re quired:!1} ,recordidl ookup:{tit le:"&nbsp; ",type:"ar ray",uniqu eItems:!0, items:{typ e:"string" }}}},postR ender:func tion(e){No rth52.Wiza rdHelpers. DecisionTa bleHideHel perFields( e),SDK.Met adata.Retr ieveEntity (15,Source Entity.Cur rentEntity ,null,!1,f unction(e) {North52.W izardHelpe rs.success RetrieveAt tributesPi cklist(e,n ull,"recor didlookup" )},North52 .WizardHel pers.error RetrieveAt tributes), e.children ByProperty Id.recordi dlookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",e.chi ldrenByPro pertyId.me ssagelooku pdonoting. getFieldEl ()[0].chil dNodes[4]. childNodes [0].classN ame="multi select dro pdown-togg le btn btn -default g lyphicon g lyphicon-s earch",Nor th52.Wizar dHelpers.F ieldSubscr ibe("recor did","reco rdidlookup ",e,!1),e. form.getBu ttonEl("su bmit").css ("margin-r ight","300 px")},view :{parent:" bootstrap- edit",layo ut:{templa te:North52 .WizardFun ctions.Tem plate,bind ings:{dtfr iendlyname :"#left",d thelper:"# right",mes sage:"#lef t",message lookupdono ting:"#rig ht",record id:"#left" ,recordidl ookup:"#ri ght"}}},op tions:{fie lds:{dthel per:{type: "select",h ideNone:!0 },recordid :{events:{ focus:func tion(){win dow.n52cur rentwizard control=th is}}},mess agelookupd onoting:{h ideInitVal idationErr or:!0,sort :!1,size:1 ,type:"sel ect",multi select:{en ableFilter ing:!0,onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)},includ eSelectAll Option:!1, enableCase Insensitiv eFiltering :!0,filter Behavior:" both",maxH eight:250, buttonWidt h:"40px",o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,buttonTex
  12   t:function (e,t){retu rn""}},eve nts:{chang e:function (){}}},rec ordidlooku p:{hideIni tValidatio nError:!0, sort:!1,si ze:1,type: "select",m ultiselect :{enableFi ltering:!0 ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)},in cludeSelec tAllOption :!1,enable CaseInsens itiveFilte ring:!0,fi lterBehavi or:"both", maxHeight: 250,button Width:"40p x",onDropd ownShown:f unction(e) {North52.W izardHelpe rs.SetFocu sLookup(th is)},butto nText:func tion(e,t){ return""}} ,events:{c hange:func tion(){}}} },form:{bu ttons:{sub mit:{title :"Generate ",styles:" btn btn-pr imary",cli ck:functio n(){North5 2.WizardHe lpers.Gene rateFuncti onCall2()} }}}}})},No rth52.Wiza rdFunction s.RemovePr eFilterLoo kup=functi on(e){$(e) .alpaca({s chema:{tit le:"Remove PreFilterL ookup",des cription:N orth52.Wiz ardHelpers .GetWizard Help("Remo vePreFilte rLookup"), type:"obje ct",proper ties:{dtfr iendlyname :{type:"st ring",titl e:"Friendl y Name",re quired:!1} ,dthelper: {title:"Ty pe",type:" string",de fault:"Cal culations" ,required: !1,enum:[" Calculatio ns","Actio ns"]},reco rdid:{titl e:"Control  ID",type: "string",r equired:!1 },recordid lookup:{ti tle:"&nbsp ;",type:"a rray",uniq ueItems:!0 ,items:{ty pe:"string "}}}},post Render:fun ction(e){N orth52.Wiz ardHelpers .DecisionT ableHideHe lperFields (e),SDK.Me tadata.Ret rieveEntit y(15,Sourc eEntity.Cu rrentEntit y,null,!1, function(e ){North52. WizardHelp ers.succes sRetrieveA ttributesP icklist(e, null,"reco rdidlookup ")},North5 2.WizardHe lpers.erro rRetrieveA ttributes) ,e.childre nByPropert yId.record idlookup.g etFieldEl( )[0].child Nodes[4].c hildNodes[ 0].classNa me="multis elect drop down-toggl e btn btn- default gl yphicon gl yphicon-se arch",Nort h52.Wizard Helpers.Fi eldSubscri be("record id","recor didlookup" ,e,!1),e.f orm.getBut tonEl("sub mit").css( "margin-ri ght","300p x")},view: {parent:"b ootstrap-e dit",layou t:{templat e:North52. WizardFunc tions.Temp late,bindi ngs:{dtfri endlyname: "#left",dt helper:"#r ight",reco rdid:"#lef t",recordi dlookup:"# right"}}}, options:{f ields:{dth elper:{typ e:"select" ,hideNone: !0},record id:{events :{focus:fu nction(){w indow.n52c urrentwiza rdcontrol= this}}},re cordidlook up:{hideIn itValidati onError:!0 ,sort:!1,s ize:1,type :"select", multiselec t:{enableF iltering:! 0,onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)},i ncludeSele ctAllOptio n:!1,enabl eCaseInsen sitiveFilt ering:!0,f ilterBehav ior:"both" ,maxHeight :250,butto nWidth:"40 px",onDrop downShown: function(e ){North52. WizardHelp ers.SetFoc usLookup(t his)},butt onText:fun ction(e,t) {return""} },events:{ change:fun ction(){}} }},form:{b uttons:{su bmit:{titl e:"Generat e",styles: "btn btn-p rimary",cl ick:functi on(){North 52.WizardH elpers.Gen erateFunct ionCall2() }}}}}})},N orth52.Wiz ardFunctio ns.NNEntit ies=functi on(e,t){$( e).alpaca( {schema:{t itle:t,des cription:N orth52.Wiz ardHelpers .GetWizard Help(t),ty pe:"object ",properti es:{dtfrie ndlyname:{ type:"stri ng",title: "Friendly  Name",requ ired:!1},d thelper:{t itle:"Type ",type:"st ring",defa ult:"Calcu lations",r equired:!1 ,enum:["Ca lculations ","Actions "]},entity nameleft:{ title:"Ent ity Name L eft",type: "string",r equired:!1 },entityna meleftlook up:{title: "&nbsp;",t ype:"array ",uniqueIt ems:!0,ite ms:{type:" string"}}, recordidle ft:{title: "Record ID  Left",typ e:"string" ,required: !1},record idleftlook up:{title: "&nbsp;",t ype:"array ",uniqueIt ems:!0,ite ms:{type:" string"}}, entityname right:{tit le:"Entity  Name Righ t",type:"s tring",req uired:!1}, entityname rightlooku p:{title:" &nbsp;",ty pe:"array" ,uniqueIte ms:!0,item s:{type:"s tring"}},r ecordidrig ht:{title: "Record ID  Right",ty pe:"string ",required :!1},recor didrightlo okup:{titl e:"&nbsp;" ,type:"arr ay",unique Items:!0,i tems:{type :"string"} },childrec ords:{titl e:"Relatio nship Name ",type:"st ring",requ ired:!1},c hildrecord slookup:{t itle:"&nbs p;",type:" array",uni queItems:! 0}}},postR ender:func tion(e){No rth52.Wiza rdHelpers. DecisionTa bleHideHel perFields( e),SDK.Met adata.Retr ieveEntity (15,Source Entity.Cur rentEntity ,null,!1,f unction(e) {North52.W izardHelpe rs.success RetrieveAt tributesPi cklist(e,[ "Lookup"," Uniqueiden tifier"]," recordidle ftlookup") },North52. WizardHelp ers.errorR etrieveAtt ributes),S DK.Metadat a.Retrieve Entity(15, SourceEnti ty.Current Entity,nul l,!1,funct ion(e){Nor th52.Wizar dHelpers.s uccessRetr ieveAttrib utesPickli st(e,["Loo kup","Uniq ueidentifi er"],"reco rdidrightl ookup")},N orth52.Wiz ardHelpers .errorRetr ieveAttrib utes),e.ch ildrenByPr opertyId.e ntitynamel eftlookup. getFieldEl ()[0].chil dNodes[4]. childNodes [0].classN ame="multi select dro pdown-togg le btn btn -default g lyphicon g lyphicon-s earch",e.c hildrenByP ropertyId. recordidle ftlookup.g etFieldEl( )[0].child Nodes[4].c hildNodes[ 0].classNa me="multis elect drop down-toggl e btn btn- default gl yphicon gl yphicon-se arch",e.ch ildrenByPr opertyId.e ntitynamer ightlookup .getFieldE l()[0].chi ldNodes[4] .childNode s[0].class Name="mult iselect dr opdown-tog gle btn bt n-default  glyphicon  glyphicon- search",e. childrenBy PropertyId .recordidr ightlookup .getFieldE l()[0].chi ldNodes[4] .childNode s[0].class Name="mult iselect dr opdown-tog gle btn bt n-default  glyphicon  glyphicon- search",e. childrenBy PropertyId .childreco rdslookup. getFieldEl ()[0].chil dNodes[4]. childNodes [0].classN ame="multi select dro pdown-togg le btn btn -default g lyphicon g lyphicon-s earch",Nor th52.Wizar dHelpers.F ieldSubscr ibe("entit
  13   ynameleft" ,"entityna meleftlook up",e,!1), North52.Wi zardHelper s.FieldSub scribe("re cordidleft ","recordi dleftlooku p",e,!0,"e ntitynamel eft"),Nort h52.Wizard Helpers.Fi eldSubscri be("entity nameright" ,"entityna merightloo kup",e,!1) ,North52.W izardHelpe rs.FieldSu bscribe("r ecordidrig ht","recor didrightlo okup",e,!0 ,"entityna meright"), North52.Wi zardHelper s.FieldSub scribe("ch ildrecords ","childre cordslooku p",e,!1),e .form.getB uttonEl("s ubmit").cs s("margin- right","30 0px");t=St ring(e.chi ldrenByPro pertyId.en titynamele ftlookup.i d);$("#"+S tring(t)). multiselec t("datapro vider",Sou rceEntity. Entities); var t=Stri ng(e.child renByPrope rtyId.enti tynamerigh tlookup.id );$("#"+St ring(t)).m ultiselect ("dataprov ider",Sour ceEntity.E ntities)}, view:{pare nt:"bootst rap-edit", layout:{te mplate:Nor th52.Wizar dFunctions .Template, bindings:{ dtfriendly name:"#lef t",dthelpe r:"#right" ,entitynam eleft:"#le ft",entity nameleftlo okup:"#rig ht",record idleft:"#l eft",recor didleftloo kup:"#righ t",entityn ameright:" #left",ent itynamerig htlookup:" #right",re cordidrigh t:"#left", recordidri ghtlookup: "#right",c hildrecord s:"#left", childrecor dslookup:" #right"}}} ,options:{ fields:{dt helper:{ty pe:"select ",hideNone :!0},entit ynameleft: {events:{f ocus:funct ion(){wind ow.n52curr entwizardc ontrol=thi s}}},recor didleft:{e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }},entityn ameright:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}},record idright:{e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }},childre cords:{eve nts:{focus :function( ){window.n 52currentw izardcontr ol=this}}} ,entitynam eleftlooku p:{hideIni tValidatio nError:!0, sort:!1,si ze:1,multi select:{en ableFilter ing:!0,onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)},includ eSelectAll Option:!1, enableCase Insensitiv eFiltering :!0,filter Behavior:" both",maxH eight:300, buttonWidt h:"40px",o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,buttonTex t:function (e,t){retu rn""}},typ e:"select" ,events:{c hange:func tion(){nul l!=this.ge tValue()&& (String(th is.getValu e()).index Of(",")>-1 ||(SDK.Met adata.Retr ieveEntity (15,String (this.getV alue()),nu ll,!1,func tion(e){No rth52.Wiza rdHelpers. successRet rieveAttri butesPopul ateNN(e,"c hildrecord slookup"," M:M")},Nor th52.Wizar dHelpers.e rrorRetrie veAttribut es),North5 2.WizardHe lpers.OnCh angeEntity (String(th is.getValu e()),["Loo kup","Uniq ueidentifi er"],"reco rdidleftlo okup")))}} },recordid leftlookup :{hideInit Validation Error:!0,s ort:!1,siz e:1,type:" select",mu ltiselect: {enableFil tering:!0, onChange:f unction(e, t,i){North 52.WizardH elpers.Sin gleOnly(e, t,this.$se lect)},inc ludeSelect AllOption: !1,enableC aseInsensi tiveFilter ing:!0,fil terBehavio r:"both",m axHeight:3 00,buttonW idth:"40px ",onDropdo wnShown:fu nction(e){ North52.Wi zardHelper s.SetFocus Lookup(thi s)},button Text:funct ion(e,t){r eturn""}}, events:{ch ange:funct ion(){}}}, entityname rightlooku p:{hideIni tValidatio nError:!0, sort:!1,si ze:1,multi select:{en ableFilter ing:!0,onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)},includ eSelectAll Option:!1, enableCase Insensitiv eFiltering :!0,filter Behavior:" both",maxH eight:250, buttonWidt h:"40px",b uttonText: function(e ,t){return ""},onDrop downShown: function(e ){North52. WizardHelp ers.SetFoc usLookup(t his)},onCh ange:funct ion(e,t,i) {North52.W izardHelpe rs.SingleO nly(e,t,th is.$select )}},type:" select",ev ents:{chan ge:functio n(){North5 2.WizardHe lpers.OnCh angeEntity (this.getV alue(),["L ookup","Un iqueidenti fier"],"re cordidrigh tlookup")} }},recordi drightlook up:{hideIn itValidati onError:!0 ,sort:!1,s ize:1,type :"select", multiselec t:{enableF iltering:! 0,onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)},i ncludeSele ctAllOptio n:!1,enabl eCaseInsen sitiveFilt ering:!0,f ilterBehav ior:"both" ,maxHeight :250,butto nWidth:"40 px",onDrop downShown: function(e ){North52. WizardHelp ers.SetFoc usLookup(t his)},butt onText:fun ction(e,t) {return""} },events:{ change:fun ction(){}} },childrec ordslookup :{type:"se lect",sort :!1,multis elect:{ena bleFilteri ng:!0,incl udeSelectA llOption:! 1,enableCa seInsensit iveFilteri ng:!0,filt erBehavior :"both",bu ttonWidth: "40px",but tonText:fu nction(e,t ){return"" },onDropdo wnShown:fu nction(e){ North52.Wi zardHelper s.SetFocus Lookup(thi s)},maxHei ght:200}}} ,form:{but tons:{subm it:{title: "Generate" ,styles:"b tn btn-pri mary",clic k:function (){North52 .WizardHel pers.Gener ateFunctio nCall2()}} }}}})},Nor th52.Wizar dFunctions .FindRecor dsFD=funct ion(e,t){v ar i=[];i. push({name :"setparam s",value:" SetParams" }),$(e).al paca({data :{defaultv alue:"?",d thelper:"C alculation s",nolock: "true"},sc hema:{titl e:"FindRec ordsFD",de scription: North52.Wi zardHelper s.GetWizar dHelp("Fin dRecordsFD "),type:"o bject",pro perties:{d tfriendlyn ame:{type: "string",t itle:"Frie ndly Name" ,required: !1},dthelp er:{title: "Type",typ e:"string" ,default:" Calculatio ns",requir ed:!1,enum :["Calcula tions","Ac tions"]},e ntityname: {title:"Fo rmula Deta il (Query) ",type:"st ring",requ ired:!1},e ntitynamel ookup:{tit le:"&nbsp; ",type:"ar ray",uniqu eItems:!0, items:{typ e:"string" }},nolock: {title:"No -Lock",typ e:"string" ,default:" true",requ ired:!1,en um:["true" ,"false"]} ,setparams :{title:"P arameters" ,type:"str ing",requi red:!1}}}, postRender :function( e){North52
  14   .WizardHel pers.Decis ionTableHi deHelperFi elds(e),e. childrenBy PropertyId .entitynam elookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",North 52.WizardH elpers.Fie ldSubscrib e("entityn ame","enti tynamelook up",e,!1), e.form.get ButtonEl(" submit").c ss("margin -right","3 00px");var  t=String( e.children ByProperty Id.entityn amelookup. id);$("#"+ String(t)) .multisele ct("datapr ovider",No rth52.Wiza rdHelpers. FindFormul aDetails() )},view:{p arent:"boo tstrap-edi t",layout: {template: North52.Wi zardFuncti ons.Templa te,binding s:{dtfrien dlyname:"# left",dthe lper:"#rig ht",entity name:"#lef t",entityn amelookup: "#right",n olock:"#le ft",setpar ams:"#left "}}},optio ns:{fields :{dthelper :{type:"se lect",hide None:!0},e ntityname: {events:{f ocus:funct ion(){wind ow.n52curr entwizardc ontrol=thi s}}},setpa rams:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, entityname lookup:{hi deInitVali dationErro r:!0,sort: !1,size:1, multiselec t:{enableF iltering:! 0,includeS electAllOp tion:!1,en ableCaseIn sensitiveF iltering:! 0,filterBe havior:"bo th",maxHei ght:250,bu ttonWidth: "40px",but tonText:fu nction(e,t ){return"" },onDropdo wnShown:fu nction(e){ North52.Wi zardHelper s.SetFocus Lookup(thi s)},onChan ge:functio n(e,t,i){N orth52.Wiz ardHelpers .SingleOnl y(e,t,this .$select)} },type:"se lect",even ts:{change :function( ){}}},nolo ck:{type:" select",hi deNone:!0} },form:{bu ttons:{sub mit:{title :"Generate ",styles:" btn btn-pr imary",id: "generateF indValue", click:func tion(){Nor th52.Wizar dHelpers.G enerateFun ctionCall1 (i)}}}}}}) },North52. WizardFunc tions.Find RecordsAud it=functio n(e){$(e). alpaca({sc hema:{titl e:"FindRec ordsAudit" ,descripti on:North52 .WizardHel pers.GetWi zardHelp(" FindRecord sAudit"),t ype:"objec t",propert ies:{dtfri endlyname: {type:"str ing",title :"Friendly  Name",req uired:!1}, dthelper:{ title:"Typ e",type:"s tring",def ault:"Calc ulations", required:! 1,enum:["C alculation s","Action s"]},entit yname:{tit le:"Entity  Name",typ e:"string" ,required: !1},entity namelookup :{title:"& nbsp;",typ e:"array", uniqueItem s:!0,items :{type:"st ring"}},re cordid:{ti tle:"Recor d ID",type :"string", required:! 1},recordi dlookup:{t itle:"&nbs p;",type:" array",uni queItems:! 0,items:{t ype:"strin g"}},lastn umberofday s:{title:" Last Numbe r Of Days" ,type:"int eger",requ ired:!1},n umberofedi ts:{title: "Number Of  Edits",ty pe:"intege r",require d:!1},form attedvalue s:{title:" Formatted  Values",ty pe:"string ",default: "true",req uired:!1,e num:["true ","false"] }}},postRe nder:funct ion(e){Nor th52.Wizar dHelpers.D ecisionTab leHideHelp erFields(e ),SDK.Meta data.Retri eveEntity( 15,SourceE ntity.Curr entEntity, null,!1,fu nction(e){ North52.Wi zardHelper s.successR etrieveAtt ributesPic klist(e,[" Lookup","U niqueident ifier"],"r ecordidloo kup")},Nor th52.Wizar dHelpers.e rrorRetrie veAttribut es),e.chil drenByProp ertyId.ent itynameloo kup.getFie ldEl()[0]. childNodes [4].childN odes[0].cl assName="m ultiselect  dropdown- toggle btn  btn-defau lt glyphic on glyphic on-search" ,e.childre nByPropert yId.record idlookup.g etFieldEl( )[0].child Nodes[4].c hildNodes[ 0].classNa me="multis elect drop down-toggl e btn btn- default gl yphicon gl yphicon-se arch",Nort h52.Wizard Helpers.Fi eldSubscri be("entity name","ent itynameloo kup",e,!1) ,North52.W izardHelpe rs.FieldSu bscribe("r ecordid"," recordidlo okup",e,!0 ,"entityna me"),e.for m.getButto nEl("submi t").css("m argin-righ t","300px" );var t=St ring(e.chi ldrenByPro pertyId.en titynamelo okup.id);$ ("#"+Strin g(t)).mult iselect("d ataprovide r",SourceE ntity.Enti ties)},vie w:{parent: "bootstrap -edit",lay out:{templ ate:North5 2.WizardFu nctions.Te mplate,bin dings:{dtf riendlynam e:"#left", dthelper:" #right",en tityname:" #left",ent itynameloo kup:"#righ t",recordi d:"#left", recordidlo okup:"#rig ht",lastnu mberofdays :"#left",n umberofedi ts:"#left" ,formatted values:"#l eft"}}},op tions:{fie lds:{dthel per:{type: "select",h ideNone:!0 },entityna me:{events :{focus:fu nction(){w indow.n52c urrentwiza rdcontrol= this}}},re cordid:{ev ents:{focu s:function (){window. n52current wizardcont rol=this}} },entityna melookup:{ hideInitVa lidationEr ror:!0,sor t:!1,size: 1,multisel ect:{enabl eFiltering :!0,onChan ge:functio n(e,t,i){N orth52.Wiz ardHelpers .SingleOnl y(e,t,this .$select)} ,includeSe lectAllOpt ion:!1,ena bleCaseIns ensitiveFi ltering:!0 ,filterBeh avior:"bot h",maxHeig ht:250,but tonWidth:" 40px",butt onText:fun ction(e,t) {return""} ,onDropdow nShown:fun ction(e){N orth52.Wiz ardHelpers .SetFocusL ookup(this )},onChang e:function (e,t,i){No rth52.Wiza rdHelpers. SingleOnly (e,t,this. $select)}} ,type:"sel ect",event s:{change: function() {North52.W izardHelpe rs.OnChang eEntity(th is.getValu e(),["Look up","Uniqu eidentifie r"],"recor didlookup" )}}},recor didlookup: {hideInitV alidationE rror:!0,so rt:!1,size :1,type:"s elect",mul tiselect:{ enableFilt ering:!0,o nChange:fu nction(e,t ,i){North5 2.WizardHe lpers.Sing leOnly(e,t ,this.$sel ect)},incl udeSelectA llOption:! 1,enableCa seInsensit iveFilteri ng:!0,filt erBehavior :"both",ma xHeight:25 0,buttonWi dth:"40px" ,onDropdow nShown:fun ction(e){N orth52.Wiz ardHelpers .SetFocusL ookup(this )},buttonT ext:functi on(e,t){re turn""}},e vents:{cha nge:functi on(){}}},f ormattedva lues:{type :"select", hideNone:! 0}},form:{ buttons:{s ubmit:{tit le:"Genera te",styles :"btn btn- primary",c lick:funct ion(){Nort h52.Wizard Helpers.Ge nerateFunc
  15   tionCall2( )}}}}}})}, North52.Wi zardFuncti ons.xCache GetGlobal= function(e ){$(e).alp aca({schem a:{title:" xCacheGetG lobal",des cription:N orth52.Wiz ardHelpers .GetWizard Help("xCac heGetGloba l"),type:" object",pr operties:{ dtfriendly name:{type :"string", title:"Fri endly Name ",required :!1},dthel per:{title :"Type",ty pe:"string ",default: "Calculati ons",requi red:!1,enu m:["Calcul ations","A ctions"]}, keyname:{t itle:"Key  Name",type :"string", required:! 1},keyname lookup:{ti tle:"&nbsp ;",type:"a rray",uniq ueItems:!0 ,items:{ty pe:"string "}},defaul tvalue:{ty pe:"string ",title:"D efault Val ue",requir ed:!1}}},p ostRender: function(e ){North52. WizardHelp ers.Decisi onTableHid eHelperFie lds(e),e.c hildrenByP ropertyId. keynameloo kup.getFie ldEl()[0]. childNodes [4].childN odes[0].cl assName="m ultiselect  dropdown- toggle btn  btn-defau lt glyphic on glyphic on-search" ,North52.W izardHelpe rs.FieldSu bscribe("k eyname","k eynamelook up",e,!1), e.form.get ButtonEl(" submit").c ss("margin -right","3 00px");var  t=String( e.children ByProperty Id.keyname lookup.id) ;$("#"+Str ing(t)).mu ltiselect( "dataprovi der",North 52.WizardH elpers.Fin dXcache()) },view:{pa rent:"boot strap-edit ",layout:{ template:N orth52.Wiz ardFunctio ns.Templat e,bindings :{dtfriend lyname:"#l eft",dthel per:"#righ t",keyname :"#left",k eynamelook up:"#right ",defaultv alue:"#lef t"}}},opti ons:{field s:{dthelpe r:{type:"s elect",hid eNone:!0}, keyname:{e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }},keyname lookup:{hi deInitVali dationErro r:!0,sort: !1,size:1, multiselec t:{enableF iltering:! 0,onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)},i ncludeSele ctAllOptio n:!1,enabl eCaseInsen sitiveFilt ering:!0,f ilterBehav ior:"both" ,maxHeight :250,butto nWidth:"40 px",button Text:funct ion(e,t){r eturn""},o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)}},t ype:"selec t",events: {change:fu nction(){} }}},form:{ buttons:{s ubmit:{tit le:"Genera te",styles :"btn btn- primary",c lick:funct ion(){Nort h52.Wizard Helpers.Ge nerateFunc tionCall2( )}}}}}})}, North52.Wi zardFuncti ons.Execut eWorkflow= function(e ){$(e).alp aca({schem a:{title:" ExecuteWor kflow",des cription:N orth52.Wiz ardHelpers .GetWizard Help("Exec uteWorkflo w"),type:" object",pr operties:{ dtfriendly name:{type :"string", title:"Fri endly Name ",required :!1},dthel per:{title :"Type",ty pe:"string ",default: "Calculati ons",requi red:!1,enu m:["Calcul ations","A ctions"]}, workflowna me:{title: "Workflow  Name",type :"string", required:! 1},workflo wnamelooku p:{title:" &nbsp;",ty pe:"array" ,uniqueIte ms:!0,item s:{type:"s tring"}},r ecordid:{t itle:"Reco rd ID",typ e:"string" ,required: !1},record idlookup:{ title:"&nb sp;",type: "array",un iqueItems: !0,items:{ type:"stri ng"}}}},po stRender:f unction(e) {North52.W izardHelpe rs.Decisio nTableHide HelperFiel ds(e),SDK. Metadata.R etrieveEnt ity(15,Sou rceEntity. CurrentEnt ity,null,! 1,function (e){North5 2.WizardHe lpers.succ essRetriev eAttribute sPicklist( e,["Lookup ","Uniquei dentifier" ],"recordi dlookup")} ,North52.W izardHelpe rs.errorRe trieveAttr ibutes),e. childrenBy PropertyId .workflown amelookup. getFieldEl ()[0].chil dNodes[4]. childNodes [0].classN ame="multi select dro pdown-togg le btn btn -default g lyphicon g lyphicon-s earch",e.c hildrenByP ropertyId. recordidlo okup.getFi eldEl()[0] .childNode s[4].child Nodes[0].c lassName=" multiselec t dropdown -toggle bt n btn-defa ult glyphi con glyphi con-search ",North52. WizardHelp ers.FieldS ubscribe(" workflowna me","workf lownameloo kup",e,!1) ,North52.W izardHelpe rs.FieldSu bscribe("r ecordid"," recordidlo okup",e,!0 ),e.form.g etButtonEl ("submit") .css("marg in-right", "300px");v ar t=Strin g(e.childr enByProper tyId.workf lownameloo kup.id);$( "#"+String (t)).multi select("da taprovider ",North52. WizardHelp ers.FindPr ocesses("W orkflows", 0))},view: {parent:"b ootstrap-e dit",layou t:{templat e:North52. WizardFunc tions.Temp late,bindi ngs:{dtfri endlyname: "#left",dt helper:"#r ight",work flowname:" #left",wor kflownamel ookup:"#ri ght",recor did:"#left ",recordid lookup:"#r ight"}}},o ptions:{fi elds:{dthe lper:{type :"select", hideNone:! 0},workflo wname:{eve nts:{focus :function( ){window.n 52currentw izardcontr ol=this}}} ,recordid: {events:{f ocus:funct ion(){wind ow.n52curr entwizardc ontrol=thi s}}},workf lownameloo kup:{hideI nitValidat ionError:! 0,sort:!1, size:1,mul tiselect:{ enableFilt ering:!0,o nChange:fu nction(e,t ,i){North5 2.WizardHe lpers.Sing leOnly(e,t ,this.$sel ect)},incl udeSelectA llOption:! 1,enableCa seInsensit iveFilteri ng:!0,filt erBehavior :"both",ma xHeight:25 0,buttonWi dth:"40px" ,buttonTex t:function (e,t){retu rn""},onDr opdownShow n:function (e){North5 2.WizardHe lpers.SetF ocusLookup (this)},on Change:fun ction(e,t, i){North52 .WizardHel pers.Singl eOnly(e,t, this.$sele ct)}},type :"select", events:{ch ange:funct ion(){}}}, recordidlo okup:{hide InitValida tionError: !0,sort:!1 ,size:1,ty pe:"select ",multisel ect:{enabl eFiltering :!0,onChan ge:functio n(e,t,i){N orth52.Wiz ardHelpers .SingleOnl y(e,t,this .$select)} ,includeSe lectAllOpt ion:!1,ena bleCaseIns ensitiveFi ltering:!0 ,filterBeh avior:"bot h",maxHeig ht:250,but tonWidth:" 40px",onDr opdownShow n:function (e){North5 2.WizardHe lpers.SetF ocusLookup (this)},bu ttonText:f unction(e, t){return" "}},events :{change:f unction(){ }}}},form: {buttons:{ submit:{ti tle:"Gener
  16   ate",style s:"btn btn -primary", click:func tion(){Nor th52.Wizar dHelpers.G enerateFun ctionCall2 ()}}}}}})} ,North52.W izardFunct ions.GetNe xtWorkingT ime=functi on(e){$(e) .alpaca({s chema:{typ e:"object" ,title:"Ge tNextWorki ngTime",de scription: North52.Wi zardHelper s.GetWizar dHelp("Get NextWorkin gTime"),pr operties:{ dtfriendly name:{type :"string", title:"Fri endly Name "},dthelpe r:{title:" Type",type :"string", default:"C alculation s",require d:!1,enum: ["Calculat ions","Act ions"]},st artdate:{t ype:"strin g",title:" Start Date "},startda telookup:{ type:"arra y",title:" &nbsp;",un iqueItems: !0,items:{ type:"stri ng"}},useb usinesscal endar:{tit le:"Busine ss Calenda r",default :"true",en um:["true" ,"false"]} ,daystartt ime:{title :"Day Star t Time"},d ayendtime: {title:"Da y End Time "},numberm inutes:{ti tle:"Numbe r Of Minut es"}}},pos tRender:fu nction(e){ North52.Wi zardHelper s.Decision TableHideH elperField s(e),SDK.M etadata.Re trieveEnti ty(15,Sour ceEntity.C urrentEnti ty,null,!1 ,function( e){North52 .WizardHel pers.succe ssRetrieve Attributes Picklist(e ,["DateTim e"],"start datelookup ")},North5 2.WizardHe lpers.erro rRetrieveA ttributes) ,e.childre nByPropert yId.startd atelookup. getFieldEl ()[0].chil dNodes[4]. childNodes [0].classN ame="multi select dro pdown-togg le btn btn -default g lyphicon g lyphicon-s earch",e.f orm.getBut tonEl("sub mit").css( "margin-ri ght","300p x"),North5 2.WizardHe lpers.Fiel dSubscribe ("startdat e","startd atelookup" ,e,!0)},vi ew:{parent :"bootstra p-edit",la yout:{temp late:North 52.WizardF unctions.T emplate,bi ndings:{dt friendlyna me:"#left" ,dthelper: "#right",s tartdate:" #left",sta rtdatelook up:"#right ",usebusin esscalenda r:"#left", daystartti me:"#left" ,dayendtim e:"#left", numberminu tes:"#left "}}},optio ns:{fields :{startdat e:{events: {focus:fun ction(){wi ndow.n52cu rrentwizar dcontrol=t his}}},sta rtdatelook up:{hideIn itValidati onError:!0 ,sort:!1,s ize:1,type :"select", multiselec t:{enableF iltering:! 0,onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)},i ncludeSele ctAllOptio n:!1,enabl eCaseInsen sitiveFilt ering:!0,f ilterBehav ior:"both" ,maxHeight :250,butto nWidth:"40 px",onDrop downShown: function(e ){North52. WizardHelp ers.SetFoc usLookup(t his)},butt onText:fun ction(e,t) {return""} }},dthelpe r:{type:"s elect",hid eNone:!0}, usebusines scalendar: {type:"sel ect",hideN one:!0}},f orm:{butto ns:{submit :{title:"G enerate",s tyles:"btn  btn-prima ry",click: function() {setTimeou t(function (){North52 .WizardHel pers.Gener ateFunctio nCall2()}, 500)}}}}}} )},North52 .WizardFun ctions.Get Difference WorkingTim e=function (e){$(e).a lpaca({sch ema:{type: "object",t itle:"GetD ifferenceW orkingTime ",descript ion:North5 2.WizardHe lpers.GetW izardHelp( "GetDiffer enceWorkin gTime"),pr operties:{ dtfriendly name:{type :"string", title:"Fri endly Name "},dthelpe r:{title:" Type",type :"string", default:"C alculation s",require d:!1,enum: ["Calculat ions","Act ions"]},st artdate:{t ype:"strin g",title:" Start Date "},startda telookup:{ type:"arra y",title:" &nbsp;",un iqueItems: !0,items:{ type:"stri ng"}},endd ate:{type: "string",t itle:"End  Date"},end datelookup :{type:"ar ray",title :"&nbsp;", uniqueItem s:!0,items :{type:"st ring"}},us ebusinessc alendar:{t itle:"Busi ness Calen dar",defau lt:"true", enum:["tru e","false" ]},daystar ttime:{tit le:"Day St art Time"} ,dayendtim e:{title:" Day End Ti me"},inter val:{enum: ["d","h"," m","s"],de fault:"h", title:"Int erval"}}}, postRender :function( e){North52 .WizardHel pers.Decis ionTableHi deHelperFi elds(e),SD K.Metadata .RetrieveE ntity(15,S ourceEntit y.CurrentE ntity,null ,!1,functi on(e){Nort h52.Wizard Helpers.su ccessRetri eveAttribu tesPicklis t(e,["Date Time"],"st artdateloo kup")},Nor th52.Wizar dHelpers.e rrorRetrie veAttribut es),SDK.Me tadata.Ret rieveEntit y(15,Sourc eEntity.Cu rrentEntit y,null,!1, function(e ){North52. WizardHelp ers.succes sRetrieveA ttributesP icklist(e, ["DateTime "],"enddat elookup")} ,North52.W izardHelpe rs.errorRe trieveAttr ibutes),e. childrenBy PropertyId .startdate lookup.get FieldEl()[ 0].childNo des[4].chi ldNodes[0] .className ="multisel ect dropdo wn-toggle  btn btn-de fault glyp hicon glyp hicon-sear ch",e.chil drenByProp ertyId.end datelookup .getFieldE l()[0].chi ldNodes[4] .childNode s[0].class Name="mult iselect dr opdown-tog gle btn bt n-default  glyphicon  glyphicon- search",e. form.getBu ttonEl("su bmit").css ("margin-r ight","300 px"),North 52.WizardH elpers.Fie ldSubscrib e("startda te","start datelookup ",e,!0),No rth52.Wiza rdHelpers. FieldSubsc ribe("endd ate","endd atelookup" ,e,!0)},vi ew:{parent :"bootstra p-edit",la yout:{temp late:North 52.WizardF unctions.T emplate,bi ndings:{dt friendlyna me:"#left" ,dthelper: "#right",s tartdate:" #left",sta rtdatelook up:"#right ",enddate: "#left",en ddatelooku p:"#right" ,usebusine sscalendar :"#left",d aystarttim e:"#left", dayendtime :"#left",i nterval:"# left"}}},o ptions:{fi elds:{star tdate:{eve nts:{focus :function( ){window.n 52currentw izardcontr ol=this}}} ,startdate lookup:{hi deInitVali dationErro r:!0,sort: !1,size:1, type:"sele ct",multis elect:{ena bleFilteri ng:!0,onCh ange:funct ion(e,t,i) {North52.W izardHelpe rs.SingleO nly(e,t,th is.$select )},include SelectAllO ption:!1,e nableCaseI nsensitive Filtering: !0,filterB ehavior:"b oth",maxHe ight:250,b uttonWidth :"40px",on DropdownSh own:functi on(e){Nort h52.Wizard Helpers.Se tFocusLook up(this)}, buttonText :function( e,t){retur n""}}},end datelookup :{hideInit Validation Error:!0,s
  17   ort:!1,siz e:1,type:" select",mu ltiselect: {enableFil tering:!0, onChange:f unction(e, t,i){North 52.WizardH elpers.Sin gleOnly(e, t,this.$se lect)},inc ludeSelect AllOption: !1,enableC aseInsensi tiveFilter ing:!0,fil terBehavio r:"both",m axHeight:2 50,buttonW idth:"40px ",onDropdo wnShown:fu nction(e){ North52.Wi zardHelper s.SetFocus Lookup(thi s)},button Text:funct ion(e,t){r eturn""}}} ,dthelper: {type:"sel ect",hideN one:!0},us ebusinessc alendar:{t ype:"selec t",hideNon e:!0},inte rval:{opti onLabels:[ "Days","Ho urs","Minu tes","Seco nds"],hide None:!0}}, form:{butt ons:{submi t:{title:" Generate", styles:"bt n btn-prim ary",click :function( ){setTimeo ut(functio n(){North5 2.WizardHe lpers.Gene rateFuncti onCall2()} ,500)}}}}} })},North5 2.WizardFu nctions.Di ffWorkingD ays=functi on(e){$(e) .alpaca({s chema:{typ e:"object" ,title:"Di ffWorkingD ays",descr iption:Nor th52.Wizar dHelpers.G etWizardHe lp("DiffWo rkingDays" ),properti es:{dtfrie ndlyname:{ type:"stri ng",title: "Friendly  Name"},dth elper:{tit le:"Type", type:"stri ng",defaul t:"Calcula tions",req uired:!1,e num:["Calc ulations", "Actions"] },fromdate :{type:"st ring",titl e:"From Da te"},fromd atelookup: {type:"arr ay",title: "&nbsp;",u niqueItems :!0,items: {type:"str ing"}},tod ate:{type: "string",t itle:"To D ate"},toda telookup:{ type:"arra y",title:" &nbsp;",un iqueItems: !0,items:{ type:"stri ng"}}}},po stRender:f unction(e) {North52.W izardHelpe rs.Decisio nTableHide HelperFiel ds(e),SDK. Metadata.R etrieveEnt ity(15,Sou rceEntity. CurrentEnt ity,null,! 1,function (e){North5 2.WizardHe lpers.succ essRetriev eAttribute sPicklist( e,["DateTi me"],"from datelookup ")},North5 2.WizardHe lpers.erro rRetrieveA ttributes) ,SDK.Metad ata.Retrie veEntity(1 5,SourceEn tity.Curre ntEntity,n ull,!1,fun ction(e){N orth52.Wiz ardHelpers .successRe trieveAttr ibutesPick list(e,["D ateTime"], "todateloo kup")},Nor th52.Wizar dHelpers.e rrorRetrie veAttribut es),e.chil drenByProp ertyId.fro mdatelooku p.getField El()[0].ch ildNodes[4 ].childNod es[0].clas sName="mul tiselect d ropdown-to ggle btn b tn-default  glyphicon  glyphicon -search",e .childrenB yPropertyI d.todatelo okup.getFi eldEl()[0] .childNode s[4].child Nodes[0].c lassName=" multiselec t dropdown -toggle bt n btn-defa ult glyphi con glyphi con-search ",e.form.g etButtonEl ("submit") .css("marg in-right", "300px"),N orth52.Wiz ardHelpers .FieldSubs cribe("tod ate","toda telookup", e,!0),Nort h52.Wizard Helpers.Fi eldSubscri be("fromda te","fromd atelookup" ,e,!0)},vi ew:{parent :"bootstra p-edit",la yout:{temp late:North 52.WizardF unctions.T emplate,bi ndings:{dt friendlyna me:"#left" ,dthelper: "#right",t odate:"#le ft",todate lookup:"#r ight",from date:"#lef t",fromdat elookup:"# right"}}}, options:{f ields:{fro mdate:{eve nts:{focus :function( ){window.n 52currentw izardcontr ol=this}}} ,todate:{e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }},fromdat elookup:{h ideInitVal idationErr or:!0,sort :!1,size:1 ,type:"sel ect",multi select:{en ableFilter ing:!0,onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)},includ eSelectAll Option:!1, enableCase Insensitiv eFiltering :!0,filter Behavior:" both",maxH eight:250, buttonWidt h:"40px",o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,buttonTex t:function (e,t){retu rn""}}},to datelookup :{hideInit Validation Error:!0,s ort:!1,siz e:1,type:" select",mu ltiselect: {enableFil tering:!0, onChange:f unction(e, t,i){North 52.WizardH elpers.Sin gleOnly(e, t,this.$se lect)},inc ludeSelect AllOption: !1,enableC aseInsensi tiveFilter ing:!0,fil terBehavio r:"both",m axHeight:2 50,buttonW idth:"40px ",onDropdo wnShown:fu nction(e){ North52.Wi zardHelper s.SetFocus Lookup(thi s)},button Text:funct ion(e,t){r eturn""}}} ,dthelper: {type:"sel ect",hideN one:!0}},f orm:{butto ns:{submit :{title:"G enerate",s tyles:"btn  btn-prima ry",click: function() {setTimeou t(function (){North52 .WizardHel pers.Gener ateFunctio nCall2()}, 500)}}}}}} )},North52 .WizardFun ctions.Dat eDiffMulti =function( e,t){$(e). alpaca({sc hema:{type :"object", title:t,de scription: North52.Wi zardHelper s.GetWizar dHelp(t),p roperties: {dtfriendl yname:{typ e:"string" ,title:"Fr iendly Nam e"},dthelp er:{title: "Type",typ e:"string" ,default:" Calculatio ns",requir ed:!1,enum :["Calcula tions","Ac tions"]},f romdate:{t ype:"strin g",title:" From Date" },fromdate lookup:{ty pe:"array" ,title:"&n bsp;",uniq ueItems:!0 ,items:{ty pe:"string "}},todate :{type:"st ring",titl e:"To Date "},todatel ookup:{typ e:"array", title:"&nb sp;",uniqu eItems:!0, items:{typ e:"string" }},interva l:{enum:[" y","q","m" ,"w","wd", "d","h","m i","s"],de fault:"y", title:"Int erval"}}}, postRender :function( e){North52 .WizardHel pers.Decis ionTableHi deHelperFi elds(e),SD K.Metadata .RetrieveE ntity(15,S ourceEntit y.CurrentE ntity,null ,!1,functi on(e){Nort h52.Wizard Helpers.su ccessRetri eveAttribu tesPicklis t(e,["Date Time"],"fr omdatelook up")},Nort h52.Wizard Helpers.er rorRetriev eAttribute s),SDK.Met adata.Retr ieveEntity (15,Source Entity.Cur rentEntity ,null,!1,f unction(e) {North52.W izardHelpe rs.success RetrieveAt tributesPi cklist(e,[ "DateTime" ],"todatel ookup")},N orth52.Wiz ardHelpers .errorRetr ieveAttrib utes),e.ch ildrenByPr opertyId.f romdateloo kup.getFie ldEl()[0]. childNodes [4].childN odes[0].cl assName="m ultiselect  dropdown- toggle btn  btn-defau lt glyphic on glyphic on-search" ,e.childre nByPropert yId.todate lookup.get FieldEl()[ 0].childNo des[4].chi ldNodes[0] .className ="multisel ect dropdo
  18   wn-toggle  btn btn-de fault glyp hicon glyp hicon-sear ch",e.form .getButton El("submit ").css("ma rgin-right ","300px") ,North52.W izardHelpe rs.FieldSu bscribe("t odate","to datelookup ",e,!0),No rth52.Wiza rdHelpers. FieldSubsc ribe("from date","fro mdatelooku p",e,!0)}, view:{pare nt:"bootst rap-edit", layout:{te mplate:Nor th52.Wizar dFunctions .Template, bindings:{ dtfriendly name:"#lef t",dthelpe r:"#right" ,todate:"# left",toda telookup:" #right",fr omdate:"#l eft",fromd atelookup: "#right",i nterval:"# left"}}},o ptions:{fi elds:{from date:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, todate:{ev ents:{focu s:function (){window. n52current wizardcont rol=this}} },fromdate lookup:{hi deInitVali dationErro r:!0,sort: !1,size:1, type:"sele ct",multis elect:{ena bleFilteri ng:!0,onCh ange:funct ion(e,t,i) {North52.W izardHelpe rs.SingleO nly(e,t,th is.$select )},include SelectAllO ption:!1,e nableCaseI nsensitive Filtering: !0,filterB ehavior:"b oth",maxHe ight:250,b uttonWidth :"40px",on DropdownSh own:functi on(e){Nort h52.Wizard Helpers.Se tFocusLook up(this)}, buttonText :function( e,t){retur n""}}},tod atelookup: {hideInitV alidationE rror:!0,so rt:!1,size :1,type:"s elect",mul tiselect:{ enableFilt ering:!0,o nChange:fu nction(e,t ,i){North5 2.WizardHe lpers.Sing leOnly(e,t ,this.$sel ect)},incl udeSelectA llOption:! 1,enableCa seInsensit iveFilteri ng:!0,filt erBehavior :"both",ma xHeight:25 0,buttonWi dth:"40px" ,onDropdow nShown:fun ction(e){N orth52.Wiz ardHelpers .SetFocusL ookup(this )},buttonT ext:functi on(e,t){re turn""}}}, dthelper:{ type:"sele ct",hideNo ne:!0},int erval:{opt ionLabels: ["Years"," Quarters", "Months"," Weeks","We ekdays","D ays","Hour s","Minute s","Second s"],hideNo ne:!0}},fo rm:{button s:{submit: {title:"Ge nerate",st yles:"btn  btn-primar y",click:f unction(){ setTimeout (function( ){North52. WizardHelp ers.Genera teFunction Call2()},5 00)}}}}}}) },North52. WizardFunc tions.Date Adds=funct ion(e,t){$ (e).alpaca ({schema:{ type:"obje ct",title: t,descript ion:North5 2.WizardHe lpers.GetW izardHelp( t),propert ies:{dtfri endlyname: {type:"str ing",title :"Friendly  Name",req uired:!1}, dthelper:{ title:"Typ e",type:"s tring",def ault:"Calc ulations", required:! 1,enum:["C alculation s","Action s"]},input date:{type :"string", title:"Inp ut Date",r equired:!1 },inputdat elookup:{t itle:"&nbs p;",type:" array",uni queItems:! 0,items:{t ype:"strin g"}},offse t:{title:" Offset"}}} ,postRende r:function (e){North5 2.WizardHe lpers.Deci sionTableH ideHelperF ields(e),S DK.Metadat a.Retrieve Entity(15, SourceEnti ty.Current Entity,nul l,!1,funct ion(e){Nor th52.Wizar dHelpers.s uccessRetr ieveAttrib utesPickli st(e,["Dat eTime"],"i nputdatelo okup")},No rth52.Wiza rdHelpers. errorRetri eveAttribu tes),e.chi ldrenByPro pertyId.in putdateloo kup.getFie ldEl()[0]. childNodes [4].childN odes[0].cl assName="m ultiselect  dropdown- toggle btn  btn-defau lt glyphic on glyphic on-search" ,e.form.ge tButtonEl( "submit"). css("margi n-right"," 300px"),No rth52.Wiza rdHelpers. FieldSubsc ribe("inpu tdate","in putdateloo kup",e,!0) },view:{pa rent:"boot strap-edit ",layout:{ template:N orth52.Wiz ardFunctio ns.Templat e,bindings :{dtfriend lyname:"#l eft",dthel per:"#righ t",inputda te:"#left" ,inputdate lookup:"#r ight",offs et:"#left" }}},option s:{fields: {inputdate :{events:{ focus:func tion(){win dow.n52cur rentwizard control=th is}}},inpu tdatelooku p:{hideIni tValidatio nError:!0, sort:!1,si ze:1,type: "select",m ultiselect :{enableFi ltering:!0 ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)},in cludeSelec tAllOption :!1,enable CaseInsens itiveFilte ring:!0,fi lterBehavi or:"both", maxHeight: 250,button Width:"40p x",onDropd ownShown:f unction(e) {North52.W izardHelpe rs.SetFocu sLookup(th is)},butto nText:func tion(e,t){ return""}} },dthelper :{type:"se lect",hide None:!0}}, form:{butt ons:{submi t:{title:" Generate", styles:"bt n btn-prim ary",click :function( ){setTimeo ut(functio n(){North5 2.WizardHe lpers.Gene rateFuncti onCall2()} ,500)}}}}} })},North5 2.WizardFu nctions.Da teGets=fun ction(e,t) {$(e).alpa ca({schema :{type:"ob ject",titl e:t,descri ption:Nort h52.Wizard Helpers.Ge tWizardHel p(t),prope rties:{dtf riendlynam e:{type:"s tring",tit le:"Friend ly Name"}, dthelper:{ title:"Typ e",type:"s tring",def ault:"Calc ulations", required:! 1,enum:["C alculation s","Action s"]},input date:{type :"string", title:"Inp ut Date"}, inputdatel ookup:{typ e:"array", title:"&nb sp;",uniqu eItems:!0, items:{typ e:"string" }}}},postR ender:func tion(e){No rth52.Wiza rdHelpers. DecisionTa bleHideHel perFields( e),SDK.Met adata.Retr ieveEntity (15,Source Entity.Cur rentEntity ,null,!1,f unction(e) {North52.W izardHelpe rs.success RetrieveAt tributesPi cklist(e,[ "DateTime" ],"inputda telookup") },North52. WizardHelp ers.errorR etrieveAtt ributes),e .childrenB yPropertyI d.inputdat elookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",e.for m.getButto nEl("submi t").css("m argin-righ t","300px" ),North52. WizardHelp ers.FieldS ubscribe(" inputdate" ,"inputdat elookup",e ,!0)},view :{parent:" bootstrap- edit",layo ut:{templa te:North52 .WizardFun ctions.Tem plate,bind ings:{dtfr iendlyname :"#left",d thelper:"# right",inp utdate:"#l eft",input datelookup :"#right"} }},options :{fields:{ inputdate: {events:{f ocus:funct ion(){wind ow.n52curr entwizardc ontrol=thi s}}},input datelookup :{hideInit Validation Error:!0,s ort:!1,siz e:1,type:" select",mu
  19   ltiselect: {enableFil tering:!0, onChange:f unction(e, t,i){North 52.WizardH elpers.Sin gleOnly(e, t,this.$se lect)},inc ludeSelect AllOption: !1,enableC aseInsensi tiveFilter ing:!0,fil terBehavio r:"both",m axHeight:2 50,buttonW idth:"40px ",onDropdo wnShown:fu nction(e){ North52.Wi zardHelper s.SetFocus Lookup(thi s)},button Text:funct ion(e,t){r eturn""}}} ,dthelper: {type:"sel ect",hideN one:!0}},f orm:{butto ns:{submit :{title:"G enerate",s tyles:"btn  btn-prima ry",click: function() {setTimeou t(function (){North52 .WizardHel pers.Gener ateFunctio nCall2()}, 500)}}}}}} )},North52 .WizardFun ctions.Zer oParameter Function=f unction(e, t){$(e).al paca({sche ma:{type:" object",ti tle:t,desc ription:No rth52.Wiza rdHelpers. GetWizardH elp(t),pro perties:{d tfriendlyn ame:{type: "string",t itle:"Frie ndly Name" },dthelper :{title:"T ype",type: "string",d efault:"Ca lculations ",required :!1,enum:[ "Calculati ons","Acti ons"]},fun ctionName: {type:"str ing",reado nly:!0,req uired:!1}} },postRend er:functio n(e){North 52.WizardH elpers.Dec isionTable HideHelper Fields(e), e.form.get ButtonEl(" submit").c ss("margin -right","3 00px")},vi ew:{parent :"bootstra p-edit",la yout:{temp late:North 52.WizardF unctions.T emplate,bi ndings:{dt friendlyna me:"#left" ,dthelper: "#right"}} },options: {fields:{d thelper:{t ype:"selec t",hideNon e:!0},func tionName:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}}},form: {buttons:{ submit:{ti tle:"Gener ate",style s:"btn btn -primary", click:func tion(){Nor th52.Wizar dHelpers.G enerateFun ctionCall2 ()}}}}}})} ,North52.W izardFunct ions.OnePa rameterFun ction=func tion(e,t,i ){$(e).alp aca({schem a:{type:"o bject",tit le:t,descr iption:Nor th52.Wizar dHelpers.G etWizardHe lp(t),prop erties:{dt friendlyna me:{type:" string",ti tle:"Frien dly Name"} ,dthelper: {title:"Ty pe",type:" string",de fault:"Cal culations" ,required: !1,enum:[" Calculatio ns","Actio ns"]},titl eOne:{type :"string", title:i,re quired:!1} }},postRen der:functi on(e){Nort h52.Wizard Helpers.De cisionTabl eHideHelpe rFields(e) ,e.form.ge tButtonEl( "submit"). css("margi n-right"," 300px")},v iew:{paren t:"bootstr ap-edit",l ayout:{tem plate:Nort h52.Wizard Functions. Template,b indings:{d tfriendlyn ame:"#left ",dthelper :"#right", titleOne:" #left"}}}, options:{f ields:{dth elper:{typ e:"select" ,hideNone: !0},titleO ne:{events :{focus:fu nction(){w indow.n52c urrentwiza rdcontrol= this}}}},f orm:{butto ns:{submit :{title:"G enerate",s tyles:"btn  btn-prima ry",click: function() {North52.W izardHelpe rs.Generat eFunctionC all2()}}}} }})},North 52.WizardF unctions.O neParamete rBooleanFu nction=fun ction(e,t, i){$(e).al paca({sche ma:{type:" object",ti tle:t,desc ription:No rth52.Wiza rdHelpers. GetWizardH elp(t),pro perties:{d tfriendlyn ame:{type: "string",t itle:"Frie ndly Name" },dthelper :{title:"T ype",type: "string",d efault:"Ca lculations ",required :!1,enum:[ "Calculati ons","Acti ons"]},tit leOne:{typ e:"string" ,default:" true",titl e:i,enum:[ "true","fa lse"],requ ired:!1}}} ,postRende r:function (e){North5 2.WizardHe lpers.Deci sionTableH ideHelperF ields(e),e .form.getB uttonEl("s ubmit").cs s("margin- right","30 0px")},vie w:{parent: "bootstrap -edit",lay out:{templ ate:North5 2.WizardFu nctions.Te mplate,bin dings:{dtf riendlynam e:"#left", dthelper:" #right",ti tleOne:"#l eft"}}},op tions:{fie lds:{dthel per:{type: "select",h ideNone:!0 },titleOne :{type:"se lect",hide None:!0,ev ents:{focu s:function (){window. n52current wizardcont rol=this}} }},form:{b uttons:{su bmit:{titl e:"Generat e",styles: "btn btn-p rimary",cl ick:functi on(){North 52.WizardH elpers.Gen erateFunct ionCall2() }}}}}})},N orth52.Wiz ardFunctio ns.TwoPara meterFunct ion=functi on(e,t,i,n ){$(e).alp aca({schem a:{type:"o bject",tit le:t,descr iption:Nor th52.Wizar dHelpers.G etWizardHe lp(t),prop erties:{dt friendlyna me:{type:" string",ti tle:"Frien dly Name"} ,dthelper: {title:"Ty pe",type:" string",de fault:"Cal culations" ,required: !1,enum:[" Calculatio ns","Actio ns"]},titl eOne:{type :"string", title:i,re quired:!1} ,titleTwo: {type:"str ing",title :n,require d:!1}}},po stRender:f unction(e) {North52.W izardHelpe rs.Decisio nTableHide HelperFiel ds(e),e.fo rm.getButt onEl("subm it").css(" margin-rig ht","300px ")},view:{ parent:"bo otstrap-ed it",layout :{template :North52.W izardFunct ions.Templ ate,bindin gs:{dtfrie ndlyname:" #left",dth elper:"#ri ght",title One:"#left ",titleTwo :"#left"}} },options: {fields:{d thelper:{t ype:"selec t",hideNon e:!0},titl eOne:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, titleTwo:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}}},form: {buttons:{ submit:{ti tle:"Gener ate",style s:"btn btn -primary", click:func tion(){Nor th52.Wizar dHelpers.G enerateFun ctionCall2 ()}}}}}})} ,North52.W izardFunct ions.FourP arameterFu nction=fun ction(e,t, i,n,r,o){$ (e).alpaca ({schema:{ type:"obje ct",title: t,descript ion:North5 2.WizardHe lpers.GetW izardHelp( t),propert ies:{dtfri endlyname: {type:"str ing",title :"Friendly  Name"},dt helper:{ti tle:"Type" ,type:"str ing",defau lt:"Calcul ations",re quired:!1, enum:["Cal culations" ,"Actions" ]},titleOn e:{type:"s tring",tit le:i},titl eTwo:{type :"string", title:n},t itleThree: {type:"str ing",title :r},titleF our:{type: "string",t itle:o}}}, postRender :function( e){North52 .WizardHel pers.Decis ionTableHi deHelperFi elds(e),e. form.getBu ttonEl("su bmit").css ("margin-r ight","300 px")},view :{parent:" bootstrap- edit",layo ut:{templa te:North52 .WizardFun ctions.Tem plate,bind
  20   ings:{dtfr iendlyname :"#left",d thelper:"# right",tit leOne:"#le ft",titleT wo:"#left" ,titleThre e:"#left", titleFour: "#left"}}} ,options:{ fields:{dt helper:{ty pe:"select ",hideNone :!0},title One:{event s:{focus:f unction(){ window.n52 currentwiz ardcontrol =this}}},t itleTwo:{e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }},titleTh ree:{event s:{focus:f unction(){ window.n52 currentwiz ardcontrol =this}}},t itleFour:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}}},form: {buttons:{ submit:{ti tle:"Gener ate",style s:"btn btn -primary", click:func tion(){Nor th52.Wizar dHelpers.G enerateFun ctionCall2 ()}}}}}})} ,North52.W izardFunct ions.FiveP arameterFu nction=fun ction(e,t, i,n,r,o,l) {$(e).alpa ca({schema :{type:"ob ject",titl e:t,descri ption:Nort h52.Wizard Helpers.Ge tWizardHel p(t),prope rties:{dtf riendlynam e:{type:"s tring",tit le:"Friend ly Name"}, dthelper:{ title:"Typ e",type:"s tring",def ault:"Calc ulations", required:! 1,enum:["C alculation s","Action s"]},title One:{type: "string",t itle:i},ti tleTwo:{ty pe:"string ",title:n} ,titleThre e:{type:"s tring",tit le:r},titl eFour:{typ e:"string" ,title:o}, titleFive: {type:"str ing",title :l}}},post Render:fun ction(e){N orth52.Wiz ardHelpers .DecisionT ableHideHe lperFields (e),e.form .getButton El("submit ").css("ma rgin-right ","300px") },view:{pa rent:"boot strap-edit ",layout:{ template:N orth52.Wiz ardFunctio ns.Templat e,bindings :{dtfriend lyname:"#l eft",dthel per:"#righ t",titleOn e:"#left", titleTwo:" #left",tit leThree:"# left",titl eFour:"#le ft",titleF ive:"#left "}}},optio ns:{fields :{dthelper :{type:"se lect",hide None:!0},t itleOne:{e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }},titleTw o:{events: {focus:fun ction(){wi ndow.n52cu rrentwizar dcontrol=t his}}},tit leThree:{e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }},titleFo ur:{events :{focus:fu nction(){w indow.n52c urrentwiza rdcontrol= this}}},ti tleFive:{e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }}},form:{ buttons:{s ubmit:{tit le:"Genera te",styles :"btn btn- primary",c lick:funct ion(){Nort h52.Wizard Helpers.Ge nerateFunc tionCall2( )}}}}}})}, North52.Wi zardFuncti ons.SetFor mNotificat ion=functi on(e){$(e) .alpaca({s chema:{typ e:"object" ,title:"Se tFormNotif ication",d escription :North52.W izardHelpe rs.GetWiza rdHelp("Se tFormNotif ication"), properties :{dtfriend lyname:{ty pe:"string ",title:"F riendly Na me"},dthel per:{title :"Type",ty pe:"string ",default: "Calculati ons",requi red:!1,enu m:["Calcul ations","A ctions"]}, Message:{t ype:"strin g",title:" Message"}, Level:{tit le:"Level" ,type:"sel ect",defau lt:"ERROR" ,enum:["IN FO","WARNI NG","ERROR "]},Unique ID:{type:" string",ti tle:"Uniqu eID"}}},po stRender:f unction(e) {North52.W izardHelpe rs.Decisio nTableHide HelperFiel ds(e),e.fo rm.getButt onEl("subm it").css(" margin-rig ht","300px ")},view:{ parent:"bo otstrap-ed it",layout :{template :North52.W izardFunct ions.Templ ate,bindin gs:{dtfrie ndlyname:" #left",dth elper:"#ri ght",Messa ge:"#left" ,Level:"#l eft",Uniqu eID:"#left "}}},optio ns:{fields :{dthelper :{type:"se lect",hide None:!0},M essage:{ev ents:{focu s:function (){window. n52current wizardcont rol=this}} },Level:{h ideNone:!0 ,type:"sel ect"}},for m:{buttons :{submit:{ title:"Gen erate",sty les:"btn b tn-primary ",click:fu nction(){N orth52.Wiz ardHelpers .GenerateF unctionCal l2()}}}}}} )},North52 .WizardFun ctions.Thr eeParamete rFunction= function(e ,t,i,n,r){ $(e).alpac a({schema: {type:"obj ect",title :t,descrip tion:North 52.WizardH elpers.Get WizardHelp (t),proper ties:{dtfr iendlyname :{type:"st ring",titl e:"Friendl y Name"},d thelper:{t itle:"Type ",type:"st ring",defa ult:"Calcu lations",r equired:!1 ,enum:["Ca lculations ","Actions "]},titleO ne:{type:" string",ti tle:i},tit leTwo:{typ e:"string" ,title:n}, titleThree :{type:"st ring",titl e:r}}},pos tRender:fu nction(e){ North52.Wi zardHelper s.Decision TableHideH elperField s(e),e.for m.getButto nEl("submi t").css("m argin-righ t","300px" )},view:{p arent:"boo tstrap-edi t",layout: {template: North52.Wi zardFuncti ons.Templa te,binding s:{dtfrien dlyname:"# left",dthe lper:"#rig ht",titleO ne:"#left" ,titleTwo: "#left",ti tleThree:" #left"}}}, options:{f ields:{dth elper:{typ e:"select" ,hideNone: !0},titleO ne:{events :{focus:fu nction(){w indow.n52c urrentwiza rdcontrol= this}}},ti tleTwo:{ev ents:{focu s:function (){window. n52current wizardcont rol=this}} },titleThr ee:{events :{focus:fu nction(){w indow.n52c urrentwiza rdcontrol= this}}}},f orm:{butto ns:{submit :{title:"G enerate",s tyles:"btn  btn-prima ry",click: function() {North52.W izardHelpe rs.Generat eFunctionC all2()}}}} }})},North 52.WizardF unctions.M utliSource PropertyAt tribute=fu nction(e,t ,i,n,r,o){ $(e).alpac a({schema: {title:t,d escription :North52.W izardHelpe rs.GetWiza rdHelp(t), type:"obje ct",proper ties:{dtfr iendlyname :{type:"st ring",titl e:"Friendl y Name"},d thelper:{t itle:"Type ",type:"st ring",defa ult:"Calcu lations",r equired:!1 ,enum:["Ca lculations ","Actions "]},fields :{title:i, type:"stri ng"},field slookup:{t ype:"array ",title:"& nbsp;",uni queItems:! 0,items:{t ype:"strin g"}},textv alue:{titl e:"Text Va lue",type: "string",r equired:!1 }}},postRe nder:funct ion(e){Nor th52.Wizar dHelpers.D ecisionTab leHideHelp erFields(e );var t="$ select=Nam e,FormXml& $filter=Ob jectTypeCo de eq '"+S ourceEntit y.CurrentE ntity+"' a nd (Type/V alue eq 2  or Type/Va lue eq 7)  and FormAc tivationSt ate/Value  eq 1";if(" Tabs"==r?S
  21   DK.REST.re trieveMult ipleRecord s("SystemF orm",t,fun ction(e){N orth52.Wiz ardHelpers .Tabs(e,"f ieldslooku p")},funct ion(e){Nor th52.Formu laEditor.D isplayMess age("North 52 BPA: "+ e.message) },North52. FormulaEdi tor.formsR etrieveCom plete):"Se ctions"==r ?SDK.REST. retrieveMu ltipleReco rds("Syste mForm",t,f unction(e) {North52.W izardHelpe rs.Section s(e,"field slookup")} ,function( e){North52 .FormulaEd itor.Displ ayMessage( "North52 B PA: "+e.me ssage)},No rth52.Form ulaEditor. formsRetri eveComplet e):SDK.Met adata.Retr ieveEntity (15,Source Entity.Cur rentEntity ,null,!1,f unction(e) {North52.W izardHelpe rs.success RetrieveAt tributesPi cklist(e,n ull,"field slookup")} ,North52.W izardHelpe rs.errorRe trieveAttr ibutes),e. childrenBy PropertyId .fieldsloo kup.getFie ldEl()[0]. childNodes [4].childN odes[0].cl assName="m ultiselect  dropdown- toggle btn  btn-defau lt glyphic on glyphic on-search" ,e.form.ge tButtonEl( "submit"). css("margi n-right"," 300px"),1= =o){var i= e.children ByProperty Id.textval ue;i.optio ns.hidden= !1,i.refre sh()}North 52.WizardH elpers.Fie ldSubscrib eMulti("fi elds","fie ldslookup" ,e,n)},vie w:{parent: "bootstrap -edit",lay out:{templ ate:North5 2.WizardFu nctions.Te mplate,bin dings:{dtf riendlynam e:"#left", dthelper:" #right",fi elds:"#lef t",fieldsl ookup:"#ri ght",textv alue:"#lef t"}}},opti ons:{field s:{dthelpe r:{type:"s elect",hid eNone:!0}, fields:{ev ents:{focu s:function (){window. n52current wizardcont rol=this}} },textvalu e:{hidden: !0},fields lookup:{hi deInitVali dationErro r:!0,sort: !1,size:5, type:"sele ct",multis elect:{ena bleFilteri ng:!0,incl udeSelectA llOption:! 1,enableCa seInsensit iveFilteri ng:!0,filt erBehavior :"both",ma xHeight:25 0,buttonWi dth:"40px" ,onDropdow nShown:fun ction(e){N orth52.Wiz ardHelpers .SetFocusL ookup(this )},buttonT ext:functi on(e,t){re turn""}},e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }}},form:{ buttons:{s ubmit:{tit le:"Genera te",styles :"btn btn- primary",c lick:funct ion(){Nort h52.Wizard Helpers.Ge nerateFunc tionCall2( )}}}}}})}, North52.Wi zardFuncti ons.Clone= function(e ){$(e).alp aca({schem a:{title:" Clone",des cription:N orth52.Wiz ardHelpers .GetWizard Help("Clon e"),type:" object",pr operties:{ dtfriendly name:{type :"string", title:"Fri endly Name ",required :!1},dthel per:{title :"Type",ty pe:"string ",default: "Calculati ons",requi red:!1,enu m:["Calcul ations","A ctions"]}, entityname :{title:"E ntity Name ",type:"st ring",requ ired:!1},e ntitynamel ookup:{tit le:"&nbsp; ",type:"ar ray",uniqu eItems:!0, items:{typ e:"string" }},recordi d:{title:" Record ID" ,type:"str ing",requi red:!1},re cordidlook up:{title: "&nbsp;",t ype:"array ",uniqueIt ems:!0,ite ms:{type:" string"}}, childrecor ds:{title: "Child Rec ords",type :"string", required:! 1},childre cordslooku p:{title:" &nbsp;",ty pe:"array" ,uniqueIte ms:!0},ena bleprefix: {title:"En able Prefi x",type:"s tring",def ault:"true ",required :!1,enum:[ "true","fa lse"]}}},p ostRender: function(e ){North52. WizardHelp ers.Decisi onTableHid eHelperFie lds(e),SDK .Metadata. RetrieveEn tity(15,So urceEntity .CurrentEn tity,null, !1,functio n(e){North 52.WizardH elpers.suc cessRetrie veAttribut esPicklist (e,["Looku p","Unique identifier "],"record idlookup") },North52. WizardHelp ers.errorR etrieveAtt ributes),S DK.Metadat a.Retrieve Entity(15, SourceEnti ty.Current Entity,nul l,!1,funct ion(e){Nor th52.Wizar dHelpers.s uccessRetr ieveAttrib utesPopula teNN(e,"ch ildrecords lookup","b oth")},Nor th52.Wizar dHelpers.e rrorRetrie veAttribut es),e.chil drenByProp ertyId.rec ordid.on(" click",fun ction(){ev ent.ctrlKe y&&alert(" click + sh ift event" )});e.chil drenByProp ertyId.ent ityname.ge tFieldEl() ,e.childre nByPropert yId.entity namelookup .getFieldE l();e.chil drenByProp ertyId.ent itynameloo kup.getFie ldEl()[0]. childNodes [4].childN odes[0].cl assName="m ultiselect  dropdown- toggle btn  btn-defau lt glyphic on glyphic on-search" ,e.childre nByPropert yId.record idlookup.g etFieldEl( )[0].child Nodes[4].c hildNodes[ 0].classNa me="multis elect drop down-toggl e btn btn- default gl yphicon gl yphicon-se arch",e.ch ildrenByPr opertyId.c hildrecord slookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",North 52.WizardH elpers.Fie ldSubscrib e("entityn ame","enti tynamelook up",e,!1), North52.Wi zardHelper s.FieldSub scribe("re cordid","r ecordidloo kup",e,!0, "entitynam e"),North5 2.WizardHe lpers.Fiel dSubscribe Multi("chi ldrecords" ,"childrec ordslookup ",e,!1),e. form.getBu ttonEl("su bmit").css ("margin-r ight","300 px");var t =String(e. childrenBy PropertyId .entitynam elookup.id );$("#"+St ring(t)).m ultiselect ("dataprov ider",Sour ceEntity.E ntities)}, view:{pare nt:"bootst rap-edit", layout:{te mplate:Nor th52.Wizar dFunctions .Template, bindings:{ dtfriendly name:"#lef t",dthelpe r:"#right" ,entitynam e:"#left", entityname lookup:"#r ight",reco rdid:"#lef t",recordi dlookup:"# right",chi ldrecords: "#left",ch ildrecords lookup:"#r ight",enab leprefix:" #left"}}}, options:{f ields:{dth elper:{typ e:"select" ,hideNone: !0},entity name:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, recordid:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}},entity namelookup :{hideInit Validation Error:!0,s ort:!1,siz e:1,multis elect:{ena bleFilteri ng:!0,onCh ange:funct ion(e,t,i) {North52.W izardHelpe rs.SingleO nly(e,t,th is.$select )},include SelectAllO ption:!1,e nableCaseI nsensitive Filtering:
  22   !0,filterB ehavior:"b oth",maxHe ight:250,b uttonWidth :"40px",bu ttonText:f unction(e, t){return" "},onDropd ownShown:f unction(e) {North52.W izardHelpe rs.SetFocu sLookup(th is)},onCha nge:functi on(e,t,i){ North52.Wi zardHelper s.SingleOn ly(e,t,thi s.$select) }},type:"s elect",eve nts:{chang e:function (){North52 .WizardHel pers.OnCha ngeEntity( this.getVa lue(),["Lo okup","Uni queidentif ier"],"rec ordidlooku p")}}},rec ordidlooku p:{hideIni tValidatio nError:!0, sort:!1,si ze:1,type: "select",m ultiselect :{enableFi ltering:!0 ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)},in cludeSelec tAllOption :!1,enable CaseInsens itiveFilte ring:!0,fi lterBehavi or:"both", maxHeight: 250,button Width:"40p x",onDropd ownShown:f unction(e) {North52.W izardHelpe rs.SetFocu sLookup(th is)},butto nText:func tion(e,t){ return""}} ,events:{c hange:func tion(){}}} ,childreco rdslookup: {type:"sel ect",sort: !1,multise lect:{enab leFilterin g:!0,inclu deSelectAl lOption:!1 ,enableCas eInsensiti veFilterin g:!0,filte rBehavior: "both",but tonWidth:" 40px",butt onText:fun ction(e,t) {return""} ,onDropdow nShown:fun ction(e){N orth52.Wiz ardHelpers .SetFocusL ookup(this )},maxHeig ht:250}},e nableprefi x:{type:"s elect",hid eNone:!0}} ,form:{but tons:{subm it:{title: "Generate" ,styles:"b tn btn-pri mary",clic k:function (){North52 .WizardHel pers.Gener ateFunctio nCall2()}} }}}})},Nor th52.Wizar dFunctions .CreateRec ordFromPar ent=functi on(e){$(e) .alpaca({s chema:{tit le:"Create RecordFrom Parent",de scription: North52.Wi zardHelper s.GetWizar dHelp("Cre ateRecordF romParent" ),type:"ob ject",prop erties:{dt friendlyna me:{type:" string",ti tle:"Frien dly Name", required:! 1},dthelpe r:{title:" Type",type :"string", default:"C alculation s",require d:!1,enum: ["Calculat ions","Act ions"]},en tityname:{ title:"Par ent Entity  Name",typ e:"string" ,required: !1},entity namelookup :{title:"& nbsp;",typ e:"array", uniqueItem s:!0,items :{type:"st ring"}},re cordid:{ti tle:"Paren t Record I D",type:"s tring",req uired:!1}, recordidlo okup:{titl e:"&nbsp;" ,type:"arr ay",unique Items:!0,i tems:{type :"string"} },entityna metarget:{ title:"Tar get Entity  Name",typ e:"string" ,required: !1},entity nametarget lookup:{ti tle:"&nbsp ;",type:"a rray",uniq ueItems:!0 ,items:{ty pe:"string "}}}},post Render:fun ction(e){N orth52.Wiz ardHelpers .DecisionT ableHideHe lperFields (e),SDK.Me tadata.Ret rieveEntit y(15,Sourc eEntity.Cu rrentEntit y,null,!1, function(e ){North52. WizardHelp ers.succes sRetrieveA ttributesP icklist(e, ["Lookup", "Uniqueide ntifier"], "recordidl ookup")},N orth52.Wiz ardHelpers .errorRetr ieveAttrib utes),e.ch ildrenByPr opertyId.r ecordid.on ("click",f unction(){ event.ctrl Key&&alert ("click +  shift even t")});e.ch ildrenByPr opertyId.e ntityname. getFieldEl (),e.child renByPrope rtyId.enti tynamelook up.getFiel dEl();e.ch ildrenByPr opertyId.e ntitynamel ookup.getF ieldEl()[0 ].childNod es[4].chil dNodes[0]. className= "multisele ct dropdow n-toggle b tn btn-def ault glyph icon glyph icon-searc h",e.child renByPrope rtyId.reco rdidlookup .getFieldE l()[0].chi ldNodes[4] .childNode s[0].class Name="mult iselect dr opdown-tog gle btn bt n-default  glyphicon  glyphicon- search",e. childrenBy PropertyId .entitynam etargetloo kup.getFie ldEl()[0]. childNodes [4].childN odes[0].cl assName="m ultiselect  dropdown- toggle btn  btn-defau lt glyphic on glyphic on-search" ,North52.W izardHelpe rs.FieldSu bscribe("e ntityname" ,"entityna melookup", e,!1),Nort h52.Wizard Helpers.Fi eldSubscri be("record id","recor didlookup" ,e,!0,"ent ityname"), North52.Wi zardHelper s.FieldSub scribe("en titynameta rget","ent itynametar getlookup" ,e,!1),e.f orm.getBut tonEl("sub mit").css( "margin-ri ght","300p x");var t= String(e.c hildrenByP ropertyId. entityname lookup.id) ;$("#"+Str ing(t)).mu ltiselect( "dataprovi der",Sourc eEntity.En tities);va r i=String (e.childre nByPropert yId.entity nametarget lookup.id) ;$("#"+Str ing(i)).mu ltiselect( "dataprovi der",Sourc eEntity.En tities)},v iew:{paren t:"bootstr ap-edit",l ayout:{tem plate:Nort h52.Wizard Functions. Template,b indings:{d tfriendlyn ame:"#left ",dthelper :"#right", entityname :"#left",e ntitynamel ookup:"#ri ght",recor did:"#left ",recordid lookup:"#r ight",enti tynametarg et:"#left" ,entitynam etargetloo kup:"#righ t"}}},opti ons:{field s:{dthelpe r:{type:"s elect",hid eNone:!0}, entityname :{events:{ focus:func tion(){win dow.n52cur rentwizard control=th is}}},reco rdid:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, entityname lookup:{hi deInitVali dationErro r:!0,sort: !1,size:1, multiselec t:{enableF iltering:! 0,onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)},i ncludeSele ctAllOptio n:!1,enabl eCaseInsen sitiveFilt ering:!0,f ilterBehav ior:"both" ,maxHeight :250,butto nWidth:"40 px",button Text:funct ion(e,t){r eturn""},o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)}},t ype:"selec t",events: {change:fu nction(){N orth52.Wiz ardHelpers .OnChangeE ntity(this .getValue( ),["Lookup ","Uniquei dentifier" ],"recordi dlookup")} }},entityn ametargetl ookup:{hid eInitValid ationError :!0,sort:! 1,size:1,m ultiselect :{enableFi ltering:!0 ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)},in cludeSelec tAllOption :!1,enable CaseInsens itiveFilte ring:!0,fi lterBehavi or:"both", maxHeight: 250,button Width:"40p x",buttonT ext:functi on(e,t){re
  23   turn""},on DropdownSh own:functi on(e){Nort h52.Wizard Helpers.Se tFocusLook up(this)}, onChange:f unction(e, t,i){North 52.WizardH elpers.Sin gleOnly(e, t,this.$se lect)}},ty pe:"select ",events:{ change:fun ction(){}} },recordid lookup:{hi deInitVali dationErro r:!0,sort: !1,size:1, type:"sele ct",multis elect:{ena bleFilteri ng:!0,onCh ange:funct ion(e,t,i) {North52.W izardHelpe rs.SingleO nly(e,t,th is.$select )},include SelectAllO ption:!1,e nableCaseI nsensitive Filtering: !0,filterB ehavior:"b oth",maxHe ight:250,b uttonWidth :"40px",on DropdownSh own:functi on(e){Nort h52.Wizard Helpers.Se tFocusLook up(this)}, buttonText :function( e,t){retur n""}},even ts:{change :function( ){}}}},for m:{buttons :{submit:{ title:"Gen erate",sty les:"btn b tn-primary ",click:fu nction(){N orth52.Wiz ardHelpers .GenerateF unctionCal l2()}}}}}} )},North52 .WizardFun ctions.Add UserToAcce ssTeam=fun ction(e){$ (e).alpaca ({schema:{ title:"Add UserToAcce ssTeam",de scription: North52.Wi zardHelper s.GetWizar dHelp("Add UserToAcce ssTeam"),t ype:"objec t",propert ies:{dtfri endlyname: {type:"str ing",title :"Friendly  Name",req uired:!1}, dthelper:{ title:"Typ e",type:"s tring",def ault:"Calc ulations", required:! 1,enum:["C alculation s","Action s"]},entit yname:{tit le:"Parent  Entity Na me",type:" string",re quired:!1} ,entitynam elookup:{t itle:"&nbs p;",type:" array",uni queItems:! 0,items:{t ype:"strin g"}},recor did:{title :"Parent R ecord ID", type:"stri ng",requir ed:!1},rec ordidlooku p:{title:" &nbsp;",ty pe:"array" ,uniqueIte ms:!0,item s:{type:"s tring"}},u serid:{tit le:"User I D",type:"s tring",req uired:!1}, teamtempla teid:{titl e:"Team Te mplate ID" ,type:"str ing",requi red:!1}}}, postRender :function( e){North52 .WizardHel pers.Decis ionTableHi deHelperFi elds(e),SD K.Metadata .RetrieveE ntity(15,S ourceEntit y.CurrentE ntity,null ,!1,functi on(e){Nort h52.Wizard Helpers.su ccessRetri eveAttribu tesPicklis t(e,["Look up","Uniqu eidentifie r"],"recor didlookup" )},North52 .WizardHel pers.error RetrieveAt tributes), e.children ByProperty Id.recordi d.on("clic k",functio n(){event. ctrlKey&&a lert("clic k + shift  event")}); e.children ByProperty Id.entityn ame.getFie ldEl(),e.c hildrenByP ropertyId. entityname lookup.get FieldEl(); e.children ByProperty Id.entityn amelookup. getFieldEl ()[0].chil dNodes[4]. childNodes [0].classN ame="multi select dro pdown-togg le btn btn -default g lyphicon g lyphicon-s earch",e.c hildrenByP ropertyId. recordidlo okup.getFi eldEl()[0] .childNode s[4].child Nodes[0].c lassName=" multiselec t dropdown -toggle bt n btn-defa ult glyphi con glyphi con-search ",North52. WizardHelp ers.FieldS ubscribe(" entityname ","entityn amelookup" ,e,!1),Nor th52.Wizar dHelpers.F ieldSubscr ibe("recor did","reco rdidlookup ",e,!0,"en tityname") ,e.form.ge tButtonEl( "submit"). css("margi n-right"," 300px");va r t=String (e.childre nByPropert yId.entity namelookup .id);$("#" +String(t) ).multisel ect("datap rovider",S ourceEntit y.Entities )},view:{p arent:"boo tstrap-edi t",layout: {template: North52.Wi zardFuncti ons.Templa te,binding s:{dtfrien dlyname:"# left",dthe lper:"#rig ht",entity name:"#lef t",entityn amelookup: "#right",r ecordid:"# left",reco rdidlookup :"#right", userid:"#l eft",teamt emplateid: "#left"}}} ,options:{ fields:{dt helper:{ty pe:"select ",hideNone :!0},entit yname:{eve nts:{focus :function( ){window.n 52currentw izardcontr ol=this}}} ,recordid: {events:{f ocus:funct ion(){wind ow.n52curr entwizardc ontrol=thi s}}},entit ynamelooku p:{hideIni tValidatio nError:!0, sort:!1,si ze:1,multi select:{en ableFilter ing:!0,onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)},includ eSelectAll Option:!1, enableCase Insensitiv eFiltering :!0,filter Behavior:" both",maxH eight:250, buttonWidt h:"40px",b uttonText: function(e ,t){return ""},onDrop downShown: function(e ){North52. WizardHelp ers.SetFoc usLookup(t his)},onCh ange:funct ion(e,t,i) {North52.W izardHelpe rs.SingleO nly(e,t,th is.$select )}},type:" select",ev ents:{chan ge:functio n(){North5 2.WizardHe lpers.OnCh angeEntity (this.getV alue(),["L ookup","Un iqueidenti fier"],"re cordidlook up")}}},re cordidlook up:{hideIn itValidati onError:!0 ,sort:!1,s ize:1,type :"select", multiselec t:{enableF iltering:! 0,onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)},i ncludeSele ctAllOptio n:!1,enabl eCaseInsen sitiveFilt ering:!0,f ilterBehav ior:"both" ,maxHeight :250,butto nWidth:"40 px",onDrop downShown: function(e ){North52. WizardHelp ers.SetFoc usLookup(t his)},butt onText:fun ction(e,t) {return""} },events:{ change:fun ction(){}} }},form:{b uttons:{su bmit:{titl e:"Generat e",styles: "btn btn-p rimary",cl ick:functi on(){North 52.WizardH elpers.Gen erateFunct ionCall2() }}}}}})},N orth52.Wiz ardFunctio ns.FindRec ords=funct ion(e,t){v ar i=[];i. push({name :"selectat tribute",v alue:"SetF indSelect" }),$(e).al paca({data :{recordco unt:"50",d thelper:"C alculation s",selecta ttribute:" *",nolock: "true"},sc hema:{titl e:"FindRec ords",desc ription:No rth52.Wiza rdHelpers. GetWizardH elp("FindR ecords"),t ype:"objec t",propert ies:{dtfri endlyname: {type:"str ing",title :"Friendly  Name",req uired:!1}, dthelper:{ title:"Typ e",type:"s tring",def ault:"Calc ulations", required:! 1,enum:["C alculation s","Action s"]},entit yname:{tit le:"Entity  Name",typ e:"string" ,required: !1},entity namelookup :{title:"& nbsp;",typ e:"array", uniqueItem s:!0,items :{type:"st ring"}},wh ereattribu te:{title: "Where Att ribute",ty pe:"string ",required :!1},where attributel ookup:{tit
  24   le:"&nbsp; ",type:"ar ray",uniqu eItems:!0, items:{typ e:"string" }},whereva lue:{title :"Equals V alue",type :"string", required:! 1},whereva luelookup: {title:"&n bsp;",type :"array",u niqueItems :!0},selec tattribute :{title:"S elect Attr ibute",typ e:"string" ,required: !1},select attributel ookup:{tit le:"&nbsp; ",type:"ar ray",uniqu eItems:!0, items:{typ e:"string" }},recordc ount:{titl e:"Record  Count",typ e:"string" ,required: !1},nolock :{title:"N o-Lock",ty pe:"string ",default: "true",req uired:!1,e num:["true ","false"] }}},postRe nder:funct ion(e){Nor th52.Wizar dHelpers.D ecisionTab leHideHelp erFields(e ),SDK.Meta data.Retri eveEntity( 15,SourceE ntity.Curr entEntity, null,!1,fu nction(e){ North52.Wi zardHelper s.successR etrieveAtt ributesPic klist(e,nu ll,"wherea ttributelo okup")},No rth52.Wiza rdHelpers. errorRetri eveAttribu tes),SDK.M etadata.Re trieveEnti ty(15,Sour ceEntity.C urrentEnti ty,null,!1 ,function( e){North52 .WizardHel pers.succe ssRetrieve Attributes Picklist(e ,null,"whe revalueloo kup")},Nor th52.Wizar dHelpers.e rrorRetrie veAttribut es),SDK.Me tadata.Ret rieveEntit y(15,Sourc eEntity.Cu rrentEntit y,null,!1, function(e ){North52. WizardHelp ers.succes sRetrieveA ttributesP icklist(e, null,"sele ctattribut elookup")} ,North52.W izardHelpe rs.errorRe trieveAttr ibutes),e. childrenBy PropertyId .entitynam elookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",e.chi ldrenByPro pertyId.wh ereattribu telookup.g etFieldEl( )[0].child Nodes[4].c hildNodes[ 0].classNa me="multis elect drop down-toggl e btn btn- default gl yphicon gl yphicon-se arch",e.ch ildrenByPr opertyId.w herevaluel ookup.getF ieldEl()[0 ].childNod es[4].chil dNodes[0]. className= "multisele ct dropdow n-toggle b tn btn-def ault glyph icon glyph icon-searc h",e.child renByPrope rtyId.sele ctattribut elookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",North 52.WizardH elpers.Fie ldSubscrib e("entityn ame","enti tynamelook up",e,!1), North52.Wi zardHelper s.FieldSub scribe("wh ereattribu te","where attributel ookup",e,! 1),North52 .WizardHel pers.Field Subscribe( "wherevalu e","wherev aluelookup ",e,!0,"en tityname") ,North52.W izardHelpe rs.FieldSu bscribeMul ti("select attribute" ,"selectat tributeloo kup",e,!1) ,e.form.ge tButtonEl( "submit"). css("margi n-right"," 300px");va r t=String (e.childre nByPropert yId.entity namelookup .id);$("#" +String(t) ).multisel ect("datap rovider",S ourceEntit y.Entities )},view:{p arent:"boo tstrap-edi t",layout: {template: North52.Wi zardFuncti ons.Templa te,binding s:{dtfrien dlyname:"# left",dthe lper:"#rig ht",entity name:"#lef t",entityn amelookup: "#right",w hereattrib ute:"#left ",whereatt ributelook up:"#right ",whereval ue:"#left" ,wherevalu elookup:"# right",sel ectattribu te:"#left" ,selectatt ributelook up:"#right ",recordco unt:"#left ",nolock:" #left"}}}, options:{f ields:{dth elper:{typ e:"select" ,hideNone: !0},entity name:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, whereattri bute:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, wherevalue :{events:{ focus:func tion(){win dow.n52cur rentwizard control=th is}}},sele ctattribut e:{events: {focus:fun ction(){wi ndow.n52cu rrentwizar dcontrol=t his}}},rec ordcount:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}},entity namelookup :{hideInit Validation Error:!0,s ort:!1,siz e:1,multis elect:{ena bleFilteri ng:!0,incl udeSelectA llOption:! 1,enableCa seInsensit iveFilteri ng:!0,filt erBehavior :"both",ma xHeight:25 0,buttonWi dth:"40px" ,buttonTex t:function (e,t){retu rn""},onDr opdownShow n:function (e){North5 2.WizardHe lpers.SetF ocusLookup (this)},on Change:fun ction(e,t, i){North52 .WizardHel pers.Singl eOnly(e,t, this.$sele ct)}},type :"select", events:{ch ange:funct ion(){Nort h52.Wizard Helpers.On ChangeEnti ty(this.ge tValue(),n ull,"where attributel ookup"),No rth52.Wiza rdHelpers. OnChangeEn tity(this. getValue() ,null,"sel ectattribu telookup") }}},wherea ttributelo okup:{hide InitValida tionError: !0,sort:!1 ,size:1,ty pe:"select ",multisel ect:{enabl eFiltering :!0,onChan ge:functio n(e,t,i){N orth52.Wiz ardHelpers .SingleOnl y(e,t,this .$select)} ,includeSe lectAllOpt ion:!1,ena bleCaseIns ensitiveFi ltering:!0 ,filterBeh avior:"bot h",maxHeig ht:250,but tonWidth:" 40px",onDr opdownShow n:function (e){North5 2.WizardHe lpers.SetF ocusLookup (this)},bu ttonText:f unction(e, t){return" "}}},where valuelooku p:{hideIni tValidatio nError:!0, sort:!1,si ze:1,type: "select",m ultiselect :{enableFi ltering:!0 ,onChange: function(e ,t,i){Nort h52.Wizard Helpers.Si ngleOnly(e ,t,this.$s elect)},in cludeSelec tAllOption :!1,enable CaseInsens itiveFilte ring:!0,fi lterBehavi or:"both", maxHeight: 250,button Width:"40p x",onDropd ownShown:f unction(e) {North52.W izardHelpe rs.SetFocu sLookup(th is)},butto nText:func tion(e,t){ return""}} },selectat tributeloo kup:{hideI nitValidat ionError:! 0,sort:!1, size:1,typ e:"select" ,multisele ct:{enable Filtering: !0,include SelectAllO ption:!1,e nableCaseI nsensitive Filtering: !0,filterB ehavior:"b oth",maxHe ight:200,b uttonWidth :"40px",on DropdownSh own:functi on(e){Nort h52.Wizard Helpers.Se tFocusLook up(this)}, buttonText :function( e,t){retur n""}}},nol ock:{type: "select",h ideNone:!0 }},form:{b uttons:{su bmit:{titl e:"Generat e",styles: "btn btn-p rimary",id :"generate FindValue" ,click:fun ction(){No rth52.Wiza
  25   rdHelpers. GenerateFu nctionCall 1(i)}}}}}} )},North52 .WizardFun ctions.Fin dListValue s=function (e,t){$(e) .alpaca({d ata:{recor dcount:"50 ",dthelper :"Calculat ions",nolo ck:"true"} ,schema:{t itle:"Find ListValues ",descript ion:North5 2.WizardHe lpers.GetW izardHelp( "FindListV alues"),ty pe:"object ",properti es:{dtfrie ndlyname:{ type:"stri ng",title: "Friendly  Name",requ ired:!1},d thelper:{t itle:"Type ",type:"st ring",defa ult:"Calcu lations",r equired:!1 ,enum:["Ca lculations ","Actions "]},entity name:{titl e:"Entity  Name",type :"string", required:! 1},entityn amelookup: {title:"&n bsp;",type :"array",u niqueItems :!0,items: {type:"str ing"}},whe reattribut e:{title:" Where Attr ibute",typ e:"string" ,required: !1},wherea ttributelo okup:{titl e:"&nbsp;" ,type:"arr ay",unique Items:!0,i tems:{type :"string"} },whereval ue:{title: "Equals Va lue",type: "string",r equired:!1 },whereval uelookup:{ title:"&nb sp;",type: "array",un iqueItems: !0},select attribute: {title:"Se lect Attri bute",type :"string", required:! 1},selecta ttributelo okup:{titl e:"&nbsp;" ,type:"arr ay",unique Items:!0,i tems:{type :"string"} },recordco unt:{title :"Record C ount",type :"string", required:! 1},nolock: {title:"No -Lock",typ e:"string" ,default:" true",requ ired:!1,en um:["true" ,"false"]} }},postRen der:functi on(e){Nort h52.Wizard Helpers.De cisionTabl eHideHelpe rFields(e) ,SDK.Metad ata.Retrie veEntity(1 5,SourceEn tity.Curre ntEntity,n ull,!1,fun ction(e){N orth52.Wiz ardHelpers .successRe trieveAttr ibutesPick list(e,nul l,"whereat tributeloo kup")},Nor th52.Wizar dHelpers.e rrorRetrie veAttribut es),SDK.Me tadata.Ret rieveEntit y(15,Sourc eEntity.Cu rrentEntit y,null,!1, function(e ){North52. WizardHelp ers.succes sRetrieveA ttributesP icklist(e, null,"wher evaluelook up")},Nort h52.Wizard Helpers.er rorRetriev eAttribute s),SDK.Met adata.Retr ieveEntity (15,Source Entity.Cur rentEntity ,null,!1,f unction(e) {North52.W izardHelpe rs.success RetrieveAt tributesPi cklist(e,n ull,"selec tattribute lookup")}, North52.Wi zardHelper s.errorRet rieveAttri butes),e.c hildrenByP ropertyId. entityname lookup.get FieldEl()[ 0].childNo des[4].chi ldNodes[0] .className ="multisel ect dropdo wn-toggle  btn btn-de fault glyp hicon glyp hicon-sear ch",e.chil drenByProp ertyId.whe reattribut elookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",e.chi ldrenByPro pertyId.wh erevaluelo okup.getFi eldEl()[0] .childNode s[4].child Nodes[0].c lassName=" multiselec t dropdown -toggle bt n btn-defa ult glyphi con glyphi con-search ",e.childr enByProper tyId.selec tattribute lookup.get FieldEl()[ 0].childNo des[4].chi ldNodes[0] .className ="multisel ect dropdo wn-toggle  btn btn-de fault glyp hicon glyp hicon-sear ch",North5 2.WizardHe lpers.Fiel dSubscribe ("entityna me","entit ynamelooku p",e,!1),N orth52.Wiz ardHelpers .FieldSubs cribe("whe reattribut e","wherea ttributelo okup",e,!1 ),North52. WizardHelp ers.FieldS ubscribe(" wherevalue ","whereva luelookup" ,e,!0,"ent ityname"), North52.Wi zardHelper s.FieldSub scribe("se lectattrib ute","sele ctattribut elookup",e ,!1),e.for m.getButto nEl("submi t").css("m argin-righ t","300px" );var t=St ring(e.chi ldrenByPro pertyId.en titynamelo okup.id);$ ("#"+Strin g(t)).mult iselect("d ataprovide r",SourceE ntity.Enti ties)},vie w:{parent: "bootstrap -edit",lay out:{templ ate:North5 2.WizardFu nctions.Te mplate,bin dings:{dtf riendlynam e:"#left", dthelper:" #right",en tityname:" #left",ent itynameloo kup:"#righ t",whereat tribute:"# left",wher eattribute lookup:"#r ight",wher evalue:"#l eft",where valuelooku p:"#right" ,selectatt ribute:"#l eft",selec tattribute lookup:"#r ight",reco rdcount:"# left",nolo ck:"#left" }}},option s:{fields: {dthelper: {type:"sel ect",hideN one:!0},en tityname:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}},wherea ttribute:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}},wherev alue:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, selectattr ibute:{eve nts:{focus :function( ){window.n 52currentw izardcontr ol=this}}} ,recordcou nt:{events :{focus:fu nction(){w indow.n52c urrentwiza rdcontrol= this}}},en titynamelo okup:{hide InitValida tionError: !0,sort:!1 ,size:1,mu ltiselect: {enableFil tering:!0, includeSel ectAllOpti on:!1,enab leCaseInse nsitiveFil tering:!0, filterBeha vior:"both ",maxHeigh t:250,butt onWidth:"4 0px",butto nText:func tion(e,t){ return""}, onDropdown Shown:func tion(e){No rth52.Wiza rdHelpers. SetFocusLo okup(this) },onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)}}, type:"sele ct",events :{change:f unction(){ North52.Wi zardHelper s.OnChange Entity(thi s.getValue (),null,"w hereattrib utelookup" ),North52. WizardHelp ers.OnChan geEntity(t his.getVal ue(),null, "selectatt ributelook up")}}},wh ereattribu telookup:{ hideInitVa lidationEr ror:!0,sor t:!1,size: 1,type:"se lect",mult iselect:{e nableFilte ring:!0,on Change:fun ction(e,t, i){North52 .WizardHel pers.Singl eOnly(e,t, this.$sele ct)},inclu deSelectAl lOption:!1 ,enableCas eInsensiti veFilterin g:!0,filte rBehavior: "both",max Height:250 ,buttonWid th:"40px", onDropdown Shown:func tion(e){No rth52.Wiza rdHelpers. SetFocusLo okup(this) },buttonTe xt:functio n(e,t){ret urn""}}},w herevaluel ookup:{hid eInitValid ationError :!0,sort:! 1,size:1,t ype:"selec t",multise lect:{enab leFilterin g:!0,onCha nge:functi on(e,t,i){ North52.Wi zardHelper s.SingleOn ly(e,t,thi s.$select) },includeS electAllOp
  26   tion:!1,en ableCaseIn sensitiveF iltering:! 0,filterBe havior:"bo th",maxHei ght:250,bu ttonWidth: "40px",onD ropdownSho wn:functio n(e){North 52.WizardH elpers.Set FocusLooku p(this)},b uttonText: function(e ,t){return ""}}},sele ctattribut elookup:{h ideInitVal idationErr or:!0,sort :!1,size:1 ,type:"sel ect",multi select:{en ableFilter ing:!0,onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)},includ eSelectAll Option:!1, enableCase Insensitiv eFiltering :!0,filter Behavior:" both",maxH eight:200, buttonWidt h:"40px",o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,buttonTex t:function (e,t){retu rn""}}},no lock:{type :"select", hideNone:! 0}},form:{ buttons:{s ubmit:{tit le:"Genera te",styles :"btn btn- primary",i d:"generat eFindValue ",click:fu nction(){N orth52.Wiz ardHelpers .GenerateF unctionCal l2()}}}}}} )},North52 .WizardFun ctions.Fin dScalar=fu nction(e,t ){$(e).alp aca({data: {defaultva lue:"?",dt helper:"Ca lculations ",nolock:" true"},sch ema:{title :t,descrip tion:North 52.WizardH elpers.Get WizardHelp (t),type:" object",pr operties:{ dtfriendly name:{type :"string", title:"Fri endly Name ",required :!1},dthel per:{title :"Type",ty pe:"string ",default: "Calculati ons",requi red:!1,enu m:["Calcul ations","A ctions"]}, entityname :{title:"E ntity Name ",type:"st ring",requ ired:!1},e ntitynamel ookup:{tit le:"&nbsp; ",type:"ar ray",uniqu eItems:!0, items:{typ e:"string" }},whereat tribute:{t itle:"Wher e Attribut e",type:"s tring",req uired:!1}, whereattri butelookup :{title:"& nbsp;",typ e:"array", uniqueItem s:!0,items :{type:"st ring"}},wh erevalue:{ title:"Equ als Value" ,type:"str ing",requi red:!1},wh erevaluelo okup:{titl e:"&nbsp;" ,type:"arr ay",unique Items:!0}, selectattr ibute:{tit le:"Select  Attribute ",type:"st ring",requ ired:!1},s electattri butelookup :{title:"& nbsp;",typ e:"array", uniqueItem s:!0,items :{type:"st ring"}},de faultvalue :{title:"D efault Val ue",type:" string",re quired:!1} ,nolock:{t itle:"No-L ock",type: "string",d efault:"tr ue",requir ed:!1,enum :["true"," false"]}}} ,postRende r:function (e){North5 2.WizardHe lpers.Deci sionTableH ideHelperF ields(e),S DK.Metadat a.Retrieve Entity(15, SourceEnti ty.Current Entity,nul l,!1,funct ion(e){Nor th52.Wizar dHelpers.s uccessRetr ieveAttrib utesPickli st(e,null, "whereattr ibutelooku p")},North 52.WizardH elpers.err orRetrieve Attributes ),SDK.Meta data.Retri eveEntity( 15,SourceE ntity.Curr entEntity, null,!1,fu nction(e){ North52.Wi zardHelper s.successR etrieveAtt ributesPic klist(e,nu ll,"wherev aluelookup ")},North5 2.WizardHe lpers.erro rRetrieveA ttributes) ,SDK.Metad ata.Retrie veEntity(1 5,SourceEn tity.Curre ntEntity,n ull,!1,fun ction(e){N orth52.Wiz ardHelpers .successRe trieveAttr ibutesPick list(e,nul l,"selecta ttributelo okup")},No rth52.Wiza rdHelpers. errorRetri eveAttribu tes),e.chi ldrenByPro pertyId.en titynamelo okup.getFi eldEl()[0] .childNode s[4].child Nodes[0].c lassName=" multiselec t dropdown -toggle bt n btn-defa ult glyphi con glyphi con-search ",e.childr enByProper tyId.where attributel ookup.getF ieldEl()[0 ].childNod es[4].chil dNodes[0]. className= "multisele ct dropdow n-toggle b tn btn-def ault glyph icon glyph icon-searc h",e.child renByPrope rtyId.wher evaluelook up.getFiel dEl()[0].c hildNodes[ 4].childNo des[0].cla ssName="mu ltiselect  dropdown-t oggle btn  btn-defaul t glyphico n glyphico n-search", e.children ByProperty Id.selecta ttributelo okup.getFi eldEl()[0] .childNode s[4].child Nodes[0].c lassName=" multiselec t dropdown -toggle bt n btn-defa ult glyphi con glyphi con-search ",North52. WizardHelp ers.FieldS ubscribe(" entityname ","entityn amelookup" ,e,!1),Nor th52.Wizar dHelpers.F ieldSubscr ibe("where attribute" ,"whereatt ributelook up",e,!1), North52.Wi zardHelper s.FieldSub scribe("wh erevalue", "wherevalu elookup",e ,!0,"entit yname"),No rth52.Wiza rdHelpers. FieldSubsc ribe("sele ctattribut e","select attributel ookup",e,! 1),e.form. getButtonE l("submit" ).css("mar gin-right" ,"300px"); var t=Stri ng(e.child renByPrope rtyId.enti tynamelook up.id);$(" #"+String( t)).multis elect("dat aprovider" ,SourceEnt ity.Entiti es)},view: {parent:"b ootstrap-e dit",layou t:{templat e:North52. WizardFunc tions.Temp late,bindi ngs:{dtfri endlyname: "#left",dt helper:"#r ight",enti tyname:"#l eft",entit ynamelooku p:"#right" ,whereattr ibute:"#le ft",wherea ttributelo okup:"#rig ht",wherev alue:"#lef t",whereva luelookup: "#right",s electattri bute:"#lef t",selecta ttributelo okup:"#rig ht",defaul tvalue:"#l eft",noloc k:"#left"} }},options :{fields:{ dthelper:{ type:"sele ct",hideNo ne:!0},ent ityname:{e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }},whereat tribute:{e vents:{foc us:functio n(){window .n52curren twizardcon trol=this} }},whereva lue:{event s:{focus:f unction(){ window.n52 currentwiz ardcontrol =this}}},s electattri bute:{even ts:{focus: function() {window.n5 2currentwi zardcontro l=this}}}, defaultval ue:{events :{focus:fu nction(){w indow.n52c urrentwiza rdcontrol= this}}},en titynamelo okup:{hide InitValida tionError: !0,sort:!1 ,size:1,mu ltiselect: {enableFil tering:!0, includeSel ectAllOpti on:!1,enab leCaseInse nsitiveFil tering:!0, filterBeha vior:"both ",maxHeigh t:250,butt onWidth:"4 0px",butto nText:func tion(e,t){ return""}, onDropdown Shown:func tion(e){No rth52.Wiza rdHelpers. SetFocusLo okup(this) },onChange :function( e,t,i){Nor th52.Wizar dHelpers.S ingleOnly( e,t,this.$ select)}}, type:"sele ct",events :{change:f unction(){ North52.Wi zardHelper s.OnChange Entity(thi
  27   s.getValue (),null,"w hereattrib utelookup" ),North52. WizardHelp ers.OnChan geEntity(t his.getVal ue(),null, "selectatt ributelook up")}}},wh ereattribu telookup:{ hideInitVa lidationEr ror:!0,sor t:!1,size: 1,type:"se lect",mult iselect:{e nableFilte ring:!0,on Change:fun ction(e,t, i){North52 .WizardHel pers.Singl eOnly(e,t, this.$sele ct)},inclu deSelectAl lOption:!1 ,enableCas eInsensiti veFilterin g:!0,filte rBehavior: "both",max Height:250 ,buttonWid th:"40px", onDropdown Shown:func tion(e){No rth52.Wiza rdHelpers. SetFocusLo okup(this) },buttonTe xt:functio n(e,t){ret urn""}}},w herevaluel ookup:{hid eInitValid ationError :!0,sort:! 1,size:1,t ype:"selec t",multise lect:{enab leFilterin g:!0,onCha nge:functi on(e,t,i){ North52.Wi zardHelper s.SingleOn ly(e,t,thi s.$select) },includeS electAllOp tion:!1,en ableCaseIn sensitiveF iltering:! 0,filterBe havior:"bo th",maxHei ght:250,bu ttonWidth: "40px",onD ropdownSho wn:functio n(e){North 52.WizardH elpers.Set FocusLooku p(this)},b uttonText: function(e ,t){return ""}}},sele ctattribut elookup:{h ideInitVal idationErr or:!0,sort :!1,size:1 ,type:"sel ect",multi select:{en ableFilter ing:!0,onC hange:func tion(e,t,i ){North52. WizardHelp ers.Single Only(e,t,t his.$selec t)},includ eSelectAll Option:!1, enableCase Insensitiv eFiltering :!0,filter Behavior:" both",maxH eight:200, buttonWidt h:"40px",o nDropdownS hown:funct ion(e){Nor th52.Wizar dHelpers.S etFocusLoo kup(this)} ,buttonTex t:function (e,t){retu rn""}}},no lock:{type :"select", hideNone:! 0}},form:{ buttons:{s ubmit:{tit le:"Genera te",styles :"btn btn- primary",i d:"generat eFindValue ",click:fu nction(){N orth52.Wiz ardHelpers .GenerateF unctionCal l2()}}}}}} )},North52 .WizardFun ctions.Fin dScalarFD= function(e ,t){$(e).a lpaca({dat a:{default value:"?", dthelper:" Calculatio ns",nolock :"true"},s chema:{tit le:t,descr iption:Nor th52.Wizar dHelpers.G etWizardHe lp(t),type :"object", properties :{dtfriend lyname:{ty pe:"string ",title:"F riendly Na me",requir ed:!1},dth elper:{tit le:"Type", type:"stri ng",defaul t:"Calcula tions",req uired:!1,e num:["Calc ulations", "Actions"] },entityna me:{title: "Formula D etail (Que ry)",type: "string",r equired:!1 },entityna melookup:{ title:"&nb sp;",type: "array",un iqueItems: !0,items:{ type:"stri ng"}},wher eattribute :{title:"F ield Name" ,type:"str ing",requi red:!1},wh ereattribu telookup:{ title:"&nb sp;",type: "array",un iqueItems: !0,items:{ type:"stri ng"}},defa ultvalue:{ title:"Def ault Value ",type:"st ring",requ ired:!1},n olock:{tit le:"No-Loc k",type:"s tring",def ault:"true ",required :!1,enum:[ "true","fa lse"]}}},p ostRender: function(e ){North52. WizardHelp ers.Decisi onTableHid eHelperFie lds(e),e.c hildrenByP ropertyId. entityname lookup.get FieldEl()[ 0].childNo des[4].chi ldNodes[0] .className ="multisel ect dropdo wn-toggle  btn btn-de fault glyp hicon glyp hicon-sear ch",e.chil drenByProp ertyId.whe reattribut elookup.ge tFieldEl() [0].childN odes[4].ch ildNodes[0 ].classNam e="multise lect dropd own-toggle  btn btn-d efault gly phicon gly phicon-sea rch",North 52.WizardH elpers.Fie ldSubscrib e("entityn ame","enti tynamelook up",e,!1), North52.Wi zardHelper s.FieldSub scribe("wh ereattribu te","where attributel ookup",e,! 1),e.form. getButtonE l("submit" ).css("mar gin-right" ,"300px"); var t=Stri ng(e.child renByPrope rtyId.enti tynamelook up.id);$(" #"+String( t)).multis elect("dat aprovider" ,North52.W izardHelpe rs.FindFor mulaDetail s())},view :{parent:" bootstrap- edit",layo ut:{templa te:North52 .WizardFun ctions.Tem plate,bind ings:{dtfr iendlyname :"#left",d thelper:"# right",ent ityname:"# left",enti tynamelook up:"#right ",whereatt ribute:"#l eft",where attributel ookup:"#ri ght",defau ltvalue:"# left",nolo ck:"#left" }}},option s:{fields: {dthelper: {type:"sel ect",hideN one:!0},en tityname:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}},wherea ttribute:{ events:{fo cus:functi on(){windo w.n52curre ntwizardco ntrol=this }}},defaul tvalue:{ev ents:{focu s:function (){window. n52current wizardcont rol=this}} },entityna melookup:{ hideInitVa lidationEr ror:!0,sor t:!1,size: 1,multisel ect:{enabl eFiltering :!0,includ eSelectAll Option:!1, enableCase Insensitiv eFiltering :!0,filter Behavior:" both",maxH eight:250, buttonWidt h:"40px",b uttonText: function(e ,t){return ""},onDrop downShown: function(e ){North52. WizardHelp ers.SetFoc usLookup(t his)},onCh ange:funct ion(e,t,i) {North52.W izardHelpe rs.SingleO nly(e,t,th is.$select )}},type:" select",ev ents:{chan ge:functio n(){North5 2.WizardHe lpers.OnCh angeFormul aDetailEnt ity(this.g etValue(), "whereattr ibutelooku p")}}},whe reattribut elookup:{h ideInitVal idationErr or:!0,sort :!1,id:"wh ereattribu telookup", size:1,typ e:"select" ,multisele ct:{enable Filtering: !0,onChang e:function (e,t,i){No rth52.Wiza rdHelpers. SingleOnly (e,t,this. $select)}, includeSel ectAllOpti on:!1,enab leCaseInse nsitiveFil tering:!0, filterBeha vior:"both ",maxHeigh t:250,butt onWidth:"4 0px",onDro pdownShown :function( e){North52 .WizardHel pers.SetFo cusLookup( this)},but tonText:fu nction(e,t ){return"" }}},nolock :{type:"se lect",hide None:!0}}, form:{butt ons:{submi t:{title:" Generate", styles:"bt n btn-prim ary",id:"g enerateFin dValue",cl ick:functi on(){North 52.WizardH elpers.Gen erateFunct ionCall2() }}}}}})},N orth52.Wiz ardFunctio ns.ThrowEr ror=functi on(e){Nort h52.Wizard Functions. OneParamet erFunction (e,"ThrowE rror","Ent er string  for error  message")} ,North52.W izardFunct ions.Refre shSubGrid= function(e ){North52. WizardFunc tions.OneP arameterFu
  28   nction(e," RefreshSub Grid","Gri d Name")}, North52.Wi zardFuncti ons.Refres hWebResour ce=functio n(e){North 52.WizardF unctions.O neParamete rFunction( e,"Refresh WebResourc e","WebRes ource Name ")},North5 2.WizardFu nctions.Se lectForm=f unction(e) {North52.W izardFunct ions.OnePa rameterFun ction(e,"S electForm" ,"Form ID" )},North52 .WizardFun ctions.Sel ect f orm b y n ame=functi on(e){Nort h52.Wizard Functions. OneParamet erFunction (e,"Select f orm b y n ame","Form  Name")},N orth52.Wiz ardFunctio ns.ShowLef tHandNavIt ems=functi on(e){Nort h52.Wizard Functions. OneParamet erFunction (e,"ShowLe ftHandNavI tems","Nav  Name")},N orth52.Wiz ardFunctio ns.FindRec ordsFetchX ml=functio n(e){North 52.WizardF unctions.O neParamete rFunction( e,"FindRec ordsFetchX ml","Fetch Xml")},Nor th52.Wizar dFunctions .FindECCou nt=functio n(e){North 52.WizardF unctions.O neParamete rFunction( e,"FindECC ount","Ent ity Collec tion")},No rth52.Wiza rdFunction s.Generate InvoiceFro mOpportuni ty=functio n(e){North 52.WizardF unctions.O neParamete rFunction( e,"Generat eInvoiceFr omOpportun ity","Oppo rtunity GU ID")},Nort h52.Wizard Functions. GenerateQu oteFromOpp ortunity=f unction(e) {North52.W izardFunct ions.OnePa rameterFun ction(e,"G enerateQuo teFromOppo rtunity"," Opportunit y GUID")}, North52.Wi zardFuncti ons.Genera teSalesOrd erFromOppo rtunity=fu nction(e){ North52.Wi zardFuncti ons.OnePar ameterFunc tion(e,"Ge nerateSale sOrderFrom Opportunit y","Opport unity GUID ")},North5 2.WizardFu nctions.Al ert=functi on(e){Nort h52.Wizard Functions. OneParamet erFunction (e,"Alert" ,"Enter st ring for a lert messa ge")},Nort h52.Wizard Functions. ClearFormN otificatio n=function (e){North5 2.WizardFu nctions.On eParameter Function(e ,"ClearFor mNotificat ion","Uniq ue ID")},N orth52.Wiz ardFunctio ns.OpenWin dow=functi on(e){Nort h52.Wizard Functions. OneParamet erFunction (e,"OpenWi ndow","Ope nWindow"," Url")},Nor th52.Wizar dFunctions .ClearCont rolNotific ation=func tion(e){No rth52.Wiza rdFunction s.OneParam eterFuncti on(e,"Clea rControlNo tification ","Control  ID")},Nor th52.Wizar dFunctions .CDecimal= function(e ){North52. WizardFunc tions.OneP arameterFu nction(e," CDecimal", "Input Val ue")},Nort h52.Wizard Functions. CDecimalTo Int32=func tion(e){No rth52.Wiza rdFunction s.OneParam eterFuncti on(e,"CDec imalToInt3 2","Input  Value")},N orth52.Wiz ardFunctio ns.CDouble =function( e){North52 .WizardFun ctions.One ParameterF unction(e, "CDouble", "Input Val ue")},Nort h52.Wizard Functions. CFloatToIn t32=functi on(e){Nort h52.Wizard Functions. OneParamet erFunction (e,"CFloat ToInt32"," Input Valu e")},North 52.WizardF unctions.C Int32=func tion(e){No rth52.Wiza rdFunction s.OneParam eterFuncti on(e,"CInt 32","Input  Value")}, North52.Wi zardFuncti ons.CInt64 =function( e){North52 .WizardFun ctions.One ParameterF unction(e, "CInt64"," Input Valu e")},North 52.WizardF unctions.C OptionSetV alue=funct ion(e){Nor th52.Wizar dFunctions .OneParame terFunctio n(e,"COpti onSetValue ","Input V alue")},No rth52.Wiza rdFunction s.CNodeToX ml=functio n(e){North 52.WizardF unctions.O neParamete rFunction( e,"CNodeTo Xml","Inpu t Value")} ,North52.W izardFunct ions.ToStr ing=functi on(e){Nort h52.Wizard Functions. TwoParamet erFunction (e,"ToStri ng","Input  Value","F ormat")},N orth52.Wiz ardFunctio ns.FindTem plateId=fu nction(e){ North52.Wi zardFuncti ons.TwoPar ameterFunc tion(e,"Fi ndTemplate Id","Templ ate Name", "languagec ode")},Nor th52.Wizar dFunctions .Random=fu nction(e){ North52.Wi zardFuncti ons.TwoPar ameterFunc tion(e,"Ra ndom","Ent er Min val ue","Enter  Max value ")},North5 2.WizardFu nctions.Se tIFrame=fu nction(e){ North52.Wi zardFuncti ons.TwoPar ameterFunc tion(e,"Se tIFrame"," IFrame Con trol","Web Site Addre ss")},Nort h52.Wizard Functions. FormSave=f unction(e) {North52.W izardFunct ions.ZeroP arameterFu nction(e," FormSave") },North52. WizardFunc tions.Clea r=function (e){North5 2.WizardFu nctions.Ze roParamete rFunction( e,"Clear") },North52. WizardFunc tions.GetA ssociation RelatedEnt ityReferen ceId=funct ion(e){Nor th52.Wizar dFunctions .ZeroParam eterFuncti on(e,"GetA ssociation RelatedEnt ityReferen ceId")},No rth52.Wiza rdFunction s.GetAssoc iationRela tedEntityR eferenceId =function( e){North52 .WizardFun ctions.Zer oParameter Function(e ,"GetAssoc iationRela tedEntityR eferenceId ")},North5 2.WizardFu nctions.Ge tAssociati onRelation shipName=f unction(e) {North52.W izardFunct ions.ZeroP arameterFu nction(e," GetAssocia tionRelati onshipName ")},North5 2.WizardFu nctions.BP MoveNextSt age=functi on(e){Nort h52.Wizard Functions. ZeroParame terFunctio n(e,"BPMov eNextStage ")},North5 2.WizardFu nctions.BP MovePrevio usStage=fu nction(e){ North52.Wi zardFuncti ons.ZeroPa rameterFun ction(e,"B PMovePrevi ousStage") },North52. WizardFunc tions.DoLo opIndex=fu nction(e){ North52.Wi zardFuncti ons.ZeroPa rameterFun ction(e,"D oLoopIndex ")},North5 2.WizardFu nctions.Do LoopTotal= function(e ){North52. WizardFunc tions.Zero ParameterF unction(e, "DoLoopTot al")},Nort h52.Wizard Functions. RecordInde x=function (e){North5 2.WizardFu nctions.Ze roParamete rFunction( e,"RecordI ndex")},No rth52.Wiza rdFunction s.RecordTo tal=functi on(e){Nort h52.Wizard Functions. ZeroParame terFunctio n(e,"Recor dTotal")}, North52.Wi zardFuncti ons.LocalD ate=functi on(e){Nort h52.Wizard Functions. LocalWithT imeZone(e, "LocalDate ")},North5 2.WizardFu nctions.Lo calDateTim e=function (e){North5 2.WizardFu nctions.Lo calWithTim eZone(e,"L ocalDateTi me")},Nort h52.Wizard Functions. UtcDate=fu nction(e){ North52.Wi zardFuncti ons.ZeroPa ram
  29   eterFuncti on(e,"UtcD ate")},Nor th52.Wizar dFunctions .UtcDateTi me=functio n(e){North 52.WizardF unctions.Z eroParamet erFunction (e,"UtcDat eTime")},N orth52.Wiz ardFunctio ns.HideFie lds=functi on(e){Nort h52.Wizard Functions. MutliSourc ePropertyA ttribute(e ,"HideFiel ds","Field s",!1,"",! 1)},North5 2.WizardFu nctions.Ge tSourcePro perty=func tion(e){No rth52.Wiza rdFunction s.MutliSou rcePropert yAttribute (e,"GetSou rcePropert y","Field" ,!1,"",!0) },North52. WizardFunc tions.Prio rValue=fun ction(e){N orth52.Wiz ardFunctio ns.MutliSo urceProper tyAttribut e(e,"Prior Value","Si ngle Field  (Wrap in  Single quo tes)",!0," ",!1)},Nor th52.Wizar dFunctions .RemoveAtt ributes=fu nction(e){ North52.Wi zardFuncti ons.MutliS ourcePrope rtyAttribu te(e,"Remo veAttribut es","Field s",!1,"",! 1)},North5 2.WizardFu nctions.Ha veFieldsTr iggered=fu nction(e){ North52.Wi zardFuncti ons.MutliS ourcePrope rtyAttribu te(e,"Have FieldsTrig gered","Fi elds",!1," ",!1)},Nor th52.Wizar dFunctions .HaveField sNotTrigge red=functi on(e){Nort h52.Wizard Functions. MutliSourc ePropertyA ttribute(e ,"HaveFiel dsTriggere d","Fields ",!1,"",!1 )},North52 .WizardFun ctions.Hav eFieldsCha nged=funct ion(e){Nor th52.Wizar dFunctions .MutliSour ceProperty Attribute( e,"HaveFie ldsChanged ","Fields" ,!1,"",!1) },North52. WizardFunc tions.Have FieldsNotC hanged=fun ction(e){N orth52.Wiz ardFunctio ns.MutliSo urceProper tyAttribut e(e,"HaveF ieldsChang ed","Field s",!1,"",! 1)},North5 2.WizardFu nctions.Re moveAttrib utes=funct ion(e){Nor th52.Wizar dFunctions .MutliSour ceProperty Attribute( e,"RemoveA ttributes" ,"Fields", !1,"",!1)} ,North52.W izardFunct ions.ShowF ields=func tion(e){No rth52.Wiza rdFunction s.MutliSou rcePropert yAttribute (e,"ShowFi elds","Fie lds",!1,"" ,!1)},Nort h52.Wizard Functions. EnableFiel ds=functio n(e){North 52.WizardF unctions.M utliSource PropertyAt tribute(e, "EnableFie lds","Fiel ds",!1,"", !1)},North 52.WizardF unctions.D isableFiel ds=functio n(e){North 52.WizardF unctions.M utliSource PropertyAt tribute(e, "DisableFi elds","Fie lds",!1,"" ,!1)},Nort h52.Wizard Functions. SetFocus=f unction(e) {North52.W izardFunct ions.Mutli SourceProp ertyAttrib ute(e,"Set Focus","Fi elds",!1," ",!1)},Nor th52.Wizar dFunctions .SetRequir edFields=f unction(e) {North52.W izardFunct ions.Mutli SourceProp ertyAttrib ute(e,"Set RequiredFi elds","Fie lds",!1,"" ,!1)},Nort h52.Wizard Functions. SetNotRequ iredFields =function( e){North52 .WizardFun ctions.Mut liSourcePr opertyAttr ibute(e,"S etNotRequi redFields" ,"Fields", !1,"",!1)} ,North52.W izardFunct ions.Conta insData=fu nction(e){ North52.Wi zardFuncti ons.MutliS ourcePrope rtyAttribu te(e,"Cont ainsData", "Fields",! 0,"",!1)}, North52.Wi zardFuncti ons.DoesNo tContainDa ta=functio n(e){North 52.WizardF unctions.M utliSource PropertyAt tribute(e, "DoesNotCo ntainData" ,"Fields", !0,"",!1)} ,North52.W izardFunct ions.Conta insDataAnd NotZero=fu nction(e){ North52.Wi zardFuncti ons.MutliS ourcePrope rtyAttribu te(e,"Cont ainsDataAn dNotZero", "Fields",! 0,"",!1)}, North52.Wi zardFuncti ons.ClearF ields=func tion(e){No rth52.Wiza rdFunction s.MutliSou rcePropert yAttribute (e,"ClearF ields","Fi elds",!1," ",!1)},Nor th52.Wizar dFunctions .CollapseT abs=functi on(e){Nort h52.Wizard Functions. MutliSourc ePropertyA ttribute(e ,"Collapse Tabs","Tab s",!1,"Tab s",!1)},No rth52.Wiza rdFunction s.ExpandTa bs=functio n(e){North 52.WizardF unctions.M utliSource PropertyAt tribute(e, "ExpandTab s","Tabs", !1,"Tabs", !1)},North 52.WizardF unctions.H ideTabs=fu nction(e){ North52.Wi zardFuncti ons.MutliS ourcePrope rtyAttribu te(e,"Hide Tabs","Tab s",!1,"Tab s",!1)},No rth52.Wiza rdFunction s.ShowTabs =function( e){North52 .WizardFun ctions.Mut liSourcePr opertyAttr ibute(e,"S howTabs"," Tabs",!1," Tabs",!1)} ,North52.W izardFunct ions.HideS ections=fu nction(e){ North52.Wi zardFuncti ons.MutliS ourcePrope rtyAttribu te(e,"Hide Sections", "Sections" ,!1,"Secti ons",!1)}, North52.Wi zardFuncti ons.ShowSe ctions=fun ction(e){N orth52.Wiz ardFunctio ns.MutliSo urceProper tyAttribut e(e,"ShowS ections"," Sections", !1,"Sectio ns",!1)},N orth52.Wiz ardFunctio ns.SetLabe lTab=funct ion(e){Nor th52.Wizar dFunctions .MutliSour ceProperty Attribute( e,"SetLabe lTab","Tab s",!1,"Tab s",!0)},No rth52.Wiza rdFunction s.SetLabel Section=fu nction(e){ North52.Wi zardFuncti ons.MutliS ourcePrope rtyAttribu te(e,"SetL abelSectio n","Sectio ns",!1,"Se ctions",!0 )},North52 .WizardFun ctions.Dat eDiff=func tion(e){No rth52.Wiza rdFunction s.DateDiff Multi(e,"D ateDiff")} ,North52.W izardFunct ions.DateD iffElapsed =function( e){North52 .WizardFun ctions.Dat eDiffMulti (e,"DateDi ffElapsed" )},North52 .WizardFun ctions.Dat eDiffDescr iption=fun ction(e){N orth52.Wiz ardFunctio ns.DateDif fMulti(e," DateDiffDe scription" )},North52 .WizardFun ctions.Add Days=funct ion(e){Nor th52.Wizar dFunctions .DateAdds( e,"AddDays ")},North5 2.WizardFu nctions.Ad dHours=fun ction(e){N orth52.Wiz ardFunctio ns.DateAdd s(e,"AddHo urs")},Nor th52.Wizar dFunctions .AddMonths =function( e){North52 .WizardFun ctions.Dat eAdds(e,"A ddMonths") },North52. WizardFunc tions.AddM inutes=fun ction(e){N orth52.Wiz ardFunctio ns.DateAdd s(e,"AddMi nutes")},N orth52.Wiz ardFunctio ns.AddSeco nds=functi on(e){Nort h52.Wizard Functions. DateAdds(e ,"AddSecon ds")},Nort h52.Wizard Functions. AddYears=f unction(e) {North52.W izardFunct ions.DateA dds(e,"Add Years")},N orth52.Wiz ardFunctio ns.GetFirs tDayOfMont h=function (e){North5 2.WizardFu nctions.Da teAdds(e," GetFirstDa yOfMonth") },North52. WizardFunc tions.GetL astDayOfMo nth=functi
  30   on(e){Nort h52.Wizard Functions. DateAdds(e ,"GetLastD ayOfMonth" )},North52 .WizardFun ctions.Cre ateDate=fu nction(e){ North52.Wi zardFuncti ons.FivePa rameterFun ction(e,"C reateDate" ,"Year","M onth","Day ","Hour"," Minute")}, North52.Wi zardFuncti ons.GetAtt ributeDisp layName=fu nction(e){ North52.Wi zardFuncti ons.OnePar ameterFunc tion(e,"Ge tAttribute DisplayNam e","Entity  Name Peri od Attribu te Name")} ,North52.W izardFunct ions.GetOp tionSetNam e=function (e){North5 2.WizardFu nctions.Tw oParameter Function(e ,"GetOptio nSetName", "Entity Na me Period  Attribute  Name","Opt ion Set Va lue")},Nor th52.Wizar dFunctions .GetOption SetValue=f unction(e) {North52.W izardFunct ions.TwoPa rameterFun ction(e,"G etOptionSe tValue","E ntity Name  Period At tribute Na me","Optio n Set Name ")},North5 2.WizardFu nctions.Fi ndRecordsV alue=funct ion(e){Nor th52.Wizar dFunctions .FourParam eterFuncti on(e,"Find RecordsVal ue","Entit y Collecti on","Field  Name","De fault Valu e","Row Nu mber")},No rth52.Wiza rdFunction s.SetQuery String=fun ction(e){N orth52.Wiz ardFunctio ns.FourPar ameterFunc tion(e,"Se tQueryStri ng","Param 1 Name","P aram1 Valu e","Param2  Name","Pa ram2 Value ")},North5 2.WizardFu nctions.Li nkHyperLin kUrl=funct ion(e){Nor th52.Wizar dFunctions .FourParam eterFuncti on(e,"Link HyperLinkU rl","Base  URL","Enti ty Name"," Record ID" ,"Display  Text")},No rth52.Wiza rdFunction s.LinkDial ogUrl=func tion(e){No rth52.Wiza rdFunction s.FourPara meterFunct ion(e,"Lin kDialogUrl ","Base UR L","Entity  Name","Re cord ID"," Display Te xt")},Nort h52.Wizard Functions. LinkPlainH yperLink=f unction(e) {North52.W izardFunct ions.TwoPa rameterFun ction(e,"L inkPlainHy perLink"," Display Na me","HRef  Link")},No rth52.Wiza rdFunction s.AddMembe rsToTeam=f unction(e) {North52.W izardFunct ions.TwoPa rameterFun ction(e,"A ddMembersT oTeam","Te am ID","Me mbers")},N orth52.Wiz ardFunctio ns.RemoveM embersFrom Team=funct ion(e){Nor th52.Wizar dFunctions .TwoParame terFunctio n(e,"Remov eMembersFr omTeam","T eam ID","M embers")}, North52.Wi zardFuncti ons.LinkRa wUrl=funct ion(e){Nor th52.Wizar dFunctions .ThreePara meterFunct ion(e,"Lin kRawUrl"," Base URL", "Entity Na me","Recor d ID")},No rth52.Wiza rdFunction s.GetDateO nly=functi on(e){Nort h52.Wizard Functions. DateGets(e ,"GetDateO nly")},Nor th52.Wizar dFunctions .GetDay=fu nction(e){ North52.Wi zardFuncti ons.DateGe ts(e,"GetD ay")},Nort h52.Wizard Functions. GetDate=fu nction(e){ North52.Wi zardFuncti ons.DateGe ts(e,"GetD ate")},Nor th52.Wizar dFunctions .GetDayOfW eekName=fu nction(e){ North52.Wi zardFuncti ons.DateGe ts(e,"GetD ayOfWeekNa me")},Nort h52.Wizard Functions. GetDayOfWe ekNumber=f unction(e) {North52.W izardFunct ions.DateG ets(e,"Get DayOfWeekN umber")},N orth52.Wiz ardFunctio ns.GetDays InMonth=fu nction(e){ North52.Wi zardFuncti ons.DateGe ts(e,"GetD aysInMonth ")},North5 2.WizardFu nctions.Ge tFirstDayO fWeek=func tion(e){No rth52.Wiza rdFunction s.DateGets (e,"GetFir stDayOfWee k")},North 52.WizardF unctions.G etDaysInMo nth=functi on(e){Nort h52.Wizard Functions. DateGets(e ,"GetDaysI nMonth")}, North52.Wi zardFuncti ons.GetDay sInMonth=f unction(e) {North52.W izardFunct ions.DateG ets(e,"Get DaysInMont h")},North 52.WizardF unctions.G etMonth=fu nction(e){ North52.Wi zardFuncti ons.DateGe ts(e,"GetM onth")},No rth52.Wiza rdFunction s.GetNextW orkingDay= function(e ){North52. WizardFunc tions.Date Gets(e,"Ge tNextWorki ngDay")},N orth52.Wiz ardFunctio ns.GetYear =function( e){North52 .WizardFun ctions.Dat eGets(e,"G etYear")}, North52.Wi zardFuncti ons.GetWee k=function (e){North5 2.WizardFu nctions.Da teGets(e," GetWeek")} ,North52.W izardFunct ions.GetWe ekElapsed= function(e ){North52. WizardFunc tions.Date Gets(e,"Ge tWeekElaps ed")},Nort h52.Wizard Functions. IsLeapYear =function( e){North52 .WizardFun ctions.Dat eGets(e,"I sLeapYear" )},North52 .WizardFun ctions.IsW orkingDay= function(e ){North52. WizardFunc tions.Date Gets(e,"Is WorkingDay ")},North5 2.WizardFu nctions.Ut cTimeFromL ocalTime=f unction(e) {North52.W izardFunct ions.DateG ets(e,"Utc TimeFromLo calTime")} ,North52.W izardFunct ions.Strip Html=funct ion(e){Nor th52.Wizar dFunctions .OneParame terFunctio n(e,"Strip Html","Inp ut String" )},North52 .WizardFun ctions.Abs =function( e){North52 .WizardFun ctions.One ParameterF unction(e, "Abs","Inp ut Value") },North52. WizardFunc tions.Ceil ing=functi on(e){Nort h52.Wizard Functions. OneParamet erFunction (e,"Ceilin g","Input  Value")},N orth52.Wiz ardFunctio ns.Exp=fun ction(e){N orth52.Wiz ardFunctio ns.OnePara meterFunct ion(e,"Exp ","Input V alue")},No rth52.Wiza rdFunction s.StartSch edule=func tion(e){No rth52.Wiza rdFunction s.OneParam eterFuncti on(e,"Star tSchedule" ,"Schedule  Name")},N orth52.Wiz ardFunctio ns.StopSch edule=func tion(e){No rth52.Wiza rdFunction s.OneParam eterFuncti on(e,"Stop Schedule", "Schedule  Name")},No rth52.Wiza rdFunction s.Floor=fu nction(e){ North52.Wi zardFuncti ons.OnePar ameterFunc tion(e,"Fl oor","Inpu t Value")} ,North52.W izardFunct ions.Sqrt= function(e ){North52. WizardFunc tions.OneP arameterFu nction(e," Sqrt","Inp ut Value") },North52. WizardFunc tions.Sign =function( e){North52 .WizardFun ctions.One ParameterF unction(e, "Sign","In put Value" )},North52 .WizardFun ctions.Tru ncate=func tion(e){No rth52.Wiza rdFunction s.OneParam eterFuncti on(e,"Trun cate","Inp ut Value") },North52. WizardFunc tions.Base 64Encode=f unction(e) {North52.W izardFunct ions.OnePa rameterFun ction(e,"B ase64Encod e","Input  Value")},N orth52.Wiz ardFunctio ns.Base64D ecode=func tion(e){No rth52.Wiza
  31   rdFunction s.OneParam eterFuncti on(e,"Base 64Decode", "Input Val ue")},Nort h52.Wizard Functions. Capitalize =function( e){North52 .WizardFun ctions.One ParameterF unction(e, "Capitaliz e","Input  Value")},N orth52.Wiz ardFunctio ns.Compres s=function (e){North5 2.WizardFu nctions.On eParameter Function(e ,"Compress ","Input V alue")},No rth52.Wiza rdFunction s.CountCha racters=fu nction(e){ North52.Wi zardFuncti ons.OnePar ameterFunc tion(e,"Co untCharact ers","Inpu t String") },North52. WizardFunc tions.Deco mpress=fun ction(e){N orth52.Wiz ardFunctio ns.OnePara meterFunct ion(e,"Dec ompress"," Input Valu e")},North 52.WizardF unctions.L ower=funct ion(e){Nor th52.Wizar dFunctions .OneParame terFunctio n(e,"Lower ","Input S tring")},N orth52.Wiz ardFunctio ns.MD5=fun ction(e){N orth52.Wiz ardFunctio ns.OnePara meterFunct ion(e,"MD5 ","Input S tring")},N orth52.Wiz ardFunctio ns.Reverse =function( e){North52 .WizardFun ctions.One ParameterF unction(e, "Reverse", "Input Str ing")},Nor th52.Wizar dFunctions .SHA1=func tion(e){No rth52.Wiza rdFunction s.OneParam eterFuncti on(e,"SHA1 ","Input S tring")},N orth52.Wiz ardFunctio ns.Upper=f unction(e) {North52.W izardFunct ions.OnePa rameterFun ction(e,"U pper","Inp ut String" )},North52 .WizardFun ctions.Tot itleCase=f unction(e) {North52.W izardFunct ions.OnePa rameterFun ction(e,"T otitleCase ","Input S tring")},N orth52.Wiz ardFunctio ns.AutoNum ber=functi on(e){Nort h52.Wizard Functions. OneParamet erFunction (e,"AutoNu mber","Inp ut String" )},North52 .WizardFun ctions.Get UserRoles= function(e ){North52. WizardFunc tions.OneP arameterFu nction(e," GetUserRol es","User  ID")},Nort h52.Wizard Functions. GetUserTea ms=functio n(e){North 52.WizardF unctions.O neParamete rFunction( e,"GetUser Teams","In put String ")},North5 2.WizardFu nctions.Se ndEmail=fu nction(e){ North52.Wi zardFuncti ons.OnePar ameterFunc tion(e,"Se ndEmail"," Email ID") },North52. WizardFunc tions.Gene rateGuid=f unction(e) {North52.W izardFunct ions.ZeroP arameterFu nction(e," GenerateGu id")},Nort h52.Wizard Functions. RemoveAttr ibute=func tion(e){No rth52.Wiza rdFunction s.ZeroPara meterFunct ion(e,"Rem oveAttribu te")},Nort h52.Wizard Functions. GetMessage Name=funct ion(e){Nor th52.Wizar dFunctions .ZeroParam eterFuncti on(e,"GetM essageName ")},North5 2.WizardFu nctions.Ge tPrimaryEn tityName=f unction(e) {North52.W izardFunct ions.ZeroP arameterFu nction(e," GetPrimary EntityName ")},North5 2.WizardFu nctions.GC D=function (e){North5 2.WizardFu nctions.Tw oParameter Function(e ,"GCD","In put Number  One","Inp ut Number  Two")},Nor th52.Wizar dFunctions .LCM=funct ion(e){Nor th52.Wizar dFunctions .TwoParame terFunctio n(e,"LCM", "Input Num ber One"," Input Numb er Two")}, North52.Wi zardFuncti ons.MaxOf= function(e ){North52. WizardFunc tions.TwoP arameterFu nction(e," MaxOf","In put Number  One","Inp ut Number  Two")},Nor th52.Wizar dFunctions .MinOf=fun ction(e){N orth52.Wiz ardFunctio ns.TwoPara meterFunct ion(e,"Min Of","Input  Number On e","Input  Number Two ")},North5 2.WizardFu nctions.Mi nOfDates=f unction(e) {North52.W izardFunct ions.FourP arameterFu nction(e," MinOfDates ","Input D ate One"," Input Date  Two","Inp ut Date Th ree","Inpu t Date Fou r")},North 52.WizardF unctions.M axOfDates= function(e ){North52. WizardFunc tions.Four ParameterF unction(e, "MaxOfDate s","Input  Date One", "Input Dat e Two","In put Date T hree","Inp ut Date Fo ur")},Nort h52.Wizard Functions. FindMatchP arameter=f unction(e) {North52.W izardFunct ions.FourP arameterFu nction(e," FindMatchP arameter", "Input Par ameter","M atch Param eter One", "Match Par ameter Two ","Match P arameter T hree")},No rth52.Wiza rdFunction s.Pow=func tion(e){No rth52.Wiza rdFunction s.TwoParam eterFuncti on(e,"Pow" ,"Input Va lue","Powe r")},North 52.WizardF unctions.R ound=funct ion(e){Nor th52.Wizar dFunctions .TwoParame terFunctio n(e,"Round ","Input V alue","Dig it Precisi on")},Nort h52.Wizard Functions. RegexMatch =function( e){North52 .WizardFun ctions.Two ParameterF unction(e, "RegexMatc h","Input  String","R egEx")},No rth52.Wiza rdFunction s.RegexIsM atch=funct ion(e){Nor th52.Wizar dFunctions .TwoParame terFunctio n(e,"Regex IsMatch"," Input Stri ng","RegEx ")},North5 2.WizardFu nctions.En dsWith=fun ction(e){N orth52.Wiz ardFunctio ns.TwoPara meterFunct ion(e,"End sWith","In put String ","Ends Wi th String" )},North52 .WizardFun ctions.Get ParamFromU rl=functio n(e){North 52.WizardF unctions.T woParamete rFunction( e,"GetPara mFromUrl", "URL","Par ameter")}, North52.Wi zardFuncti ons.Right= function(e ){North52. WizardFunc tions.TwoP arameterFu nction(e," Right","In put String ","Number  of Charact ers")},Nor th52.Wizar dFunctions .Left=func tion(e){No rth52.Wiza rdFunction s.TwoParam eterFuncti on(e,"Left ","Input S tring","Nu mber of Ch aracters") },North52. WizardFunc tions.Star tsWith=fun ction(e){N orth52.Wiz ardFunctio ns.TwoPara meterFunct ion(e,"Sta rtsWith"," Input Stri ng","Start s With Str ing")},Nor th52.Wizar dFunctions .ToString= function(e ){North52. WizardFunc tions.TwoP arameterFu nction(e," ToString", "Input Str ing","Form at")},Nort h52.Wizard Functions. Trim=funct ion(e){Nor th52.Wizar dFunctions .TwoParame terFunctio n(e,"Trim" ,"Input St ring","Cha racter To  Trim")},No rth52.Wiza rdFunction s.MaxOf=fu nction(e){ North52.Wi zardFuncti ons.TwoPar ameterFunc tion(e,"Ma xOf","Inpu t Value On e","Input  Value Two" )},North52 .WizardFun ctions.Min Of=functio n(e){North 52.WizardF unctions.T woParamete rFunction( e,"MinOf", "Input Val ue One","I nput Value  Two")},No rth52.Wiza rdFunction s.Random=f
  32   unction(e) {North52.W izardFunct ions.TwoPa rameterFun ction(e,"R andom","Mi n Value"," Max Value" )},North52 .WizardFun ctions.Set CurrencySy mbol=funct ion(e){Nor th52.Wizar dFunctions .TwoParame terFunctio n(e,"SetCu rrencySymb ol","Input  Value","C urrency Sy mbol")},No rth52.Wiza rdFunction s.IfTrue=f unction(e) {North52.W izardFunct ions.TwoPa rameterFun ction(e,"I fTrue","Ex pression", "Action If  True")},N orth52.Wiz ardFunctio ns.Contain s=function (e){North5 2.WizardFu nctions.Tw oParameter Function(e ,"Contains ","Input S tring","St ring To Fi nd")},Nort h52.Wizard Functions. If=functio n(e){North 52.WizardF unctions.T hreeParame terFunctio n(e,"If"," Expression ","Action  If True"," Action If  False")},N orth52.Wiz ardFunctio ns.RegexRe place=func tion(e){No rth52.Wiza rdFunction s.ThreePar ameterFunc tion(e,"Re gexReplace ","Input S tring","Re gex To Fin d","Regex  To Replace ")},North5 2.WizardFu nctions.Ap pendFormat =function( e){North52 .WizardFun ctions.Thr eeParamete rFunction( e,"AppendF ormat","In put String ","Param Z ero","Para m One")},N orth52.Wiz ardFunctio ns.IndexOf =function( e){North52 .WizardFun ctions.Thr eeParamete rFunction( e,"IndexOf ","Input S tring","St ring To Fi nd","Start  Index")}, North52.Wi zardFuncti ons.Insert =function( e){North52 .WizardFun ctions.Thr eeParamete rFunction( e,"Insert" ,"Input St ring","Pos ition","In sert Strin g")},North 52.WizardF unctions.P adLeft=fun ction(e){N orth52.Wiz ardFunctio ns.ThreePa rameterFun ction(e,"P adLeft","I nput Strin g","Total  Length","C haracter T o Pad")},N orth52.Wiz ardFunctio ns.PadRigh t=function (e){North5 2.WizardFu nctions.Th reeParamet erFunction (e,"PadRig ht","Input  String"," Total Leng th","Chara cter To Pa d")},North 52.WizardF unctions.R eplace=fun ction(e){N orth52.Wiz ardFunctio ns.ThreePa rameterFun ction(e,"R eplace","I nput Strin g","String  To Be Rep laced","Re placement  String")}, North52.Wi zardFuncti ons.Replac eMultiple= function(e ){North52. WizardFunc tions.Thre eParameter Function(e ,"ReplaceM ultiple"," Input Stri ng","CSV l ist of Str ings to be  Replaced" ,"Replacem ent String ")},North5 2.WizardFu nctions.Re move=funct ion(e){Nor th52.Wizar dFunctions .ThreePara meterFunct ion(e,"Rem ove","Inpu t String", "Start Pos ition","No . Characte rs To Remo ve")},Nort h52.Wizard Functions. Slice=func tion(e){No rth52.Wiza rdFunction s.ThreePar ameterFunc tion(e,"Sl ice","Inpu t String", "Start Pos ition","En d Position ")},North5 2.WizardFu nctions.Sp lit=functi on(e){Nort h52.Wizard Functions. ThreeParam eterFuncti on(e,"Spli t","Input  String","C haracter T o Split On ","Index") },North52. WizardFunc tions.Stri ngFormat=f unction(e) {North52.W izardFunct ions.Three ParameterF unction(e, "StringFor mat","Inpu t String", "Param Zer o","Param  One")},Nor th52.Wizar dFunctions .Substring =function( e){North52 .WizardFun ctions.Thr eeParamete rFunction( e,"Substri ng","Input  String"," Start Posi tion","Len gth")},Nor th52.Wizar dFunctions .DamerauLe venshteinD istance=fu nction(e){ North52.Wi zardFuncti ons.TwoPar ameterFunc tion(e,"Da merauLeven shteinDist ance","Inp ut String  One","Inpu t String T wo")},Nort h52.Wizard Functions. Levenshtei nDistance= function(e ){North52. WizardFunc tions.TwoP arameterFu nction(e," Levenshtei nDistance" ,"Input St ring One", "Input Str ing Two")} ,North52.W izardFunct ions.GetPa rtyListIte mId=functi on(e){Nort h52.Wizard Functions. TwoParamet erFunction (e,"GetPar tyListItem Id","Party  List","In dex")},Nor th52.Wizar dFunctions .GetPartyL istItemTyp e=function (e){North5 2.WizardFu nctions.Tw oParameter Function(e ,"GetParty ListItemTy pe","Party  List","In dex")},Nor th52.Wizar dFunctions .GetPartyL istItemNam e=function (e){North5 2.WizardFu nctions.Tw oParameter Function(e ,"GetParty ListItemNa me","Party  List","In dex")},Nor th52.Wizar dFunctions .RegexMatc h=function (e){North5 2.WizardFu nctions.Tw oParameter Function(e ,"RegexMat ch","Input  String"," RegEx")},N orth52.Wiz ardFunctio ns.RegexIs Match=func tion(e){No rth52.Wiza rdFunction s.TwoParam eterFuncti on(e,"Rege xIsMatch", "Input Str ing","RegE x")},North 52.WizardF unctions.R egexReplac e=function (e){North5 2.WizardFu nctions.Th reeParamet erFunction (e,"RegexR eplace","I nput Strin g","RegEx  To Find"," RegEx To R eplace")}, North52.Wi zardFuncti ons.Metaph one3=funct ion(e){Nor th52.Wizar dFunctions .OneParame terFunctio n(e,"Metap hone3","In put String ")},North5 2.WizardFu nctions.Se tLookup=fu nction(e){ North52.Wi zardFuncti ons.OnePar ameterFunc tion(e,"Se tLookup"," GUID")},No rth52.Wiza rdFunction s.SetOwner Team=funct ion(e){Nor th52.Wizar dFunctions .OneParame terFunctio n(e,"SetOw nerTeam"," GUID")},No rth52.Wiza rdFunction s.SetOwner User=funct ion(e){Nor th52.Wizar dFunctions .OneParame terFunctio n(e,"SetOw nerUser"," GUID")},No rth52.Wiza rdFunction s.GetParty ListCount= function(e ){North52. WizardFunc tions.OneP arameterFu nction(e," GetPartyLi stCount"," Party List ")},North5 2.WizardFu nctions.Si milarity=f unction(e) {North52.W izardFunct ions.Three ParameterF unction(e, "Similarit y","Input  String","I nput Strin g Two","Di stance")}, North52.Wi zardFuncti ons.SetSta te=functio n(e){North 52.WizardF unctions.T woParamete rFunction( e,"SetStat e","State" ,"Status") },North52. WizardFunc tions.SetR egardingLo okup=funct ion(e){Nor th52.Wizar dFunctions .ThreePara meterFunct ion(e,"Set RegardingL ookup","En tity Name" ,"GUID","P rimary Fie ld Text")} ,North52.W izardFunct ions.SetCu stomerLook up=functio n(e){North 52.WizardF unctions.T hreeParame terFunctio n(e,"SetCu stomerLook up","Entit
  33   y Name","G UID","Prim ary Field  Text")},No rth52.Wiza rdFunction s.SetParty List=funct ion(e){Nor th52.Wizar dFunctions .ThreePara meterFunct ion(e,"Set PartyList" ,"Entity N ame","GUID ","GUID")} ,North52.W izardFunct ions.FindV alue=funct ion(e){Nor th52.Wizar dFunctions .FindScala r(e,"FindV alue")},No rth52.Wiza rdFunction s.FindAvg= function(e ){North52. WizardFunc tions.Find Scalar(e," FindAvg")} ,North52.W izardFunct ions.FindM ax=functio n(e){North 52.WizardF unctions.F indScalar( e,"FindMax ")},North5 2.WizardFu nctions.Fi ndMin=func tion(e){No rth52.Wiza rdFunction s.FindScal ar(e,"Find Min")},Nor th52.Wizar dFunctions .FindSum=f unction(e) {North52.W izardFunct ions.FindS calar(e,"F indSum")}, North52.Wi zardFuncti ons.FindCo unt=functi on(e){Nort h52.Wizard Functions. FindScalar (e,"FindCo unt")},Nor th52.Wizar dFunctions .FindAvgFD =function( e){North52 .WizardFun ctions.Fin dScalarFD( e,"FindAvg FD")},Nort h52.Wizard Functions. FindMaxFD= function(e ){North52. WizardFunc tions.Find ScalarFD(e ,"FindMaxF D")},North 52.WizardF unctions.F indMinFD=f unction(e) {North52.W izardFunct ions.FindS calarFD(e, "FindMinFD ")},North5 2.WizardFu nctions.Fi ndSumFD=fu nction(e){ North52.Wi zardFuncti ons.FindSc alarFD(e," FindSumFD" )},North52 .WizardFun ctions.Fin dCountFD=f unction(e) {North52.W izardFunct ions.FindS calarFD(e, "FindCount FD")},Nort h52.Wizard Functions. FindValueF D=function (e){North5 2.WizardFu nctions.Fi ndScalarFD (e,"FindVa lueFD")},N orth52.Wiz ardFunctio ns.Associa teEntities =function( e){North52 .WizardFun ctions.NNE ntities(e, "Associate Entities") },North52. WizardFunc tions.DisA ssociateEn tities=fun ction(e){N orth52.Wiz ardFunctio ns.NNEntit ies(e,"Dis AssociateE ntities")} ,North52.W izardFunct ions.BPSet ActiveProc ess=functi on(e){Nort h52.Wizard Functions. SingleProc ess(e,"BPS etActivePr ocess","Bu siness Pro cesses",4) },North52. WizardFunc tions.Find BPProcessI D=function (e){North5 2.WizardFu nctions.Si ngleProces s(e,"FindB PProcessID ","Busines s Processe s",4)},Nor th52.Wizar dFunctions .BPSetActi veStage=fu nction(e){ North52.Wi zardFuncti ons.Single ProcessExt ended(e,"B PSetActive Stage","Bu siness Pro cesses",4) },North52. WizardFunc tions.BPSe tActiveSta geSS=funct ion(e){Nor th52.Wizar dFunctions .BPSetActi veStageSSE x(e,"BPSet ActiveStag eSS","Busi ness Proce sses",4)}, North52.Wi zardFuncti ons.FindBP GetStageID =function( e){North52 .WizardFun ctions.Sin gleProcess Extended(e ,"FindBPGe tStageID", "Business  Processes" ,4)},North 52.WizardF unctions.E xecuteDial og=functio n(e){North 52.WizardF unctions.S ingleProce ss(e,"Exec uteDialog" ,"Dialogs" ,1)},North 52.WizardF unctions.F indValueQu ickId=func tion(e){No rth52.Wiza rdFunction s.FindValu eQuick(e," FindValueQ uickId","N ame of Rec ord to Fin d ID of")} ,North52.W izardFunct ions.FindV alueQuickN ame=functi on(e){Nort h52.Wizard Functions. FindValueQ uick(e,"Fi ndValueQui ckName","I D of Recor d to Find  Name of")} ,North52.W izardFunct ions.FindV alueQuickI dEx=functi on(e){Nort h52.Wizard Functions. FindValueQ uick(e,"Fi ndValueQui ckIdEx","N ame of Rec ord to Fin d ID of")} ,North52.W izardFunct ions.xCach eAddCalcul atedFieldL ocal=funct ion(e){Nor th52.Wizar dFunctions .FourParam eterFuncti on(e,"xCac heAddCalcu latedField Local","Ke y","Name", "Datatype" ,"Expressi on")},Nort h52.Wizard Functions. xCacheCalc ulateLocal =function( e){North52 .WizardFun ctions.Fou rParameter Function(e ,"xCacheCa lculateLoc al","Key", "Expressio n","Filter ","Default  Value")}, North52.Wi zardFuncti ons.xCache FilterLoca l=function (e){North5 2.WizardFu nctions.Th reeParamet erFunction (e,"xCache FilterLoca l","Key"," Filter","S ort")},Nor th52.Wizar dFunctions .xCacheGet Local=func tion(e){No rth52.Wiza rdFunction s.FourPara meterFunct ion(e,"xCa cheGetLoca l","Key"," Field Name ","Default  Value","R ow Number" )},North52 .WizardFun ctions.xCa cheLoadLoc al=functio n(e){North 52.WizardF unctions.T woParamete rFunction( e,"xCacheL oadLocal", "Key","Ent ity Collec tion")},No rth52.Wiza rdFunction s.AzureCog nitiveIssu eToken=fun ction(e){N orth52.Wiz ardFunctio ns.OnePara meterFunct ion(e,"Azu reCognitiv eIssueToke n","Key")} ,North52.W izardFunct ions.Outpu tToTrace=f unction(e) {North52.W izardFunct ions.OnePa rameterFun ction(e,"O utputToTra ce","Data  Element to  Trace")}, North52.Wi zardFuncti ons.GetCal endarRules =function( e){North52 .WizardFun ctions.One ParameterF unction(e, "GetCalend arRules"," Calendar I D")},North 52.WizardF unctions.T oTitleCase =function( e){North52 .WizardFun ctions.One ParameterF unction(e, "ToTitleCa se","Input  String")} ,North52.W izardFunct ions.GetDe pth=functi on(e){Nort h52.Wizard Functions. ZeroParame terFunctio n(e,"GetDe pth")},Nor th52.Wizar dFunctions .Break=fun ction(e){N orth52.Wiz ardFunctio ns.ZeroPar ameterFunc tion(e,"Br eak")},Nor th52.Wizar dFunctions .Haversine Distance=f unction(e) {North52.W izardFunct ions.FourP arameterFu nction(e," HaversineD istance"," Longitude  From","Lat itude From ","Longitu de To","La titude To" )},North52 .WizardFun ctions.Doe sUserHaveP rivilege=f unction(e) {North52.W izardFunct ions.TwoPa rameterFun ction(e,"D oesUserHav ePrivilege ","User ID ","Privile ge Name")} ,North52.W izardFunct ions.Conve rtSalesOrd erToInvoic e=function (e){North5 2.WizardFu nctions.On eParameter Function(e ,"ConvertS alesOrderT oInvoice", "Sales Ord er ID")},N orth52.Wiz ardFunctio ns.Convert QuoteToSal esOrder=fu nction(e){ North52.Wi zardFuncti ons.OnePar ameterFunc tion(e,"Co nvertQuote ToSalesOrd er","Quote  ID")},Nor th52.Wizar dFunctions .StringCon cat=functi
  34   on(e){Nort h52.Wizard Functions. FourParame terFunctio n(e,"Strin gConcat"," Input Stri ng1","Inpu t String2" ,"Input St ring3","In put String 4")},North 52.WizardF unctions.S tringJoin= function(e ){North52. WizardFunc tions.Four ParameterF unction(e, "StringJoi n","Delimi ter","Inpu t String1" ,"Input St ring2","In put String 3")},North 52.WizardF unctions.H tmlEncode= function(e ){North52. WizardFunc tions.OneP arameterFu nction(e," HtmlEncode ","Input S tring")},N orth52.Wiz ardFunctio ns.EscapeD ataString= function(e ){North52. WizardFunc tions.OneP arameterFu nction(e," EscapeData String","I nput Strin g")},North 52.WizardF unctions.H tmlDecode= function(e ){North52. WizardFunc tions.OneP arameterFu nction(e," HtmlDecode ","Input S tring")},N orth52.Wiz ardFunctio ns.EscapeU riString=f unction(e) {North52.W izardFunct ions.OnePa rameterFun ction(e,"E scapeUriSt ring","URI ")},North5 2.WizardFu nctions.Qu ickButtonE nable=func tion(e){No rth52.Wiza rdFunction s.OneParam eterFuncti on(e,"Quic kButtonEna ble","WebR esource Na me")},Nort h52.Wizard Functions. QuickButto nDisable=f unction(e) {North52.W izardFunct ions.OnePa rameterFun ction(e,"Q uickButton Disable"," WebResourc e Name")}, North52.Wi zardFuncti ons.Browse rReload=fu nction(e){ North52.Wi zardFuncti ons.OnePar ameterBool eanFunctio n(e,"Brows erReload", "Fire Manu al Save Be fore Reloa d")};