Enable Created and Modified By in all parameter table in AX using X++

Source: Enable Created and Modified By in all parameter table in AX using X++

Advertisements

Enable Created and Modified By in all parameter table in AX using X++

One of the tasks that was like headch for me was to enable the created by and modifed by in sepicfic group of tables , which is a very important requirment in every succefull implemetation

so that i invented a solution for these task , the following job will enable any one to track the changes in the data by enable created by/created date time and modified by / modified date time property in each Parameter and Group Table type which will allow you to catch any one trying to mess up the appication

static void EnableTableProperty(Args _args)

{

SysDictTable dictTable,sysDictTable;
TreeNode node;
#AOT Name name;
TreeNode treeNode;
str indexName;
#Properties
;

treeNode = TreeNode::findNode(#TablesPath);
treeNode = treeNode.AOTfirstChild();

while (treeNode)

{
name = treeNode.AOTname();
sysDictTable = SysDictTable::newTableId(treeNode.applObjectId());

if ((sysDictTable.tableGroup() == tableGroup::Parameter ||
sysDictTable.tableGroup() == tableGroup::Group) &&
!sysDictTable.isMap() &&
!sysDictTable.isTmp() &&
!sysDictTable.isView() &&
sysDictTable.enabled())
{

node = SysDictTable.treeNode();
node.AOTsetProperty(#PropertyCreatedBy, #PropertyValueYes);

node.AOTsetProperty(#PropertyCreatedDateTime, #PropertyValueYes);
node.AOTsetProperty(#PropertyModifiedBy, #PropertyValueYes);
node.AOTsetProperty(#PropertyModifiedDateTime, #PropertyValueYes);

node.AOTsave();

node.treeNodeRelease();
node = null;

}

}

}

Twenty Must-Know Tips Before ERP Implementation

Twenty Must-Know Tips Before ERP Implementation

  1. ERP is about your business, not the technology.
  2. ERP initiatives are very challenging.
  3. Selecting the right software is the first step in a successful ERP implementation.
  4. No ERP software is perfect. All have their strengths, weaknesses and tradeoffs.
  5. A business blueprint is the second step to an effective ERP implementation.
  6. Business process re-engineering should happen before – not after – you implement your ERP software.
  7. ERP software best practices and pre-configured solutions do not solve all of the challenges of ERP.
  8. SaaS ERP won’t eliminate all of your risks either.
  9. Your project will fail without adequate organizational change management.
  10. Executive buy-in and support is critical to ERP success.
  11. The “A-Team” is critical to ERP success.
  12. There is no “one size fits all” ERP strategy.
  13. If your operations and your ERP system are misaligned, it’s probably not the software’s fault.
  14. Expectations are high, but most ERP implementations don’t properly define the “finish line.”
  15. Organizations that strive for “no customization” often end up doing it anyway.
  16. You don’t have to implement ERP all at once.
  17. In addition to planning, implementation is also about execution.
  18. If you don’t measure it, you won’t achieve it.
  19. It is important to recognize the “canary in the coal mine” or signs that your implementation may be in trouble.
  20. ERP success and benefits realization is largely determined before the implementation starts.

C# Generics

Generics…

  • With the language constructs you’ve learned so far, you can build powerful objects of many different types. You do this mostly by declaring classes that encapsulate the behavior you want and then creating instances of those classes.
  • All the types used in the class declarations so far have been specific types—either programmer defined or supplied by the language or the BCL. There are times, however, when a class would be more useful if you could “distill” or “refactor” out its actions and apply them not just to the data types for which they are coded but for other types as well.
  •  Generics allow you to do just that. You can refactor your code and add an additional layer of abstraction so that, for certain kinds of code, the data types are not hard-coded. This is particularly designed for cases in which there are multiple sections of code performing the same instructions, but on different data types.
  • So that i think it is time to learn more about generics …. the following artical will talk about generics and catch the headlines that will help you invest generics in your code .. leaving you with the  artical .. hoping to be helpful
  • Download

Building Multithreaded Application in C# 3.5

This Article Demonstrates how to use MultiThreading in c# programming , and the new updates in  .Net FrameWork 2.0 SDK, and Discuss many problems and illustrates how to solve it such as Concurrency, so lets see what this subject talks about

Download

References

Visual CSharp® 2005 How to Program, 2nd Ed – [Prentice Hall]

Pro-C# 2008-and-the-NET-3.5-Platform 4th Edition Apress

For more information

http://en.wikipedia.org/wiki/Multithreading