ࡱ> _o}y(Saveu"Tahoma53(Cancel53u"Tahoma53Ѝ$#Frame1g ,4CommandButton1 :k*,8CommandButton2 :'* Microsoft Forms 2.0 FormEmbedded Object9qVERSION 5.00 Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} Coghei05DLJ n``ЍЍfo oIKelCompObjcp \p Diablo Yang Ba= ThisWorkbook=K!|<X@"1[SO1[SO1[SO1[SO1[SO1[SO1[SO1Marlett1[SO1 [SO1[SO14[SO1 [SO1[SO1[SO1,8[SO18[SO18[SO1>[SO14[SO1<[SO1?[SO1h8[SO1[SO1 [SO"$"#,##0_);\("$"#,##0\)!"$"#,##0_);[Red]\("$"#,##0\)""$"#,##0.00_);\("$"#,##0.00\)'""$"#,##0.00_);[Red]\("$"#,##0.00\)7*2_("$"* #,##0_);_("$"* \(#,##0\);_("$"* "-"_);_(@_).))_(* #,##0_);_(* \(#,##0\);_(* "-"_);_(@_)?,:_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)6+1_(* #,##0.00_);_(* \(#,##0.00\);_(* "-"??_);_(@_)+""#,##0;""\-#,##05""#,##0;[Red]""\-#,##07""#,##0.00;""\-#,##0.00A""#,##0.00;[Red]""\-#,##0.00i2_ ""* #,##0_ ;_ ""* \-#,##0_ ;_ ""* "-"_ ;_ @_ .)_ * #,##0_ ;_ * \-#,##0_ ;_ * "-"_ ;_ @_ y:_ ""* #,##0.00_ ;_ ""* \-#,##0.00_ ;_ ""* "-"??_ ;_ @_ 61_ * #,##0.00_ ;_ * \-#,##0.00_ ;_ * "-"??_ ;_ @_ \$#,##0_);\(\$#,##0\)\$#,##0_);[Red]\(\$#,##0\) \$#,##0.00_);\(\$#,##0.00\)% \$#,##0.00_);[Red]\(\$#,##0.00\)+""#,##0;\-""#,##05""#,##0;[Red]\-""#,##07""#,##0.00;\-""#,##0.00A""#,##0.00;[Red]\-""#,##0.00e0_-""* #,##0_-;\-""* #,##0_-;_-""* "-"_-;_-@_-,'_-* #,##0_-;\-* #,##0_-;_-* "-"_-;_-@_-u8_-""* #,##0.00_-;\-""* #,##0.00_-;_-""* "-"??_-;_-@_-4/_-* #,##0.00_-;\-* #,##0.00_-;_-* "-"??_-;_-@_-                                                                      ff + ) , *   P P      `         a>    1 ||A!}<} _-;_-* "ef #,#}<} _-;_-* "ef #,#}<} _-;_-* "ef #,#}<} _-;_-* "ef #,#}<} _-;_-* "ef #,#}<} _-;_-* "ef #,#}<} _-;_-* "L #,#}<} _-;_-* "L #,#}<} _-;_-* "L #,#}<} _-;_-* "L #,#}<} _-;_-* "L #,#}<} _-;_-* "L #,#}<} _-;_-* "23 #,#}<} _-;_-* "23 #,#}<} _-;_-* "23 #,#}<} _-;_-* "23 #,#}<}  _-;_-* "23 #,#}<}! _-;_-* "23 #,#}<}" _-;_-* " #,#}<}# _-;_-* " #,#}<}$ _-;_-* " #,#}<}% _-;_-* " #,#}<}& _-;_-* " #,#}<}' _-;_-* " #,#}<}( _-;_-* " #,#}}) }_-;_-* " #,#-;_--"?? _-_ }}* _-;_-* " #,#???-;_-???-"?? ???_-_ ???}(}/ _-;_-* "}<}0 a_-;_-* " #,#}<}1 _-;_-* " #,#}<}2 _-;_-* "? #,#}<}3 _-;_-* "23 #,#}(}4 _-;_-* "}}5 ??v_-;_-* "̙ #,#-;_--"?? _-_ }<}6 }_-;_-* " #,#}<}7 e_-;_-* " #,#}x}8_-;_-* " #,#-;_- -"?? _-_ }}9 ???_-;_-* " #,#???-;_-???-"?? ???_-_ ???}(}; _-;_-* "}P}< _-;_-* " #,#-;_-}(}= _-;_-* " 20% - Accent1H 20% - Accent1 ef  20% - Accent2H" 20% - Accent2 ef  20% - Accent3H& 20% - Accent3 ef  20% - Accent4H* 20% - Accent4 ef  20% - Accent5H. 20% - Accent5 ef  20% - Accent6H2 20% - Accent6  ef  40% - Accent1H 40% - Accent1 L  40% - Accent2H# 40% - Accent2 L湸  40% - Accent3H' 40% - Accent3 L  40% - Accent4H+ 40% - Accent4 L  40% - Accent5H/ 40% - Accent5 L  40% - Accent6H3 40% - Accent6  Lմ  60% - Accent1H 60% - Accent1 23  60% - Accent2H$ 60% - Accent2 23ٗ  60% - Accent3H( 60% - Accent3 23֚  60% - Accent4H, 60% - Accent4 23  60% - Accent5H0 60% - Accent5 23 ! 60% - Accent6H4 60% - Accent6  23  "Accent1<Accent1 O  #Accent2<!Accent2 PM  $Accent3<%Accent3 Y  %Accent4<)Accent4 d  &Accent5<-Accent5 K  'Accent6<1Accent6  F (Bad4Bad  ) Calculation| Calculation  } * Check Cellz Check Cell  ????????? ???+ Comma,( Comma [0]-&Currency.. Currency [0]/Explanatory TextB5Explanatory Text  0Good6Good  a1 Heading 1B Heading 1 I}O2 Heading 2B Heading 2 I}?3 Heading 3B Heading 3 I}234 Heading 44 Heading 4 I} 5InputpInput ̙ ??v 6 Linked CellF Linked Cell } 7Neutral<Neutral  e"Normal 8Noteb Note   9OutputrOutput  ???????????? ???:$Percent ;Title,Title I} <TotalHTotal OO= Warning Text: Warning Text XTableStyleMedium9PivotStyleLight16`I3Sheet3uU Account:  7 TestAccount 7 Application:  7Employee Management 7 Collection:  7 Employees 7 View Name:  7Employees View 7a Document Name First Name Last NameTitle DepartmentPhone IM Address Full NameIDEmployees1995186004645JonathanWangCEOBoss 13800000001jonathan_wang@rogers.com Jonathan WangEmployees3968552623587JerryHuangProduct ManagerCoghead 13800000002jerry2008@yahoo.com Jerry HuangEmployees5314263787157KevinLuoApplication Engineer 13800000003kevin_luo_sl@yahoo.com.cn Kevin LuoEmployees5854454593530DiabloYang 13800000004diabloyangsl@yahoo.com Diablo YangEmployees5999225505476JohnnyZhuangEngineer 13800000005johnny_zhuang_sl@yahoo.com Johnny ZhuangEmployees6224439618722ColinZou 13800000006colin_zou_sl@yahoo.com Colin ZouEmployees6527724666961Alice 13800000007alice_luo_sl@yahoo.com Alice LuoEmployees15354726940435Louis138louis_luo_sl@yahoo.com Louis LuoEmployees15724654821213Tomtom_wang_sl@yahoo.com.cnTom WangEmployees15993902457714DaniShan dani_shan_sl Dani ShanEmployees16078291624214AlbertZhangAlbert_zhang_sl Albert ZhangZ, .&b.}.7/R/F0a0@1[1<2WccB{mU7hgY H  5C>  dMbP?_*+%&?'?(?)?MnMicrosoft Office Document Imag/d,,Letterwidm"d,,??&U} }  } @ }  } } @ }  } `} }             ;            >  >  >  >  ? > > > > > > > >  > @ @ @ @ @ @ @ @  @ @ @ @ @ @ @ @ @!  @ @" @# @$ @% @ @& @' @(  @" @) @* @+ @% @ @, @- @. @) @/ @0 @1 @2 @ @3 @4 @5 @/ @6 @7 @8 @2 @ @9 @: @; @6 @< @= @$ @2 @ @> @? @@ @< @A @B @$ @2 @ @C @D @E @A @F @G @ @2 @ @C @H @I  @F @J @K @L @2 @ @C @M @N  @J @O @P @Q @2 @ @R @S @T  @O&@~~~~~~~~~~P>@  7 Sheet3ggD VBA ͍ ύThisWorkbook CellManagement~'EInternetTransfer"!  !"#$%&()*+,-./012345689;<=>?@ABDEFGIJKLMNOPQRSTUWYZ[\^_`abcdefghijklmnopqrstuvwxyz{|}~|8UZ^#*\H:FL29B;QxME P[LSS<<*<<<N0{00020819-0000-0000-C000-000000000046} ( %  ``i"  &`@@  (x%`,v  %"4@x%%H ((PD MI "  8P "X 2`*,/  "8PX`p]( hWorksheet Menu BarA@$ectoChart Menu BarA@$o(,Initialize the menu when this workbook opens] ( .!0 (!2Coghead Connector (!,|k . /4Worksheet Menu BarA@6Chart Menu BarA@6A@8A@:o:Attribute VB_Name = "ThisWorkbook" Bas0{00020P819-0C$0046} |GlobalSpacFalse dCreatablPredeclaIdTru BExposeTemplateDerivBustomizD2Dim ApplicationClass @As New Event P/3 Sub _BeforeClO(CancelBoolean) On Error ResuNext RemoveMenu ")@sheet Bar Char EndHOP Open(D"'Initialize the mAwhen@is w o s(Had5AddIn, instal^lZJ: F8Each In VN.D4If .TitB"Coghe@ Connector" A6ad.GT)Exit?F lIfC GYSTMy. Buil>d\dd"@;CellAItem1RowFn'Z.#08@ " H8P* &8Xp x            ( 0 8 H  X 2p          , ( 0 P  X ` h p x     "  8  * 8 @ H X ` h       4 B  $  0 <@ X ` p 4px I  @ %   @ %@ X ` h p x  B "   &0@8P   ""+ 058RX p:x "   4   " / ( 8Xh Bx "> <     (H TP .p B "> <  0 @HP XK` "   &A. F( @p H j Nh    "8 8 %8 HPX `Khx] ]  ]$ Account: d_]$ Application: 8 ]$ Collection: (]$ View Name: P]$6` ]@xM-----------------------------------------------------------------------------#Import basic information into SheetM----------------------------------------------------------------------------- R BRT BA1+VA1$V!X(Z TB1+V DRT DA2+VA2$V!X(Z TB2+V FRT FA3+VA3$V!X(Z TB3+V HRT HA4+VA4$V!X(Z TB4+VnhA:B$\!^B@`oHN------------------------------------------------------------------------------&Import GetViewResponse data into sheetN------------------------------------------------------------------------------HhX l .(j .(n @ J  J'@k d'>.L > LB@p f]F$t'r] rAThe active sheet is not blank. Do you want to overwrite the data? | ~ $z'v v  fAinitSpreadSheet fA@Finished .(A@ .(n  .(j|dA .(n  .(j|kkk fA@Finished .(A@hH  !A@zk( .(n  .(jou_ 5$03ZxME @ @@@D(HJx H` (hPxH  8  <( %hx h @DFH\h (h @X Collection: View Name: 680   x  MI5 0Ph T * T "x  + A , + A , + A( ,@P +X Ah ,; T , T@"  % "     0 8 Z.@    & " %( 08 "@ %P` hpx & < " % "  *8X  pf    (]`F B6$V%!']xF  ']F L!'  ]MThe result data does not match the current shape. Overwrite existing columns? | ~ $z'v v A fA@kdA|ko]F B6$V%%']  $V  $V%$V.]@X]p  L!]F']F  X L%']F $']F'](  ]@F !T'  ' !'y(k    Ad Ak]X]p   ID  L!]F L!  X L%#'  'y0k(    , !: !'d !: !'kkk'  $VB@H  B@kHo@] F B6$V%%']8 $V  $V%$V.]X]x  ]  %. ! !'kPH   Ao(-Check weather the active sheet is a blank one] .!.  .!!.k]0]PA J A J$V%$V.   %$V.(  !%. !k  !%. !k'tzix;Init the spreadsheet while the active one is on a blank onehA:A$\B@HA6$VB@ Selection.Delete Shift:=xlToLeft] .!.A J A J$V% %V.   %$V. B@H B@o0Auto Format the SpreadSheet](H .!. !.V]h  V!\! V!\!!^B@`@A:A$\(o` fA]  L!  X L%Aoh .!( ]F' @ '@   <ActiveSheet.Cells(startCellPosition, columnIndex + 1).Select@ @  %(  @  %(T  'd] F'  : $B@H  B@kp   <ActiveSheet.Cells(startCellPosition, columnIndex + 1).Select@ @  %(  @  %(T  ' k | h ! !   B@|x op  ]x L%$'"hH f]  Marlett J %!X(a J , & " @Dim fieldXpath As String, fieldLable As String, index As Integer 9If UBound(CogheadService.g_FieldAndXpathMapping) > 0 Then B For index = 0 To UBound(CogheadService.g_FieldAndXpathMapping) d If StrComp(theTitleData(theIndex), CogheadService.g_FieldAndXpathMapping(index, 0)) = 0 Then H fieldXpath = CogheadService.g_FieldAndXpathMapping(index, 1)  End If  Next End If &$" J & , J & %.( (!X(Z k | h ! !   B@|p oh ` Attribute VB_Name = "CellManagement" Option Explicit Dim xmlAsSng As  PubL start0Posi~FIn tegerHConst ACCOUNT_STRHAccount: V1PPLICATION5pas9COLLEC8CollecVIEWNAME7View 6TITLE_ROW_NOlB6hrivadHatakfiRespe+D '-I 'Import basic info rmKto Sxhee@yI-|SPub iBI-A(B"CDgoryK, _ value )C Ses Ca `() ThengJ= #:Ifc= D!CSet1= N 4g.InitClass ~(h D+isEmpty^: = CheckAStaptus(Q msgBoxValVbMSd  Q= st("P 4*@ nblank. Do you want lov erwriuthe?", vbQues} +OKCancel 4 vbOKQ1Call OExingA{pRng( 'iSpread/2'1CtegX2.Bar@g"F d5ubG22I3l8Defa?O t E9BDR ) ?  0xl 0  >!Ohe/ Q:@6@<+s4T.Descri2 9 nplP4A2୛2hHD3Jd4t|Noa @pJx= DB6Bvd(xlToRight). e:"!er: /ns= iH- 2GFNoOfO; t '] NTitl0sSt <>o ` j!'M`Y+ GWresq{ ` doesWch p curr shape.Q col1OXUNXX bA_Tǃ TRowi/GReplace?f]xiLqRM/as%psA#SR_._.X.D(@Abste:= , )l)  Dim theIdColumnRange (As @ Se*t=(N(i|Address ),: ..End(xlDown))jqInteger, i #cellFor j = 1 To dataConfig.TheRowCopunts)FValuVari@ant, c~Index>: 2 %2Array()Strin1UV.IdE = 5(UBwdf(K (go?VBoolean: G= False9Target4|NoADj GdEach kIn(ʖ Jd8hN.vj If Comp( ,D) 0 Yn 9Tru9A N:=B1.rowExit @;K IfNex>tGQ3%-Ca@CreateU`wB>H,ԁ2EqgATo*OfcwE')d@ st^Aslo@otainInpResp9Lgdelete=FB &> <>` "ID"= iA edk1'[z=ziz(TitleÒh5% [2%@[1= S^apY"ndYakZ!C8!aNo"Co]Len((E) > 5z!J`3HL& "," &x@":  fa P_ i m9购s/_(X ).ScJ ion.DR Shift:=xlUpu qSub PrivJ FK9s0!8,i85"B6")ToRight).(Ibs}te:=b, Ak8c0T AN[ap LastC@` x~ T c(Qr EmptyYOn ErrP@]ume ?rSpecial A sqTypeBlanks, <23B .N umberQ[004O]1~y 6}1tt + 1,RS . 'Check wPyh P active sheis a b on`51Fun`on  A"SStatLus1^sWbqWorkbookp= ApplicatQ:pIs Yhz>s14qgE#", ?$sPtrPrКtS~t1@b'("AYTITLE_ROW_NO? A4(_sO.U1=b.5-.o.la.Pst0ř._._.Go@xu" 2_ ge_ 7AmulaO =7ȳO O ?-1-w : 1#ppW7Inඁ6spds6whileA76N 767te2iimS27( as(:Adp)1f"6ms 'rrToLeft2ws/5 3)!apO=ve WD3ws. 35w3Vwn)) Set rnge = Ra8(`,.End(xlToRight|.Selection.ClearCont@ents | Sub 'Auto Format the SpreadSheeEPublic+ '&(Dim ws As Works6>,(= HAppSatActivelzws.Used+!6i+Idge&r,J i0 To=.Columnsun.C%ellstire.riNex'("A:A") Width;2.25 Privat!ub Cte<(justAddRowbBoo ncCallTitle H U[j@j"1@datazfig.ThACo@A}@Each (Get DAsArray(CLng(j - 1)GJ>=@)/Strin g, Opal targetCdPosiH9 @insertBeforeS ROn Error GoHan8dleYICheck""s.NumberAsTC@@TFalsIf)= henWAc1Value'Varia nt, cInXdexD:=4 1G s"k"= ]o+Ia. GI^n!{/ 'Hp./s(  )ʌa? n0 -= "@"  vb/= 12j)'E@!*<1U<q<1!uJZ`p'hJ8s(d& ":" &S4CIbi Shift:=xlDow3hIf/K1 _K_Kab_Ket? & _KϿ _K@b|<(M1 Knd -Exity!U LL:Log.90InO03p (L.DescriTHelpBxtc(_[g k߱ A0`]b(x] ? />f4a [r[2Not t{2D -Vbq:rx1 ETITLE_ROW_NO,n.FP.Namq"Marlett(J"aa4# co UB zd( Q 1' fieldXpap%tRLablfUi\fGDCoghervice.g_FQAnMappq) >~nrA  g}1 Compj), g( , 0))z'A5(=`1 C}TQ2e ' /&+&$+ 21Y$$KC1BoldTru sM1M MM+ MM $V J 4 XeC PUT 4 L .B@ P Content-Type P .B@^%k N .B@\$d 0 L .B@. P Content-Type P .B@^k----The post data is: B@ N B@ N .B@\kHRequesting........ .( .!`bA@ L B@ .!b'6Log.LogInformation responseDataFinished Transfer .(  .(j----The response data is: B@ 6 B@ .!d'8 Content-Type .%h$f !'Hd'HzkReady .( d R .!d .!d .!d' ] .!< .!<Unknowneadshe .!<'j actdHCould not connect to url: L'jk j l n ErrorA@z$Application.StatusBar = ErrorMessage .!deDeleted .( dResponse Code is: .!d . Due to:  .!<A@zaApplication.StatusBar = "Response Code is: " & xmlHttp.status & ". Due to: " & xmlHttp.statusTextk .!d':!d .!<'< .!d':!k'8'Hk..Application.Interactive = True`zXTP !:  !A@z..'Hzi Papplication/xml 'fd'fkiCAttribute VB_Name = "InternetTransfer"  Bas0{FCFB3D2A-A0FA-1068-A738-08002B3371B5} |GlobalSpacAIFalse dCreatablPredeclaIdCExposeTru `Template`DerivCu@stomizDO@ption /licit P! % tStatus As SngxmlHttp MSXML2. Const POST_METHOD GE dPU$UTYrespeD[,connectG4BooleanGs;CodeAgerText ub@P Property GetR$:tent()M @HI2 End 5/C/(@G:A?R1G= ErrorMsgOE,#.a>`\ ?A#M *E 'The +a&ea3FuncjŎToServer(@ByVal fM ethodA, 8_ zrequestUrl aQCTypea , handle3WFromP~nld52h7'Log.`Infporma"/G$*'Debug. O`aO GoTo Failed!`!Appzb .Bar@"rting?.Curso0xlWaAIf Not eIsh `Kn S}e=EC BeHObj("") 5Comp(P, , v.bvA`0)0 b'Check &t`_$( mXis t ge`IsEmpty(N 8Len> c #4& "?" & RIf`.Open*, u5%sendE}_;, gi_ 'Q/ " / % 6)  tR3BHea`der "0N!?-", }.!wU# 7, ? 5  S pe  qOC "-.,dQis: $=aO1g P.**)EE@E.Do ,WhI5C.`dySt<> 4'PDoEvsLoopRd#S}=c}Wn@WFinisha SDefaulE =O )6= 20 JȤ=lD0Ish Xml(E R,("9))V1QK;9/P@=m5Exit~ 72'us+ady*n~v~f' 0^@404 Or(s14080R10Dim essag8{oXQ0JA> @9"Unknown"OBAJ6 6%uld not * to urlPMtr?Uq @BoxoCri(tic+OKOnly, "$!q'O$C$ {1?!= 1223n Application.StatusBar = "De@leted" ElseMsgBox "Response Code is: " & xmlHttp.s". @Due toThexta'SsEnd IfC_m= jku1 N>connect7FaTransferToServeycH 0 TheDAM S q q9 0 @`$hSheet3 ,'Menu #3__SRP_27__SRP_3: 0 ZZKlKM3W#3*=h8+3qR OA ^e=CxME @SS S<<@@hx  i ,!@hz i ,!Bh$i %,!D`h@(i ,!Fh ,i  nt s,H`@ 0ZZ iJ  iL@iN`iPViR   i  `jp,f`z  4ziP @i  `%b,4@"/80@b28Hb6`<@b<D@08``@80z `Jt`Lp(`Nl`Ph `0`T8XMI (8HPX` Bh px B  B  B  B  B, $  Hh$&p %$ ) D( H`h    0 @`$h &    &&@ %`(p  "+    &( 0 0L8h*;p ( . * 8&H `@dh h  ( 0 @P  X`hp $x l B & (08@Px]@]@]POST]GET]PUT8]@]@`]@]@0 6'>m@ :'@mh <'BmP ,'Dm8` 8'Fm The Internet transfer !!!!Log.LogInformation requestUrlDebug.Print requestUrlTStarting transfer....... .( l .(j .G..jMSXML2.xmlHttp$V.. J 2 X?'Check the request method is post or get N$Z N ! L? N'Lk 2 L .B@ .B@\xME (SLSS<N0{00020820-0000-0000-C000-000000000046}@(%H@0MIxAttribute VB_Name = "She@et3" Bast0{00020820- C$0046} |Global!SpacFalse dCreatablPre declaIdTru BExposeTemplateDeriv$Bustom izD2rU~| Get the menu bar t .%.vxAdd top-level menu itemB  v!%.z&Coghead z(  z(Intern6The Tag property makes it easy to delte the menu latergInfCogHead Connector z(De  z!%.~ &Create Query ~(.. . ShowWizard ~(  z!%.~&Manage Favorites ~(ShowFavManagement ~(]]]  !' $  z!%. &Favorites ( Favorites (  ]X  !%.  (  ( ActionHandle (k]x  z!%.&Actions (]  !%.&Update checked record(s) (CogheadService.Create (  !%.D&elete checked record(s) (CogheadService.Delete (9Set cb4 = cbtn.Controls.Add(msoControlButton, , , , True)cb4.Caption = "D&elete record"  z!%.~Con&fig ~(LoginInfo.ShowConfigurationForm ~( ~(  z!%.~&About ~( ShowAbout ~( ~(oxRemove the MenuWorksheet Menu Bar]8XGet the menu bar t .%.v-Get the top-level menu created by BuildMenu() CogHead Connector v%.z zB@ox !!A@oXH .(n]]8F  %']PF  %']hF  %']F  %']F  %']F  %' <!B  <BP <!D  <BP <!F  <BP <!H  <BP1:5$!( B    % %  %]]F  %']F  %'POST  application/xml %H !> <B@b <(@kd] B@  % (  (  (  (  ( B@kx..k` .(n|H@ .(no(8 A@ B@o About Dialogx2Copyright 2006, 2008 Coghead. All Rights Reserved. nCoghead Connector v A@zopCheck Login info ! B@  ! B@d|kk ! ! ! %]]F !'/rest/AdminApp/_/Accounts/?source=excel'GET  %H A@ B@k0k(o 0   'zk 'i]] Get the menu bar (CommandBar).Cell .%.v Add the new menu item.  v!%.~ Set the caption and action.&Coghead Action ~(](@X  ~!%.&Update checked record(s) (CogheadService.Create (  ~!%.D&elete checked record(s) (CogheadService.Delete (9Set cb4 = cbtn.Controls.Add(msoControlButton, , , , True)cb4.Caption = "D&elete record"oxx]] Get the menu bar (CommandBar).Row .%.v Add the new menu item.  v!%.~ Set the caption and action.&Coghead Action ~(](@  ~!%.&Update checked record(s) (CogheadService.Create (  ~!%.D&elete checked record(s) (\  &ZxMEX @ 8 F@ &        B        ( 0 "8 @ P &X 9   A "    ;8 &X "  ; & " @ $X " &9  A "( Pp ;&" ;&"@ @h $ Create the MenumiWorksheet Menu Barto]hCogheadService.Delete (9Set cb4 = cbtn.Controls.Add(msoControlButton, , , , True)cb4.Caption = "D&elete record"o( BAttribute VB_Name = "Menu" 'Crealthe P Sub Build8(Optional cbnvAs SngWorksheett Ba@r") Dimb ZCommand, cpop Popu"pbtn Button223f,'G{m barScbApplicaa2.Ds(fU'Add top-l evel %itlem%[=h"n@trols.(`msoCoc, True-x.Ca&CogheadVisibl :'TTag property makes i@t easyV delXl~*7H )nectorDCH?]@575Ea6Fab//g89hBšS&/q5,cd |byth0cb.Findq?, "Os2 [) JU(RunRequest (G0-$^vqjOn ErrmGoTo ResetH#*YIntera!=OCSVd1_b1user: 6=t لU $ passwUQString: c6teP account- iYTargGoc缮h/"coll@0C~v6?' #Call Cellw.importBasicVr(ACCOUNT_STR, 78!/t/-PPLICATIONdAQCOLLEC{oVIEWN8AME ERows("1:5").Entire.hiddeabghlModul|e.dAuto(:,f6,_;eUrlB.IsDoS`earchsPh)e) Then  Dim inet As New Interg^(wLoad@\vMag Ig.  'About Dialo  MsgBox "Copyright 2006,8 Coghead. All 2Rs zd. zvbOKOnlNyyD@nnAor v" & VERSION_NOjEWizarde'Check Logi{fo7Info.A }figurBm #Form# d.successfullyg !}oDA5i@B Module.Auto(CUser!n,#iPasswoDrdBasi"eӅskge!& =#E"/r`/Admin f/_/s/?source=excel>"%%GE_* Vr9 DListkE6n!OaQ:a/ FunbR IsArrayEmpty(Variant)BooleatOn Err5GoTo`Handlu`UB^d) >p={YPMs"+ MQM!|enuItLem?'cbAComm Bar, cbtn;PopupC*dexKѓg' @0 the u bar (g).3A` = Ygs(" "W' 2nnrxm =0 .Dtrols. (mso |,  c,ap fon.C= "&WA$0C2q 3A4Butto$2@Г .l/ @2Upe c\ed recPG(s) cb2.On feice.C`reate 39 dd cb3 D&eletK 3 ad Dk ' 4 nAO 'cb4 e?@2B`'RowM222Q2282@.u:ϐ2p 22 #22;'2132np22؏2@ا?%YB2=((2(2 d>2f2 o( 0$2 22 2nPoE52CrU (`Worksheet Menu Bar(`Worksheet Menu Bar$`(`0$!`$I`$q`(`/$`$ `nrU~|       LoginInfo =__SRP_4C__SRP_5 HFEncode$(4(%:!d'd CogheadConnector/Custom/UserName (%:!d' kXiPGet the user's passwordan 8Default X!CogheadConnector/Default/Password (%:!d'd CogheadConnector/Custom/Password (%:!d'STkiGet the base uri address>P 8Default XCogheadConnector/Default/Url (%:!d'(dCogheadConnector/Custom/Url (%:!d'ki]F$@'> > B'<dx] $F/Bacon /Bacon'DB@k0 D'<k i]`] L$F/Bacon L/loginCheck?source=excel'd L/Bacon/loginCheck?source=excel'kxGET  %H !@] !> JB@2loginUrl J%L%N!d'Hkd] !> (B@2 user/@url (%L%N!d'HkihF 8Default X&CogheadConnector/Default/UseSSLSession (%:!d'@d%CogheadConnector/Custom/UseSSLSession (%:!d'@kh'@i ,     B@Pkx ,'BihXCogheadConnector/Custom (%: CogheadConnector/Custom/UserName (%:!d'Rd'RkiCogheadConnector/Custom (%: CogheadConnector/Custom/Password (%:!d'Td`'TkPiHCogheadConnector/Default (%:!CogheadConnector/Default/UserName (%:!d'Vd'VkiCogheadConnector/Default (%:!CogheadConnector/Default/Password (%:!d'Xd@'Xk0i(XCogheadConnector/Custom (%:CogheadConnector/Custom/Url (%:!d'Zd'Zki 8Default X'CogheadConnector/Default/MaxSizeToQeury (%:!d'\d(&CogheadConnector/Custom/MaxSizeToQeury (%:!d'\kiACogheadConnector/Flag (%:!d'8i:Check wheather the configuration file is already exsiting. &$~'0d '0kiDisplay the Configuration FormX B@o$ $$$$hF]$ (.hdp9 hB@2k]CogheadConnector h%:.j f]CogheadConnector/Custom h%:'nk]]]0]P]p] nCustom h%~.pUserName h%~.tPassword h%~.vUrl h%~.x UseSSLSession h%~.zMaxSizeToQeury h%~.|dCogheadConnector/Custom h%:.p CogheadConnector/Custom/UserName h%:.t CogheadConnector/Custom/Password h%:.vCogheadConnector/Custom/Url h%:.x%CogheadConnector/Custom/UseSSLSession h%:.z z UseSSLSession h%~.zk@&CogheadConnector/Custom/MaxSizeToQeury h%:.|k  t(d  v(d ` x(d d z(d b |(d t pB@ v pB@ x pB@ z pB@ | pB@ p jB@d@]CogheadConnector/Default h%:'k]]]](]H]h Default h%~.UserName h%~.Password h%~.Url h%~. UseSSLSession h%~.MaxSizeToQeury h%~.dCogheadConnector/Default h%:.!CogheadCond ( / Z xME0 0*<* `D+H`@?iL.v xenu %`% Jhe c% (&Cog%+@`p@  X+BX`c+R ` j+T ` r+V ` z+XX ` +Z ` +\`p@+8`p@+0X`d@    `+^` wwiii`8ibXid xif  h% j%`n p % t( % vH % xh % z % | %`  %  %  8 % @ xml % `!. % .xml %  %&@)0@PXXXP(PP "MI*\R5*#6b$*\Rffff*1W49e34def% 0BH.3P  "" B8)(`6)h B8)06)8px B2)2)@H B PXpx    B   & H,P "   ( *8h  p Bx<.<.08@H B PXh B .6  B (.06` B .8(08@ B H.P8 B .2 H P X ` Bh p >)  <)   B( 0 ,)8 h @p B $      $ "  ( 8 B4 @ ` h p  x  J   $   .(  X ` h p x              "  "@ h  ,p  4  4  0 :@ "  :   ( 8 H  Xhx .  (08 @ `   " " , 6@ 6x 0 : "0 X <`      (8 HX`,h*08>H]]] )Load the Configuration xml to DomDocumentP .!.Coghead_Connector_Config.xml '&$0A@'d`'kPiH & 4%6 (B@2o Get the user's namer 8Default X l!CogheadConnector/Default/UserName nector/Default/UserName h%:.!CogheadConnector/Default/Password h%:.CogheadConnector/Default/Url h%:.%CogheadConnector/Custom/UseSSLSession h%:.  UseSSLSession h%~.k 'CogheadConnector/Default/MaxSizeToQeury h%:.kX  (d  (d ` (d d (d b (d  B@  B@  B@  B@  B@  jB@k ]CogheadConnector/Flag h%:CogheadConnector/Flag h%:.d0 Flag h%~.k fCustom (dd Default (dk  jB@ h! .!.Coghead_Connector_Config.xml 4%'^dh '^kX zP hH '^[ ! !z i  Attribute VB_Name = "LoginInfo" Dim theConfigFilePath AHs Sngxdoc&New DOMDocument Public requestSSLUrl x 'Loade furation xml to DomQSt"c Func*A yModule.H,Rt`dHEC p0$Rs߽OvtOD3. S ") ohPlG ;ra%+_0%^ u 5+_X" S0on Public Function GetDefaultUserName() As String If Not xdoc.selectS6leNode("CogheadConn2or/") I sphX TheOMu =-_/").TextaElse g""nd If  EPasswordk:0"HCustomUri>GChE /UrlCpBMaxSiz@Comp(@ Flag, ", vbAare)@70G h?/dToQeury;! , 5orivate@a$JCall Lo"figuraData{+$fA F" 'Ch eck wther con file i s alr@y exsit.\Is FE$BooleaDir( Path) <>8 ""C ` TruD7Faa!'Display!$1 FormSub ShowJ!()5).`o)C-teLogi nInfo)(uه, _C !ypļ_ver7 nm!Lonb SSLFc2['On Erro@r GoToH@andle:sDim lEDomNew DOMDocumenDy,:ata.@0xSetS[+.l`@XML ("<>"(.aArootEle 1I0 i=z ond#qupdQValueqЌ~[w = D  S 8qxr :9url?=seSLLold9rK""cL%vR:!!e5NB O"FDz[Zoio5їALPSLSes>Ot o*1 GU8P>ݞ>/6_imUn>gݴo  $o o "r:"/N/N24r# ;X(#V? i <&7Sq,,MaxSizeToQeury")  End IfxuserNameNode.Te`xt = LJpassword J3&rl @YverUrl!seSLL $kSSL!|ma )* customInfoAppendChildj  z"u"rootElement.>C 9 ElseGDim updateValue1 As Boolean If Not loginXDom.selectSingl("Coghea dConn@or/Default") Ish p TheH=p Tru'+d{,IXMLDOMx67V I}[ { y x aC LSSet M$=17cre >$F("5G>3 E!+1@j@Ud-Ɏ+Pf/[2 SLSessionQ 6[ M*i KrE&|8pp:{}r{/>nG/Al/ E^ /C#Hy1B Ma1mU1>_-___//q1` ֈ1.tZDeEG.EBpIW\;xZ/ϋd //ӈ1ґvJ o7/Ә Q{flagg} TpK߈وF0 /vDώ Q *WtJ  ."cG"o U%@ FileManagQuickWrite(, plicatt mplsPath & _ƣfig.Xxml@KCҋLըAZwte Fa6'Exit Funca ErrorHanpdle:CDebug.Print .Number0Descrip1M@rU $`$`$`$`$!`$I`(q`0$`$`$ `$ `$9 `$a `$ `$`$`$`$)`@Q`9Yq000(##nrU~| W__SRP_6V|__SRP_7X,ResponseViewData"AccountListForm ! rU ,` 0(`0(`90(`90$!`n D8N ZժF5L=*=h8+3q6oPK߹\x %N!d$ "+.Add a system field "ID", bound to Documnet id.ID "+ '$iPGet one row's data as array(]$ ]( #ns1:GetViewContentsResponse/ns1:Row (%L%N.]Hhns1:Column/ns1:Value %L.ns1:Column/ns1:ObjectName[0] %:.] " !  "X %N!d % "+ !d % "+ 'i]#ns1:GetViewContentsResponse/ns1:Row (%L. !'i` +ns1:GetViewContentsResponse/ns1:ResultSetID (%L%N!d'i-ns1:GetViewContentsResponse/ns1:ResultSetSize (%L%N!d'iAttribute VB_Name = "ResponseViewData"  Bas0{FCFB3D2A-A0FA-1068-A738-08002B3371B5} |GlobalSpacAIFalse dC$rezblPr@edeclaIdCExposeTemplateDerivCustomiza EOption 0licit 0 P"& xdoc As New DOMDo cumen'The Ctru ctor _ss ub# Sub InitClass(ByVal theXml)Sng)  4.load`XML (E nd&K'Check# query process finishS=!no'PC!Func7IsP FD (DimEStatus%(, sABooplean,J =BL.selectSingleNode("ns1:XGetALtPsE/Q3Exe$cu+Co@seted").Texc3HIf '(, "True", vb )0 jD-4=  3E aIfC NS9 ]lifP hasnn@4 row djHasN@RowIndexaInteger)/dGGF<heCounts() 5!!#<tot ^number ofcitl@mS3T!n-aTlistcolumnJ~Lb!erESet dSgetElexsByTagaSWHea(derUC"DezObj@|Q5[0]5@hC?5| O]5V5En!5.Opera65a5&m7<.Z=Amp4_nx1$0me!,y,,,w@5 wA?j@1 esult'Id<.Râ-1`0@9$D805O tE Sizeo l A _l  0GX`x  xD@ 8MIV  Z_xME(6 < <<+`@@i `i  0x`8t``rH+H`@i ult`xtCogh`r/Use+`x@2i X+`x@8i  `>H%` hHMI$*\Rffff*1X49e34defAB(08@4X &/x 5    / T} x   B   %    (  8 H F]X   5   B ##0"Pp B x##" " dXh ead\mi $'e\]]'  a   %$ c0:LAZLazL*KT    %' KT ( +'d % %'kS %   %$ %00 %'n  'h 'iX $']]0'  a   %*KT *'+KT  '%KT  &h    %$ %'  'SH    %'n   ' 'iH <<$' &&$' >>$'i <<$' &&$' >>$'i[Psubstring-before%28+%24var1%2C+%26apos%3BC%26apos%3B+%29+%3D%26apos%3B%26apos%3B %o`Attribute VB_Name = "Encode" Public Function URLl(SngTBo8 As ", OpTal _ UsePlusRatherThanHexForSpacelBooleanvFalse)/J>Vh=_erPator)4Dim TempA ns OCurChrInteger = 1"o Until  - 1SLen~:v Sele@ct Casnc(VBA.Mid ,(, 1) 48 To @58, 659 0, 97122, 42Ov={&= #b3 If[qrue Then&s'Q'"+D/Ec@%" 9(32RAEnd/9S*B*cxmatB{"AsW~C„), "00"423=E+Loo>p C8 3 !p}DeဆWjvugu uquCf $vDv+v-vC)v !@"I"* YH_ h % "&(Val("\&hdN; I, 2)cN(BOkQ,,M__7_^Op#FVRepl$ݖ_%= $m`{<4;"av0E Fԁ2@8"&Q>Sub test(tDebug.Print .UT""subs2-before%28+%24v@ar1%2C6apos%3BC %2P9+%3DP ApplicationListForm(CollectionListForm&ViewListForm +ApplicationConfiguration2"]() If Len(Me.Box1.value) Th enCellManagement.importxicInfor COLLECTION_STR, G'CogheadService.Get Filed# AccountAu)2),I2,?? :"@C@*Ch8eckBLBACLoad Fields@Hid .ShovwK K'BDGCQueryL U Eɉ'Unl5View5-nd IfMsg/ "Y ou neito se an iteAAED ]_2 _mE1? on3+ @Process UserY_InitializerDim getUrlAddrza= Loginp!gAUri & "/t/"@hbG (a .v/_/Sys0/Folders/`!'aAinter'`?xPtr=x   ( !"#$%&')*:,-./01234N78