[Axapta-Knowledge-Village] Display method on data source and table
Hi all What difference it makes if i write my Display method on Datasource and if i write it on Table methods please tell me. Thanks in advance. Thanks Regards Pradeep S.Itnal mob:+91-9886529409 - Now you can chat without downloading messenger. Click here to know how. [Non-text portions of this message have been removed]
Re: [Axapta-Knowledge-Village] Display method on data source and table
Hi, on Form Datasource you need the record as parameter: display InventQty salesQty(myTable_myTable) { return _myTable.qty } ...if you forgott, same value for each record in grid. on Table you can simply use this: display InventQty salesQty() { return this.qty } Best regards Michael - Original Message - From: pradeep itnal To: Axapta-Knowledge-Village@yahoogroups.com Sent: Friday, October 26, 2007 10:55 AM Subject: [Axapta-Knowledge-Village] Display method on data source and table Hi all What difference it makes if i write my Display method on Datasource and if i write it on Table methods please tell me. Thanks in advance. Thanks Regards Pradeep S.Itnal mob:+91-9886529409 - Now you can chat without downloading messenger. Click here to know how. [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]
[Axapta-Knowledge-Village] Re: Popup Menu
You can add this code to the showContextMenu() of a control : public int showContextMenu(int _menuHandle) { int ret; PopupMenu contMenu = PopupMenu::create(_menuHandle); int pouetteValue; pouetteValue = contMenu.insertItem(pouette); ret = super(_menuHandle); if (ret == pouetteValue) { info(Pouette was selected!); } return ret; } Problem is, you can't really do that to all the form (if that's what you want). You have to do it for every control. Good luck! Steeve... --- In Axapta-Knowledge-Village@yahoogroups.com, mohit rajvanshy [EMAIL PROTECTED] wrote: Hi All, Need to know that can we add a new entry in standard popup menu which will appear when we will right click on a form. For ex: Similiar to Create Alert rule. Please suggest if you have an idea. Thanks in advance. Regards Mohit Regards Mohit Rajvanshy __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Axapta-Knowledge-Village] Release COM object
Hi guys, I would like to know how to release a COM (as in Component Object Model) correctly. I've created a .NET COM dll with VS2005 that I use in Ax3.0 SP3. When I use the COM in Axapta, it doesn't release reference to the COM until I close Axapta. So when I make modification to my dll and rebuild it, VS can't recreate the dll stating that the file is in use. To release the COM, so far i've tried : myCom.finalize(); myCom.detach(); myCom = null; But no success. Any idea?
Re: [Axapta-Knowledge-Village] Display method on data source and table
You do not need the parameter for display method on the data source. Table buffers on the data source are available throughout the form, so you can use the buffer name to reference the fields. display InventQty salesQty() { BufferName.fieldName; } Having the display method on the table is all about reusability. This means that you will write the method once and reuse it anywhere required in the application. If you create the method on a data source it will only be available throughout the form that contains the data source. Regards, Varden Morris 276 Taralake Terrace N.E. Calgary, Alberta T3J 0A1 Canada (403) 366-8434 (H) (403) 615-1604 (C) [EMAIL PROTECTED] - Original Message From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: Axapta-Knowledge-Village@yahoogroups.com Sent: Friday, October 26, 2007 3:38:57 AM Subject: Re: [Axapta-Knowledge-Village] Display method on data source and table Hi, on Form Datasource you need the record as parameter: display InventQty salesQty(myTable _myTable) { return _myTable.qty } ...if you forgott, same value for each record in grid. on Table you can simply use this: display InventQty salesQty() { return this.qty } Best regards Michael - Original Message - From: pradeep itnal To: Axapta-Knowledge- [EMAIL PROTECTED] ups.com Sent: Friday, October 26, 2007 10:55 AM Subject: [Axapta-Knowledge- Village] Display method on data source and table Hi all What difference it makes if i write my Display method on Datasource and if i write it on Table methods please tell me. Thanks in advance. Thanks Regards Pradeep S.Itnal mob:+91-9886529409 - - --- Now you can chat without downloading messenger. Click here to know how. [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text portions of this message have been removed]
Re: [Axapta-Knowledge-Village] Release COM object
Hi Steeve, I am not a C# developer. But I am not sure if you have used as i used to do in C++ if(MyCom) { myCom.Close(); myCom = NULL; } the bove code should decrement the pointer to the object's handle. good luck, Subbu Steeve Gilbert [EMAIL PROTECTED] wrote: Hi guys, I would like to know how to release a COM (as in Component Object Model) correctly. I've created a .NET COM dll with VS2005 that I use in Ax3.0 SP3. When I use the COM in Axapta, it doesn't release reference to the COM until I close Axapta. So when I make modification to my dll and rebuild it, VS can't recreate the dll stating that the file is in use. To release the COM, so far i've tried : myCom.finalize(); myCom.detach(); myCom = null; But no success. Any idea? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text portions of this message have been removed]
[Axapta-Knowledge-Village] Re: Release COM object
or WinAPI::closeHandle(_hwd) kind regards, Subbu --- In Axapta-Knowledge- [EMAIL PROTECTED], Subrahmanyam,Mamidi [EMAIL PROTECTED] wrote: Hi Steeve, I am not a C# developer. But I am not sure if you have used as i used to do in C++ if(MyCom) { myCom.Close(); myCom = NULL; } the bove code should decrement the pointer to the object's handle. good luck, Subbu Steeve Gilbert [EMAIL PROTECTED] wrote: Hi guys, I would like to know how to release a COM (as in Component Object Model) correctly. I've created a .NET COM dll with VS2005 that I use in Ax3.0 SP3. When I use the COM in Axapta, it doesn't release reference to the COM until I close Axapta. So when I make modification to my dll and rebuild it, VS can't recreate the dll stating that the file is in use. To release the COM, so far i've tried : myCom.finalize(); myCom.detach(); myCom = null; But no success. Any idea? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text portions of this message have been removed]