欢迎来到天天文库
浏览记录
ID:5637068
大小:262.50 KB
页数:3页
时间:2017-12-20
《ifs 开发培训文档 chapter-11》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Title:Date:Page:Solution-Chapter112005-03-023DocumentRevisionHistoryRevisionDateByRemarksA12005-3-2HenryZhongCreatedList:UsingdatatransferSolutions–Chapter11(Usingdatatransfer)1Usingdatatransfer1.1Theaimofthisexerciseistotransferdatafromoneformtoanotherthedestinationform.T
2、hesourcewindowistbwDemoTrInvoiceandthedestinationwindowthatwillbeopeneddynamicallyisfrmDemoTrInvoice.1.2ThetbwDemoTrInvoicemaylacksomeofthenewfieldsaddedtothefrmDemoTrInvoice.IfsoaddthesefieldstotheTableWindow.AddamenuundertheNamedMenusoftbwDemoTrInvoiceandaddanewmenuitemc
3、alledViewItem.1.3ThemessageusediscalledPM_DataSourceCreateWindow,whichwillcreatethespecifiedwindowwithadatatransfer.Orsimplefunction:1.4AddcodetotheUserMethod()soastocallanewfunctionUM_ViewItem().1.5CodethefunctionUM_ViewItemsasfollows.3Title:Date:Page:Solution-Chapter1120
4、05-03-0231.1ThewindowtobecreatedisthefrmDemoTrInvoice.Codemustbeaddedtothiswindowtogetitinitializedwiththetransferreddata.Thefunctionthat’scalledatthestartupofawindowiscalledFrameStartup.WecanexecutemanycustomtasksbyoverridingthefunctionFrameStartupUser.1.2Thecodeusedis:1.
5、3Thedatatransferwillallowselectionofmultiplerowsaswellasasinglerow.Onlytheselectedrecordswillbetransferredtotheformwindow.1.4ThefunctionDataTransfer.RecCountGet()willreturnthenumberofrecordsbeingtransferredintheparticularDataTransferobject.1.5Duringdatatransfer,callingSalW
6、aitCursorfunctionwithaTRUEparametershowstheWaitCursor.3Title:Date:Page:Solution-Chapter112005-03-0231.1ThenInitFromTransferedDatawilltransfertherecordsfromtheDataTransferobjecttotheformwindow.ThentheDataTransferobjectisreset.Thecombobox’sselectionissettothefirstitemandthew
7、aitcursorwillberemoved.1.2AreturnTRUEfromFrameStartupUserwillinvokethedefaultstartupbehavior.Therefore,afterthedatatransferactionwereturnFALSEtoskipthedefaultbehavior.1.3Nowrunandtesttheapplication.2t33
此文档下载收益归作者所有