Produced by Araxis Merge on 5/9/2017 12:03:03 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Tue May 9 16:03:03 2017 UTC | ||
| 2 | OSCIF_HEC_v1.4_Sprint23_build4_Apr_2017.zip\CRM_solutions\Managed\North52BPA_1_0_0_506_managed_2013_2015_2016..zip\WebResources | north52_javascriptnorth52formulasave765A54CA-4BB5-E011-B37A-00155DF5B00D | Mon Sep 19 18:20:18 2016 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 85 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | if (typeof (N52) == "undefined ") | |||||
| 2 | { N52 = {} ; } | |||||
| 3 | ||||||
| 4 | N52.Formul aSave = | |||||
| 5 | { | |||||
| 6 | ||||||
| 7 | SaveFormul a: functio n (executi onContext) | |||||
| 8 | { | |||||
| 9 | try | |||||
| 10 | { | |||||
| 11 | ||||||
| 12 | if (N5 2.FormulaS ave.CheckS ave(execut ionContext ) == false ) | |||||
| 13 | r eturn; | |||||
| 14 | ||||||
| 15 | ||||||
| 16 | Xrm.Pag e.getContr ol("WebRes ource_form ulaeditor" ).getObjec t().conten tWindow.wi ndow.SaveF ormula(); | |||||
| 17 | ||||||
| 18 | N52.For mulaSave.S etClientSi dePayLoad( ); | |||||
| 19 | ||||||
| 20 | N52.Fo rmulaSave. SetDefault Name(); | |||||
| 21 | ||||||
| 22 | ||||||
| 23 | } | |||||
| 24 | catch(ex ) | |||||
| 25 | { | |||||
| 26 | alert( "North52 F ormula Man ager Excep tion: " + ex.message ); | |||||
| 27 | } | |||||
| 28 | ||||||
| 29 | }, | |||||
| 30 | ||||||
| 31 | ||||||
| 32 | CheckSave: function (execution Context) | |||||
| 33 | { | |||||
| 34 | var eve ntArgs = e xecutionCo ntext.getE ventArgs() ; | |||||
| 35 | if (ev entArgs.ge tSaveMode( ) == 70) { | |||||
| 36 | ev entArgs.pr eventDefau lt(); | |||||
| 37 | re turn false ; | |||||
| 38 | } | |||||
| 39 | ||||||
| 40 | if (ev entArgs.ge tSaveMode( ) == 2) { | |||||
| 41 | ev entArgs.pr eventDefau lt(); | |||||
| 42 | re turn false ; | |||||
| 43 | } | |||||
| 44 | ||||||
| 45 | ||||||
| 46 | return true; | |||||
| 47 | }, | |||||
| 48 | ||||||
| 49 | SetDefault Name: func tion () | |||||
| 50 | { | |||||
| 51 | ||||||
| 52 | if ((Xr m.Page.ui. getFormTyp e() == 1) && (Xrm.Pa ge.data.en tity.attri butes.get( "north52_f ormulatype ").getValu e() != 217 890017) ) | |||||
| 53 | { | |||||
| 54 | name = Xrm.Pag e.getAttri bute('nort h52_source entityname ').getValu e(); | |||||
| 55 | name = name + " - " + Xr m.Page.get Attribute( "north52_f ormulatype ").getText (); | |||||
| 56 | name = name + " - " + ne w Date(); | |||||
| 57 | Xrm. Page.getAt tribute('n orth52_nam e').setVal ue(name); | |||||
| 58 | } | |||||
| 59 | }, | |||||
| 60 | ||||||
| 61 | SetClientS idePayLoad : function () | |||||
| 62 | { | |||||
| 63 | var ex istingPayL oad = Xrm .Page.getA ttribute(' north52_cl ientsideda tapayload' ).getValue (); | |||||
| 64 | if ((ex istingPayL oad == nul l) || (exi stingPayLo ad == '') ) | |||||
| 65 | e xistingPay Load = '*' ; | |||||
| 66 | else | |||||
| 67 | ex istingPayL oad = exis tingPayLoa d.split(': ')[0]; | |||||
| 68 | ||||||
| 69 | var add itionalEve nts = ''; | |||||
| 70 | if ((Xr m.Page.get Attribute( 'north52_s ourceentit ypropertyc lientside' ).getValue () != null ) && (Xrm. Page.getAt tribute('n orth52_sou rceentityp ropertycli entside'). getValue() .indexOf(' .onload.st ageid') > -1 )) | |||||
| 71 | add itionalEve nts = ':st ageid'; | |||||
| 72 | else | |||||
| 73 | add itionalEve nts = ':'; | |||||
| 74 | ||||||
| 75 | var sav eMode = ': ' + Xrm.Pa ge.getCont rol("WebRe source_for mulaeditor ").getObje ct().conte ntWindow.w indow.GetS aveModeInf o(); | |||||
| 76 | ||||||
| 77 | if ((X rm.Page.da ta.entity. attributes .get("nort h52_pipeli neevent"). getValue() == 217890 000) || ( Xrm.Page.d ata.entity .attribute s.get("nor th52_pipel ineevent") .getValue( ) == 21789 0005) ) | |||||
| 78 | Xr m.Page.get Attribute( 'north52_c lientsided atapayload ').setValu e(existing PayLoad + ':Create' + additio nalEvents+ saveMode); | |||||
| 79 | else if ((Xrm.Pa ge.data.en tity.attri butes.get( "north52_p ipelineeve nt").getVa lue() == 2 17890001) || (Xrm.P age.data.e ntity.attr ibutes.get ("north52_ pipelineev ent").getV alue() == 217890006) ) | |||||
| 80 | Xr m.Page.get Attribute( 'north52_c lientsided atapayload ').setValu e(existing PayLoad + ':Update' + addition alEvents+s aveMode); | |||||
| 81 | else if ((Xrm.Pa ge.data.en tity.attri butes.get( "north52_p ipelineeve nt").getVa lue() == 2 17890002) || (Xrm.P age.data.e ntity.attr ibutes.get ("north52_ pipelineev ent").getV alue() == 217890004) ) | |||||
| 82 | Xr m.Page.get Attribute( 'north52_c lientsided atapayload ').setValu e(existing PayLoad + ':CreateUp date' + ad ditionalEv ents+saveM ode); | |||||
| 83 | } | |||||
| 84 | ||||||
| 85 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.