Skip to main content

Posts

AXAPTA Ana tablo formuna git

Go to the Main Table Form has to be implemented manually. In this recipe, to demonstrate how it works, we will modify the Business relations form in the CRM module to make sure that the Employee filter at the top of the form allows users to use the Go to the Main Table Form feature from the context menu. 1. Open the formform in AOT, and override jumpRef() of the EmployeeFilter control with: "Ana tablo formuna git" butonu otomatik olarak çalışır. Ancak kontrol sadece extended data tipine bağlıysa, çalışmaz. Bu durumda kendi Jumpref methodunuzu yazmanız gerekir. Bu konuda Fatih Demirci 'nin aşağıdaki kodundan faydalandım: public void jumpRef() { EmplTable emplTable; Args args; MenuFunction menuFunction; ; emplTable = EmplTable::find(this.text()); if (!emplTable) { return; } args = new Args(); args.caller(element); args.record(emplTable); menuFunction = new MenuFunction( menuitemdisplaystr(EmplTable), MenuItemType::Display); menuFunction.run(...

Kullanıcı grubu yetkilerini kodla toplu olarak güncelleme

Mesut Boztaş dan bir bilgi tşk. Yetkilendirme malumunuzdur ki AX’ın en hassas kısımlarından biridir. Bir müşterimizde SecurityKey değeri olmadan Canlıya alınan bir form menüdeki ilgili klasörü ve menüyü otomatik olarak tüm kullanıcılara açmıştır. Daha sonra forma SecurityKey değeri verilse bile birkez açılan ana anahtarlar kapanmamaktadır. Eğer çok kullanıcı grubunuz ve etki alanınız varsa bu işlemi telafi etmek uzun sürecek bir işlemdir. Altta belirtiğim job kullanılarak istenilen bir objenin yetki ayarlaması otomatik olarak yapılabilmektedir. İşlem süresi Kullanıcı grubu ve etki alanı sayısına göre değişkenlik gösterebilir.   02 static void changeAccessRights(Args _args) 03 { 04     SecurityKeySet          swSysSecurity; 05     UserGroupList           userGroupList; 06     DomainInfo    ...

Force delete inventtrans

Below is sample job to force delete inventtrans, which will take care of invent on hand update. static void DeleteInventTrans(Args _args) { Dialog dlg = new Dialog("Delete inventtrans ?"); DialogField dlgFld; InventMovement inventMovement; PurchLine purchLine; PurchLineRefRecId recId; ; dlgFld = dlg.addField(typeid(PurchLineRefRecId)); if(dlg.run()) { recId = dlgFld.value(); purchLine = PurchLine::findRecId(recId); if(purchLine) { InventMovement = InventMovement::construct(purchLine); InventUpd_DeleteMovement::newMovement( inventMovement,true).updateNow(); info("done"); } } }

Execute SQL command

static void Job3 ( Args _args ) {     LogInProperty   Lp = new LogInProperty ( ) ;     OdbcConnection  myConnection;     Statement       myStatement;     ResultSet       myResult;     str             sqlQuery; ;     sqlQuery = 'SELECT TOP 10 * FROM CustTable ORDER BY NewID()' ;     LP. setServer ( "Server" ) ;     LP. setDatabase ( "db" ) ;     Lp. setUsername ( "user" ) ;     Lp. setPassword ( "password" ) ;     try {         myConnection = new OdbcConnection ( LP ) ;     }     catch {         info ( "Check username/password." ) ;         return ;     }     myStatement = myConnection. createStatement ( ) ;     myResult = myStatement. executeQuery ( sqlQuery ) ;   ...

Purchline Change confirmed date Axapta

void clicked ( ) {   PurchLine                 tmpPurchLine;   PurchLine                 updatePurchLine;   PurchLine                 selectedRecord;   Dialog            dl;   DialogField       dlfTransdate; ;     dl   = new Dialog ( "Change confirmed date" ) ;     dlfTransdate = dl. addFieldValue ( typeid ( "Transdate" ) , today ( ) , "Confirmed date" ) ;     if ( dl. run ( ) ) {         selectedRecord =  PurchLine_ds. cursor ( ) ;         for ( tmpPurchLine = PurchLine_ds. getFirst ( true ) ? PurchLine_ds. getFirst ( true ) : PurchLine_ds. cursor ( ) ;         tmpPurchLine;    tmpPurchLine = PurchLine_ds. getnext ( ) )         {     ...

List of new tools released for Microsoft Dynamics AX 2012

  1.    Application analysis Tool (Beta): The Application Analysis tool is designed to enable developers to easily understand how the application has been constructed. The tool can analyze X++ code, create UML sequence diagrams of the data model using progressive discovery. 2.    Data Migration Framework Tool (Beta): The Data Migration Framework (Beta) is an extension to Microsoft Dynamics AX that provides a way to migrate data from external sources to source Microsoft Dynamics AX 2012. The framework also supports exporting and importing data (for entities defined in the Data Migration Framework) from a Microsoft Dynamics AX 2012 instance to another one. 3.    Combine XPO Tool (Beta): The Combine XPO Tool (Beta) 1.0 is a command line program that combines a set of interdependent XPO files into a single XPO. For example, if a team of developers is making code changes to different aspects of an application, use this tool to ...

Dünyanın en çok bilinen markası Coca-Cola’nın CEO’su Muhtar Kent, başarısının sırrını paylaştı.

Muhtar Kent'in Başarı Sırları Dünyanın en çok bilinen markası Coca-Cola’nın CEO’su Muhtar Kent, başarısının sırrını paylaştı. Başarı için belirlediği 10 temel ilkesi olan Kent’in kariyer yaşamında dikkat edilecekler listesinin başında; "Herkes kendi çantasını kendi taşımalı" prensibi yer alıyor...   MUHTAR KENT’TEN BAŞARI VE KARİYER TAVSİYELERİ Muhtar Kent’in başarı olma kavramı ile ilgili vermiş olduğu ipuçlarını ilgiyle takip ediyorum. Kendisi bunun için 10 ilke belirlemiş. 1. Her iş mutfağında pişer. 2. Dururken düşmezsin ama, ilerlemekten de korkmayın. 3. Ofisine yapışıp kalma. 4. Fedakarlıktan kaçınma. 5. Hobilerine zaman ayır. 6. Değişim her zaman iyi olmayabilir. 7. Tutarlılık güven verir. 8. Gündem oluştur. 9. Büyük resme odaklanın. 10. Çinlileri örnek al.   Kariyer yaşamı için vermiş olduğu tavsiyelere bakacak olursak; - Öncelikle herkes kendi çantasını kendi taşımalı - Hiç yalnız yemek yemeyin. Böylece aldığınız her lokmadan ayrı bir tat alır ve sürekli gülümse...