Browse by Tags

  • Instantiating query object

    Constructor of the Query class has default anytype parameter named _source. To my knowledge there are four different ways to use it: Instantiating an empty query – no parameter value should be specified: Query q = new Query(); Instantiating a query based on the AOT query: Query q = new Query(querystr...
    Posted to Microsoft Dynamics AX Daily (Weblog) by Anonymous on 03-17-2010
  • Global::curExt2dataareaId

    While working with virtual companies it is needed sometimes to determine what is the actual DataAreaId that will be assigned to the table record if it will be inserted in the current company context. To do that there is the method curExt2dataareaid() on the Global class. Example: Let there are 2 companies...
    Posted to Microsoft Dynamics AX Daily (Weblog) by Anonymous on 03-16-2010
  • SaveContents property on the table fields

    I've opened for myself the new great property of the table fields - SaveContents. This property defines whether field will be physically created in the database (Yes) or will it just be present on the table buffer (No). It can be quite useful to have such kind of fields if you want to avoid redundancies...
    Posted to Microsoft Dynamics AX Daily (Weblog) by Anonymous on 03-11-2010
  • Define overwrites

    It is a little bit weird how X++ compiler handles the case when macros with the same name are defined in the class declaration of a class and in the one of its methods. The expected behavior for me is to either not allow to do that or to have a macro from class declaration to be applicable everywhere...
    Posted to Microsoft Dynamics AX Daily (Weblog) by Anonymous on 03-10-2010
  • TableGroup property

    The TableGroup property on tables not just categorizes them. I know two cases where this property has influence on the functionality: Forceliterals keyword is added to the queries which contain two or more joined tables of group Miscellaneous, Transaction, WorksheetHeader or WorksheetLine. Record templates...
    Posted to Microsoft Dynamics AX Daily (Weblog) by Anonymous on 03-09-2010
  • Getting label text in different languages

    Sometimes it is needed to get a label text in a language that is different from the current one. To do that the labelId2String method of the SysLabel class can be used. Example: SysLabel::labelId2String(literalstr('@SYS1'), 'en-us'); Gives: Time transactions SysLabel::labelId2String(literalstr...
    Posted to Microsoft Dynamics AX Daily (Weblog) by Anonymous on 03-08-2010
  • Pacote de atualização com a NF-e e Integração Fiscal

    Fala galera… É com muita alegria que venho falar para vocês que a Microsoft disponibilizou hoje o pacote de atualização do Ax2009 contendo a integração do Ax diretamente com a SEFAZ para emissão da NF-e. Mais informações www.daxdev.com.br Fiquem ligados no blog que passei acima que em breve terão...
  • xSession::xppCallStack method

    This method allows to get the current call stack - all caller method names and line numbers. For example, calling xSession::xppCallStack() from the line 13 at the Tutorial_RunbaseBatch.dialog() method will give the following call stack: Actually I even found one nice practical application for it - SysTestAssert...
    Posted to Microsoft Dynamics AX Daily (Weblog) by Anonymous on 03-05-2010
  • Global::queryValue method

    This method translates anything into the correct query range value, so you don't have to care about how UTCDateTime value should be converted into a string or which symbols require slash before them. It is the best practice to always use this method when query range is assigned a value, even if the...
    Posted to Microsoft Dynamics AX Daily (Weblog) by Anonymous on 03-04-2010
  • System Documentation

    It is known fact that in AX there are quite a lot of kernel classes, tables, data types, functions, etc. that are not visible in the AOT but can be used from the code. For example, class Args. There is a nice way to get an overview of all this stuff - in the System Documentation node in the AOT. The...
    Posted to Microsoft Dynamics AX Daily (Weblog) by Anonymous on 03-03-2010
Page 1 of 8 (72 items) 1 2 3 4 5 Next > ... Last »