posts - 10, comments - 2, trackbacks - 0

My Links

News

View Chandra Shekhar Mantha's profile on LinkedIn Locations of visitors to this page

Archives

Post Categories

Saturday, May 08, 2010

Adopting the Scrum Method of Achieving Software Agility

I recently read this article and found interesting…. check it out ..

http://www.rallydev.com/documents/CIO_Playbook_For_Adopting_Scrum_080805.pdf

Posted On Saturday, May 08, 2010 7:58 PM | Feedback (1) |

Friday, May 07, 2010

Installing a DLL to Global assembly cache (GAC)

Install you DLL assembly by using the ‘gacutil.exe’, before installing the DLL ensure it has a strong name, to assign a strong name refer to the link Assigning a DLL strong name .

 

1) open the Command prompt, and navigate to the folder of gacutil.

2) To install a DLL assembly

gacutil /I "C:\[PathToBinDirectoryInVSProject]\gac.dll"

3) To uninstall

gacutil /U  “Name_of_The_DLL”

Posted On Friday, May 07, 2010 6:03 PM | Feedback (0) |

Assigning a DLL strong name

Hi Guys, few days back I needed to install few DLL  assemblies to GAC, since I hardly knew about this topic, so googled on the internet and here is what I learned; There is a utility named ‘gacutil.exe’

which is delivered with Visual studio and .NET framework ( search in your PC for gacutil.exe) or you can also download  from internet.

Before installing the DLL to GAC , ensure that the DLL you want to install has a strong name. To assign a strong name follow these steps::

 

1) Open the visual studio and open your C# project

2) Right click on the project/Solution and click on properties.

image

3) Click on the ‘Signing’ tab

image4) Select the check box Sign the assembly and select a strong key file .

image5) You can also create a new key file by selecting new, click on new to create a key file, provide the name of the file and password

image

6) Now build your solution, the dll file generated has a strong name.

Posted On Friday, May 07, 2010 5:54 PM | Feedback (1) |

Sunday, April 04, 2010

The blogs I turn upto…

I turn around the pages of Following blogs 

Satya Srikant (who is also my brother ;))

http://geekswithblogs.net/ssmantha/Default.aspx

 

Kamal

http://kamalblogs.wordpress.com

 

Prabhat Samuel

http://geekswithblogs.net/Prabhats/Default.aspx

 

Vanya Kashperuk

http://kashperuk.blogspot.com/

Mfp’s two cents

http://blogs.msdn.com/mfp/

 

……. more to add to list … ;)

Posted On Sunday, April 04, 2010 5:11 AM | Feedback (0) |

Nice article

Nice article by Kamal,

 

http://kamalblogs.wordpress.com/2010/04/02/towards-dynamics-ax-product-certification-%E2%80%93-best-practices-part-i/

Posted On Sunday, April 04, 2010 5:01 AM | Feedback (0) |

Lookup table display methods

public static client str lookupTableDisplayMethod(str _tableId)
{
    SysDictTable        dictTable   = new SysDictTable(str2int(_tableId));
    ListEnumerator      enum;
    Map                 map         = new Map(Types::String, Types::String);
    ;

    if (dictTable &&
        dictTable.rights() > AccessType::NoAccess)
    {
        enum = dictTable.getListOfDisplayMethods().getEnumerator();

        while (enum.moveNext())
        {
            map.insert(enum.current(), enum.current());
        }
    }

    return pickList(map, "Display method", tableid2pname(_tableId));
}

Posted On Sunday, April 04, 2010 4:41 AM | Feedback (0) |

Lookup for data sources in a query

public static str lookupDatasourceOfQuery(Query _query)
{
    Query                   query = _query;
    QueryBuildDataSource    qbds;
    int                     dsIterator;
    Map                     map = new Map(Types::String, Types::String);
    ;

    for (dsIterator = 1; dsIterator <= query.dataSourceCount(); dsIterator++)
    {
        qbds = query.dataSourceNo(dsIterator);
        map.insert(qbds.name(), qbds.name());
    }

    return pickList(map, "Data source", "Data sources");

}

Posted On Sunday, April 04, 2010 4:35 AM | Feedback (0) |

Saturday, April 03, 2010

Find related field in Dynamics AX

The following job helps you find the related field of a table, in the e,g it tries to find the related field of (InventTrans, InventTransId) for the sales Line table

 

static void findRelatedFieldId(Args _args)

{
   Sy

sDictTable    dictTable = new SysDictTable(tablenum(InventTrans));
    int             i,j;
    SysDictRelation dictRelation;
    TableId         externId = tablenum(SalesLine);
    IndexId         indexId;
    ;

// Search the explicit relations
    for (i = 1; i <= dictTable.relationCnt(); ++i)
    {
        dictRelation = new SysDictRelation(dictTable.id());
        dictRelation.loadNameRelation(dictTable.relation(i));

// If it is a 'relation' then you use externTable(), but for extended data types you use table() (see next block).
        if (SysDictRelation::externId(dictRelation) == externId)
        {
            for (j =1; j <= dictRelation.lines(); j++)
            {
                info(strfmt("%1", dictRelation.lineExternTableValue(j)));
                info(fieldid2name(dictRelation.externTable(),dictRelation.lineExternTableValue(j)));
            }
        }
    }

    info(strfmt("%1", dictRelation.loadFieldRelation(fieldnum(InventTrans, InventTransId))));
}


Posted On Saturday, April 03, 2010 5:59 AM | Feedback (0) |

Sunday, July 05, 2009

Group By on a Look-Up Query

Whenever we try to use a group by on a lookup, the group by used to come for the first time, and later it never showed.
investigations revealed that it second time it fired a Order By Asc instead of group by query. this problem was fixed by passing parameter false to

sysTableLookup.parmUseLookupValue(false);

Sample

void orderNoLookup(FormControl _control)
{
    SysTableLookup          sysTableLookup = SysTableLookup::newParameters(tablenum(InventTrans),_control);
    QueryBuildDataSource    inventTransQbds;
    Query                   query;// = element.initQuery();
    ;


    sysTableLookup.addLookupfield(fieldnum(InventTrans, TransRefId),
                                  true);
    inventTransQbds = query.dataSourceNo(1);

    inventTransQbds.addSortField(fieldnum(InventTrans,TransRefId));

    inventTransQbds.orderMode(OrderMode::GroupBy);

    sysTableLookup.parmUseLookupValue(false);
    sysTableLookup.parmQuery(query);
    sysTableLookup.performFormLookup();
}

Posted On Sunday, July 05, 2009 5:30 AM | Feedback (0) |

Thursday, May 21, 2009

Dynamics AX union queries

Microsoft Dynamics AX 2009 has a new feature, which allows you to create union of queries. The QueryBuildDataSource class allows you to create unions of query.
First you need to specify what type of the query for e.g. Union or Join

Sample

query.queryType(QueryType::Union);

You need to specify the union type for e.g. Union, UnionAll, or None

Sample

qbdsCustTable = query.addDataSource(tableNum(CustTable));
qbdsCustTable.unionType(UnionType::UnionAll); // Include duplicate records

please refer to documentation for specific usage of Union types

Posted On Thursday, May 21, 2009 6:23 PM | Feedback (0) |

Powered by: