关闭

关闭

关闭

封号提示

内容

首页 微软AX培训——Information exchange

微软AX培训——Information exchange.doc

微软AX培训——Information exchange

傻傻的景恬 2017-12-08 评分 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

用户评论(0)

0/200

精彩专题

上传我的资料

每篇奖励 +1积分

资料评分:

/5
0下载券 下载 加入VIP, 送下载券

意见
反馈

立即扫码关注

爱问共享资料微信公众号

返回
顶部

举报
资料