How long have you been using Microsoft Dynamics Ax?

Toplam Sayfa Görüntüleme Sayısı

Popular Posts

Translate

Bu Blogda Ara

31 Ağustos 2012 Cuma

Edit method ile çoklu kayıt seçimi


Merhaba,

Grid üzerinde bulunan kayıtları işlem yapmak için seçmenin çeşitli yolları mevcut. Yollardan biri grid'e bir checkbox ekleyip seçilen kayıtları bir map ile yönetmek.

Form üzerinde değeri değiştirilebilen display alanların arkasında çalışan method tipi edit methoddur edit methodlar 3 adet parametre alırlar bunlardan ilki alanın değerinin değiştirilmek için seçilip seçilmediği set değişkeni, ikincisi gönderilen kayıt bilgisi ve son değer ise kayıt bilgisinin seçilmek üzere mi yoksa seçiminin kaldırılması için mi tıklandığı bilgisi mark değişkeni.

edit NoYes MarkRecords(boolean set,tabloAdi tabloDegiskeni,NoYes _mark)
{

    if (set)
    {
        MarkMap.insert( tabloDegiskeni .RecId , tabloDegiskeni.stringAlan);
        MarkMap.valueSet();
    }
    else
    {
        if (MarkMap.exists(PackingSlip.RecId))
        {
           _mark = MarkMap.lookup(PackingSlip.RecId);
        }
    }

    return _mark;
}

classDecleration da MarkMap değişkenini tanımlıyoruz.

init() methodunda MarkMap değişkeninin Map tipini belirliyoruz

MarkMap = new Map(Types::Int64,Types::string) gibi

sonrasında istenilen yerde mapEnumerator ile MarkMap değişkenindeki değerleri listeliyoruz.

Bol AX lı günler,
Alper.



28 Ağustos 2012 Salı

DATA MIGRATION TOOL

In AX2012 data migration tool is awesome. As if in Ax2009 you can set your own fiels etc. but some specific tables are set by Microsoft. So it is easier to select the tables for the user that know AX less.


27 Temmuz 2012 Cuma

Flush .Net Business Connector Cahce

Hi,

When you edit some method on class in AX and then use it on BC you will notice .Net code uses the old method.

You can restart IIS, AOS or both but this is not the best solution and not always solve our problem.
We just need to flush the AOD on AX side.
We will just write one line code to the .net application 
Microsoft.Dynamics.BusinessConnectorNet.Axapta.CallStaticClassMethod(“SysFlushAOD”, “doFlush”);
You can use this code after Axapta logon and just before calling the static method.
Hope it helps,
Have a nice AXing,
Alper.