关闭

关闭

封号提示

内容

首页 微软AX培训——Information exchange.doc

微软AX培训——Information exchange.doc

微软AX培训——Information exchange.doc

上传者: 傻傻的景恬 2017-12-08 评分 0 0 0 0 0 0 暂无简介 简介 举报

简介:本文档为《微软AX培训——Information exchangedoc》,可适用于IT/计算机领域,主题内容包含微软AX培训InformationexchangeLessonInformationexchangeAttheendofthislesson,you符等。

微软AX培训InformationexchangeLessonInformationexchangeAttheendofthislesson,youareexpectedtobeableto:KnowhowapplicationelementscanactivateoneanotherKnowhowinformationcanbeexchangedbetweenapplicationelementsHaveanoverviewofthemethodsoftheArgsclassAXILTvENUSInformationexchangeUSINGINFORMATIONEXCHANGESofaryouhaveseenhowdataissynchronizedwhenoneformisactivatedfromanotherformThishappensautomatically,butthepointisnaturallythattheopenedformmustknowwhichrecordwasactiveintheformitwasopenedfromLet'sstartniceandslowbyfindingouthowtoactivateaformwithoutusingamenuitemYoucandothisasfollows:Argsargs=newArgs('nameofform')FormRunformRun=newFormRun(Args)formRuninit()formRunrun()formRunwait()Ifthereisaformnamedasspecifiedaboveunderformname,itwillnowbeexecutedHowever,nodatawillbetransferredtotheform,sinceyouhavenotinstructedthesystemtodosoIfyouwantedtotransferdata,theexampleabovewouldhavelookedlikethis:Argsargs=newArgs()Formform=newForm('formname')FormRunformRunargsobject(form)argscaller(this)argsname('formname')formRun=ClassFactoryformRunClass(args)formRuninit()formRunrun()formRunwait()InformationexchangeTHEARGSCLASSThesecretbehindinformationexchangelieshiddeninobjectscreatedfromtheArgsclassThroughMenuItems,youcanaddparametersintheformoftextoranEnumofagivenvalueThisdataisenteredinanobjectcreatedfromtheArgsclassandmaybe"fishedout"usingmethodsfortheArgsobject,parm(),parmEnumType(),andparmEnum()Inthecodeexampleabove,themethodscouldalsohavebeenusedtoenterdataintheArgsobjectAllmethodsintheArgsclasscanbeviewedinSystemDocumentation,Classes,Argsbutsomeofthem,suchasdataSet()andrecord(),shouldbementionedhereThisisbecauseifyouopenanapplicationelementfromaformusingamenuitem,youcanthenusethesemethodsontheopenedelementtofindoutwhichrecordwasactiveintheformfromwhichtheelementwasopened,aswellaswhichtabletherelevantrecordstemsfromYoucanalsousetherecord()methodtoenterarecordintheArgsobjectFinally,youhavethecaller()methodItisusedtospecifytheobjectfromwhichelementswereopenedInformationexchangeARGSOBJECTSThemethodsspecifiedintheabovesectionareaccessibleonobjectscreatedfromtheArgsclassThequestionisthereforehowtogetholdoftheArgsobjectsYoualreadyknowthattheformorreportreceivesanobjectofthistypeelementargs()ThecodeaboveindicateshowtoretrievetheArgsobjectYoucantherefore,asanextensionofthelineabove,specifyamethodyouwantexecutedontheArgsobject,oryoucanlinkittoanobjecthandleandapplythemethodsfromthereInformationexchangeEXERCISESExerciseOpeningaFormCreateanewformdisplayingCustTabledataThencreateamenuitemusedtoactivatetheformOnthepropertiesofthecreatedmenuitem,youcannowspecifyaparameterandanEnumThenopentheform'sinitorrunmethodandaddcodethatallowsyoutoretrieveparameterandEnumExerciseOpeningaFormFromAnotherFormNowcreateanotherformalsodisplayingCustTabledata(makeacopyofthefirstform,anddeletetheinitrunmethod)EnterthemenuitemyoucreatedinthepreviousexerciseinthisformThengettheformfromthepreviousexercise,andedititsinitorrunmethodsothatreturnvaluesareprintedfromthedataset()andrecord()methodsontheform'sArgsobjectExerciseOpeningaFormFromaJobCreateajobthatactivatestheformfromthefirstexerciseWritethecodesothatthecontentoftheArgsobjectcorrespondstothatofthesecondexerciseInformationexchangeExerciseClosingFormFromForm(OptionalExercise)InthesecondexerciseyouactivatedaformfromanotherformCreateabuttonontheactivatedformthatcanbeusedtoclosetheformitwascalledfromInformationexchange

职业精品

精彩专题

上传我的资料

热门资料

资料评价:

/ 5
所需积分:0 立即下载

意见
反馈

返回
顶部

Q