Re: [Axapta-Knowledge-Village] Pagefooter
Urgh, that's pretty difficult...When you create the report design, Axapta reserves the space for all footers in design. Let's suppose 5 pagefooters, with a height of 10 mm. each, but you've programmed it to print only 3 of them. Well, when you print that report, even tough only 3 pagefooter are printed, in the paper you will see below 20 mm of blank space (Axapta reserved 50mm, but only printed 30mm, 10mm per pagefooter printed).Take a look over element.gotoY100mm(), element.mm100left(), element.mm100PageHeight(). Those methods says you how many mm*100 are left until the bottom of the paper, the heigh of the paper in mm*100. Think on a pen in the paper, that Axapta is using. So when calling gotoY100mm, you say Axapta to leave the actual pen to the new point you say to it.A more simple solution would be to use programmable sections, or similar, so when you detect the pen is below a limit (remember element.mm100left, and element.design().sectionname(name).height() ). But in a programable section it's not possible to put suma fields...You will have to do some testings to learn about them.Raúl Llorente Peña Análisis, Desarrollo e Implementación en Microsoft Bussiness Solutions-AxaptaOPEN SOLUTIONS Sharing the knowledge on Axapta. Yahoo! Groups Sponsor Get unlimited calls to U.S./Canada Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [Axapta-Knowledge-Village] Two layer customizing
Dear Malcom and Vaibhav or anyone else, Can you tell me the detail of creating upgrade project? And where i find the compare tools and how to use it? Regards, Joy - Original Message - From: vaibhav pednekar To: Axapta-Knowledge-Village@yahoogroups.com Sent: Wednesday, December 22, 2004 11:55 PM Subject: RE: [Axapta-Knowledge-Village] Two layer customizing hi,Malcom is right,just use the compare tool to find the objects modifiedin the VAR and USR layers.regardsvaibhav pednekar--- Malcolm Burtt [EMAIL PROTECTED]wrote: Hi I would have thought that the simplest method would be to take the VAR and USR layers to a new application, just as you have already tried and then create an upgrade project from all elements that have both VAR and USR changes. You can then use the compare tool to get all the VAR changes into the USR layer. This is the approach that you would use if you were taking a new SYP layer from MBS, for example, and what you are doing here is a similar operation. Where this breaks down is if you have tables that only exist in the VAR layer and you want them in the USR layer. The only approach here is to export them from VAR, delete from VAR and import them to USR...but you cannot do this against an existing database because the table Id of the USR table will be different from the VAR table. Regards Malcolm Burtt Global IT Group "Business Solutions designed for YOUR business processes" Global IT Group is the trading name of Touchstone Global Business Solutions Ltd. and is part of the Touchstone Group PLC. -Original Message- From: Joy [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 07:47 To: Axapta-Knowledge-Village@yahoogroups.com; development-axapta@yahoogroups.com Subject: [Axapta-Knowledge-Village] Two layer customizing- Original Message - From: Joy mailto:[EMAIL PROTECTED] To: development-axapta@yahoogroups.com Sent: Wednesday, December 22, 2004 11:11 AM Subject: Two layer customizing Hi all, I want to ask a question about programming in two layer (Var and USR) Now i'm in a axapta project. My team make some program in USR layer and our consultant make it in VAR layer. My team made the program in different axapta application with our consultant. Is there the best way to combine our layer in other Axapta application, because i have try to combine it by taking the AXUSR file in our application and AXVAR file in our consultant application to another Application. The result is if our team have maded changes to the same object (such as method in tables, menues, etc) with our consultant, his changes seems dissappeared? Why it can happen, and what should i do to combine it beside by using expot import? cause if i use export import, i must do it at least 60 project. Thanks Joy Sharing the knowledge on Axapta. Yahoo! Groups Sponsor http://us.ard.yahoo.com/SIG=1298i179u/M=324658.5816620.6854924.3001176/D=groups/S=1705001380:HM/EXP=1103790751/A=2343726/R=0/SIG=12i4d2srq/*http://clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/time=1103704351610624 http://us.ard.yahoo.com/SIG=1298i179u/M=324658.5816620.6854924.3001176/D=groups/S=1705001380:HM/EXP=1103790751/A=2343726/R=1/SIG=12i4d2srq/*http://clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/time=1103704351610624 Get unlimited calls to U.S./Canada http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/time=1103704351610624 http://us.adserver.yahoo.com/l?M=324658.5816620.6854924.3001176/D=groups/S=:HM/A=2343726/rand=205105869 _ Yahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . __ Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less. http://info.mail.yahoo.com/mail_250Sharing the knowledge on Axapta. Sharing the knowledge on Axapta. Yahoo! Groups Sponsor Get unlimited calls to U.S./Canada Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [Axapta-Knowledge-Village] Two layer customizing
Hi Joy The upgrade project is the mechanism used when you receive a new version from MBS (its accessed from Tools - Development Tools - Version update), but on closer inspection, its not the tool you want. You actually need to use the "Compare layers" tool which can be found in the same place as the upgrade project tool. Log into the layer that you want all your changes to end up in. Select VAR as your reference layer and USR as the source layer then let it create a development project for you. Next make sure that your user options are set to show changes in all layers (Tools - Options. Development tab, Application object layer = Show all from corrected layers). Now select each item in the project that was created by the compare layers tool. Right click on the item and select Add-ins - Compare. Select VAR and USR as the layers you want to compare and it will show you the differences. The compare tool will give you the option to move code between the layers, but not move fields or tables. If you need to do that then you must export the object from its source layer, delete it from that layer and then import the changes into the correct layer. Note that this changes the table and field Id's that were allocated, so you cannot usethe new application against an existing database. Good luck Malcolm Burtt Global IT Group"Business Solutions designed for YOUR business processes"Global IT Group is the trading name of Touchstone Global Business Solutions Ltd. and is part of the Touchstone Group PLC. -Original Message-From: Joy [mailto:[EMAIL PROTECTED]Sent: 23 December 2004 09:15To: Axapta-Knowledge-Village@yahoogroups.comSubject: Re: [Axapta-Knowledge-Village] Two layer customizing Dear Malcom and Vaibhav or anyone else, Can you tell me the detail of creating upgrade project? And where i find the compare tools and how to use it? Regards, Joy - Original Message - From: vaibhav pednekar To: Axapta-Knowledge-Village@yahoogroups.com Sent: Wednesday, December 22, 2004 11:55 PM Subject: RE: [Axapta-Knowledge-Village] Two layer customizing hi,Malcom is right,just use the compare tool to find the objects modifiedin the VAR and USR layers.regardsvaibhav pednekar--- Malcolm Burtt [EMAIL PROTECTED]wrote: Hi I would have thought that the simplest method would be to take the VAR and USR layers to a new application, just as you have already tried and then create an upgrade project from all elements that have both VAR and USR changes. You can then use the compare tool to get all the VAR changes into the USR layer. This is the approach that you would use if you were taking a new SYP layer from MBS, for example, and what you are doing here is a similar operation. Where this breaks down is if you have tables that only exist in the VAR layer and you want them in the USR layer. The only approach here is to export them from VAR, delete from VAR and import them to USR...but you cannot do this against an existing database because the table Id of the USR table will be different from the VAR table. Regards Malcolm Burtt Global IT Group "Business Solutions designed for YOUR business processes" Global IT Group is the trading name of Touchstone Global Business Solutions Ltd. and is part of the Touchstone Group PLC. -Original Message- From: Joy [mailto:[EMAIL PROTECTED] Sent: 22 December 2004 07:47 To: Axapta-Knowledge-Village@yahoogroups.com; development-axapta@yahoogroups.com Subject: [Axapta-Knowledge-Village] Two layer customizing - Original Message - From: Joy mailto:[EMAIL PROTECTED] To: development-axapta@yahoogroups.com Sent: Wednesday, December 22, 2004 11:11 AM Subject: Two layer customizing Hi all, I want to ask a question about programming in two layer (Var and USR) Now i'm in a axapta project. My team make some program in USR layer and our consultant make it in VAR layer. My team made the program in different axapta application with our consultant. Is there the best way to combine our layer in other Axapta application, because i have try to combine it by taking the AXUSR file in our application and AXVAR file in our consultant application to another Application. The result is if our team have maded changes to the same object (such as method in tables, menues, etc) with our consultant, his changes seems dissappeared? Why it can happen, and what should i do to combine it beside by using expot import? cause if i use export import, i must do it at least 60 project. Thanks Joy Sharing the knowledge on Axapta. Yahoo! Groups Sponsor
[Axapta-Knowledge-Village] Splitting of quantity according to batch number
Hi all i had created a purchase order with a item of quantity (suppose 100).suppose these 100 items belongs to three diffrent batches,how can ihandle these sitution so that it sits accordingly to their batchid in inventory.the condition is,i have to createonly a single linein purchline. Thanks Regards Nitesh Sharing the knowledge on Axapta. Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Axapta-Knowledge-Village] Macro Question
Dear all, I have created a macro in the AOT containing the following: #localmacro.TRA_Macro_Local1 print Hello local world; pause; #endmacro Now I created a job containing the following: static void TRA_Macro_Global1(Args _args) { #TRA_Macro_Local1 } I expected I could just call the macro to have the code stored in the macro executed. It makes no difference if I call the macro Local or Global. The above is not working. How can I put a large amount of code in a macro and execute it at compile time? regards, Danny Yahoo! Groups Sponsor ~-- $4.98 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/kGEolB/TM ~- Sharing the knowledge on Axapta. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
AW: [Axapta-Knowledge-Village] Macro Question
static void Jobx(Args _args){#localmacro.TRA_Macro_Local1 print "Hello local world"; pause;#endmacro #TRA_Macro_Local1} now push F5 (execute) Otto -Ursprüngliche Nachricht-Von: Danny Gaethofs [mailto:[EMAIL PROTECTED]Gesendet: Donnerstag, 23. Dezember 2004 14:51An: Axapta-Knowledge-Village@yahoogroups.comBetreff: [Axapta-Knowledge-Village] Macro QuestionDear all,I have created a macro in the AOT containing the following:#localmacro.TRA_Macro_Local1 print "Hello local world"; pause;#endmacroNow I created a job containing the following:static void TRA_Macro_Global1(Args _args){ #TRA_Macro_Local1}I expected I could just call the macro to have the code stored in the macro executed. It makes no difference if I call the macro Local or Global. The above is not working. How can I put a large amount of code in a macro and execute it at compile time?regards,DannySharing the knowledge on Axapta. Sharing the knowledge on Axapta. Yahoo! Groups Sponsor Get unlimited calls to U.S./Canada Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [Axapta-Knowledge-Village] Macro Question
Otto, you're defining a local macro:static void Jobx(Args _args) { #localmacro.TRA_Macro_Local1 print "Hello local world"; pause; #endmacro #TRA_Macro_Local1 } Danny wants to use a global one!! The right version would be:Macro Macro1 is listed:#define.salute1(print 'Hello World'; pause;)#localmacro.salute2 print ('hello world'); pause;#endmacroNow the job:#Macro1static void Job1(Args _args){ ; #salute1 #salute2}You must use the global macro you will use at begin of method, before declaration of method. #Define. is more used to define variables, #Localmacro, to define code. Have a look at developer's guide!!Raúl Llorente Peña Análisis, Desarrollo e Implementación en Microsoft Bussiness Solutions-AxaptaOPEN SOLUTIONS-"Danny Gaethofs" [EMAIL PROTECTED] escribió: -Para: Axapta-Knowledge-Village@yahoogroups.comDe: "Danny Gaethofs" [EMAIL PROTECTED]Fecha: 23/12/2004 14:50Asunto: [Axapta-Knowledge-Village] Macro QuestionDear all,I have created a macro in the AOT containing the following:#localmacro.TRA_Macro_Local1 print "Hello local world"; pause;#endmacroNow I created a job containing the following:static void TRA_Macro_Global1(Args _args){ #TRA_Macro_Local1}I expected I could just call the macro to have the code stored in the macro executed. It makes no difference if I call the macro Local or Global. The above is not working. How can I put a large amount of code in a macro and execute it at compile time?regards,Danny Yahoo! Groups Sponsor ~-- $4.98 domain names from Yahoo!. Register anything.http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/kGEolB/TM~- Sharing the knowledge on Axapta. Yahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ Sharing the knowledge on Axapta. Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [Axapta-Knowledge-Village] Macro Question
Hello Danny Gaethofs, ÷åòâåðã, 23 äåêàáðÿ 2004 ã., you wrote: DG How can I put a large amount of code in a macro and execute it at DG compile time? just remove #localmacro and use AOT macro name instead: \Jobs\Test_Macro: static void Test_Macro(Args _args) { ; #TEST_MAcro } \Macros\TEST_macro: info(the macrotest); -- Best regards, Max http://belugin.newmail.ru ICQ:9406811 Yahoo! Groups Sponsor ~-- $4.98 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/kGEolB/TM ~- Sharing the knowledge on Axapta. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[Axapta-Knowledge-Village] Re: Macro Question
Thanks Raul, Max, Otto, This confirms what I have been seeing. You always have to declare the macro before you can use it. There is not much difference between a macro library and a global macro or a local macro defined in the AOT. You have to declare it first before you can use it in a method. In my example stating #TRA_Macro_Local1 twice would do the job. Maybe it is a matter of terminology Global to me means more the way Max describes it. Declare the macro and its context, and use it where you want, whithout having to declare it at the beginning of the method or before using it. Using the #define macro to declare a symbolic constant globally also requires that we put it in a global macro or in a macro library which has to be declared before using it. regards, Danny --- In Axapta-Knowledge-Village@yahoogroups.com, Raul Llorente Peña/OPENSOLUTIONS [EMAIL PROTECTED] wrote: Yahoo! Groups Sponsor ~-- Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/kGEolB/TM ~- Sharing the knowledge on Axapta. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[Axapta-Knowledge-Village] Need To Create a Job
Hi all I Need to create a Job that is Going to Check the PurchCostprice from the Inventtablemodule against the Weightedcostprice in the System and then if different Change the Inventsum.postedvalue to be the true purchcostprice * the Posted Qty I have the following but am losing direction. can anyone help static void doupdate_InventSum_PostValue_Fix(Args _args){ Inventsum inventsum; Inventtablemodule Inventtablemodule; amount WeightedCost; amount Actualpurchprice; amount Actualpostedvaluediff; ttsbegin; while select forupdate Inventsum where inventsum.ItemId == inventtablemodule.ItemId { WeightedCost = inventsum.costPricePcs(); ActualPurchPrice = inventtablemodule.price; if(Actualpostedvaluediff = weightedcost - ActualPurchprice) ; inventsum.PostedValue = ActualPurchPrice * inventsum.PostedQty; inventsum.doUpdate(); } ttscommit; Thankyou all and everyone have a good Festive break. Rocco Sharing the knowledge on Axapta. Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.