Showing posts with label Create. Show all posts
Showing posts with label Create. Show all posts

Create, Transform & Manage Business Documents to Greater Advantage


On the international scene of business, companies are realizing a growing need for an intelligent and individual method of communicating business documents with customers, partners and suppliers. The format and distribution method of business documents often vary from one customer to another, depending on specific country, industry or legislative standards.

Companies will save time and money on implementing an output and document management application that delivers business documents electronically to their business partners and customers. Time-consuming manual procedures can be cut away, leaving staff to handle vital core business projects in the organization.

What readers will learn from this white paper:

Why the combination of an ERP system and a printer setup is not efficient.Why distributed output management (DOM) products and technology such as LaserNet are the best answer for enterprises dealing with large-scale multichannel content distribution issues.How to use LaserNet to create, transform and manage business documents.

View the original article here

8:56 AM by Jawaan · 0

How to Create a New Role Centre in Dynamics AX 2009


One of the most talked about features of AX 2009 is Role Centres... I thought Microsoft did a phenomenal job by packaging Sharepoint and ax in one box... the result: Extraordinary Technology.

As complex as they might seem role centres are actually very simple to use.. and its actually even simpler to create new one..

This is a step by step guide to help users/developers to create and deploy new role centres..

In this example we are going to create a Merchandiser Role Centre

Step 1:

Log in as an Admin and open up EP in internet explorer..

Well you actually dont need to be an admin.. but you need site creation rights in sharepoint and also access to the AOT in ax.

clip_image002

Then click on ‘Site Actions’ and select the ‘Create’ option

Step 2: select Basic Page..

Note: you might be better of select ‘Web Part Page’.. as a basic page would not have any web parts on it... all the standard role centre pages are Web part pages... I will show you both examples in this article .. hence I started with the basic page. (see the Additional info section below)

Also I like the basic page because it loads up a lot faster J

clip_image003

Step 3: in the next page, type in the Name of the Page (please use good Naming Convention Standard)... also make sure that the Document Library is set to Enterprise Portal

clip_image005

Step 4: as I choose to create a Basic Page a Text editor will pop up.. if I would choose the Web Part pages option then this editor would not appear.

Simply type something and click Save... now you would be directed to the new page.

clip_image007

Step 5: open the AOT in AX and browse down to the Web Menu Item Node .. right click and select New URL.

clip_image008

Step 6: Give the URL a name and a Label (please follow std naming conventions) and then click on the brose icon on the URL Property (the browse icon is represented by 3 dots).. as shown in picture

Then expand the Enterprise Portal folder and find the new Page you created. Select and click OK

clip_image010

Step 7: make sure that you set the Home Page Property to Yes..

If you dont set this to yes, then the page will not be available is the role canter page list on the User profile form (next step)

clip_image011

Save and close the AOT.

Step 8: in AX browse to Administration > Setup > User profiles

Create a new record, set the Profile name and description and then select the new Page as the role centre page

Assign users to the role and your done.

Additional Info:

· You can also export the role centre (user Profile > Export and Export AOT).. the export AOT options make the role centre a part of the AOT resource node.. this is helpful if you want to migrate the role centre from say a dev environment to a Test Environment.

· To create a Web Part Role centre

Rather than selecting the Basic page option ..select the Web Part page option

clip_image012

Then give a name and select EP as the Document Library

Notice I choose to overwrite the role page .. this way I dint have to change my url to point to the Web part page.

clip_image014

clip_image016

References:

http://msdn.microsoft.com/en-us/library/cc558235.aspx

- Mohammed Rasheed

http://www.dynamic-ax.co.uk/


View the original article here

2:10 AM by Jawaan · 0

Quick and Dirty Code to Create and Post Counting Journals in Dynamics AX


A couple of guys asked me for code to import inventory in to ax using Counting journals... so here goes..

I basically created a table, called StockLevelImport and added basic fields to it such as itemid, location, warehouse, size,colour and quantity.. Notice: other dimensions such as config, batch were not added..however you can easily do so if you like.

The following bit of code was use to import the stock file in to ax (basically import a csv file)

static int importFromFile()

{

CommaIo fileIn;

StockLevelImport stockLevelImport;

container fileInCon;

FileIOPermission perm;

int recordsInserted;

;

#stockLevelImport

// the macro holds the full file name

recordsInserted = 0;

perm = new FileIOPermission(#stockLevelImportFile,'r');

if (perm == null)

{

error("FileIoPermission error");

return 0;

}

// Grants permission to execute the CommaIo.new method.

// CommaIo.new runs under code access security.

perm.assert();

fileIn = new CommaIo(#stockLevelImportFile,'r');

delete_from stockLevelImport; // clear table before import

fileIn.inFieldDelimiter(',');

startLengthyOperation();

ttsbegin;

while(fileIn.status() == IO_Status::Ok)

{

fileInCon = connull();

fileInCon = fileIn.read();

stockLevelImport.ItemId = conpeek(fileInCon,1);

stockLevelImport.InventLocationId = conpeek(fileInCon,2);

stockLevelImport.WMSLocationId = conpeek(fileInCon,3);

stockLevelImport.InventQty = conpeek(fileInCon,4);

stockLevelImport.InventColorId = conpeek(fileInCon,6);

stockLevelImport.InventSizeId = conpeek(fileInCon,5);

if(fileIn.status() == IO_Status::Ok) // to prevent the last insert

stockLevelImport.insert();

recordsInserted++;

}

ttscommit;

endLengthyOperation();

CodeAccessPermission::revertAssert();

return recordsInserted;

}

The code below is where meat of the operations are performed..

void countIt()

{

date transDate;

StockLevelImport stockLevelImport;

inventJournalName iJournalName;

InventJournalTable iJournalTable;

InventJournalTrans iJournalTrans;

real line;

Numberseq numberseq;

InventJournalCheckPost checkPost;

SysOperationProgress prog;

int progTot;// total count for progress bar

int ss;

InventTable inventTable;

InventTableModule inventTableModule;

inventdim idimm;

;

transDate = systemdateget();

#aviFiles

line = 1.00;

select count(RecId) from stockLevelImport;

progTot = stockLevelImport.RecId;

prog = SysOperationProgress::newGeneral(#aviStopWatch,"Adding Stock...", progTot);

numberseq = Numberseq::newGetNumFromCode(InventParameters::numRefInventJournalId().NumberSequence);

iJournalName = inventJournalName::find(InventParameters::find().CountJournalNameId);

if(iJournalName.RecId == 0)

throw error("NO counting journal Name foud");

ttsbegin;

iJournalTable.initFromInventJournalName(iJournalName);

iJournalTable.JournalId = numberseq.num();

iJournalTable.Reservation = ItemReservation::Automatic;

iJournalTable.SystemBlocked = NoYes::Yes;

iJournalTable.insert();

inventTableModule.clear();

inventTableModule = null;

stockLevelImport = null;

// while select inventtable

while select stockLevelImport where stockLevelImport.InventQty

join Price from inventTableModule where inventTableModule.ItemId == stockLevelImport.ItemId && inventTableModule.ModuleType == ModuleInventPurchSales::Invent

{

ss++;

iJournalTrans.clear();

iJournalTrans.initFromInventJournalTable(iJournalTable);

iJournalTrans.LineNum = line;

iJournalTrans.CostAmount = decround((stockLevelImport.InventQty * inventTableModule.Price),2);

iJournalTrans.CostPrice = inventTableModule.Price;

iJournalTrans.Counted = stockLevelImport.InventQty;

iJournalTrans.InventDimId = this.getDim();

if(iJournalTrans.InventDimId == "")

{

info("cannot create dimension for item " + iJournalTrans.ItemId);

continue;

}

iJournalTrans.JournalType = iJournalTable.JournalType;

iJournalTrans.PriceUnit = 1.0;

iJournalTrans.ProfitSet = CostProfitSet::Standard; // Standard

iJournalTrans.ProjSalesPrice = 0.0;

iJournalTrans.Qty = stockLevelImport.InventQty;

iJournalTrans.TransDate = transDate;

iJournalTrans.ItemId = stockLevelImport.ItemId;

iJournalTrans.initFromInventTable(InventTable::find(stockLevelImport.ItemId),false,false,false);

if(!iJournalTrans.Dimension)

{

info("Dimenstions not specified for item " + iJournalTrans.ItemId);

continue;

}

if(!iJournalTrans.validateWrite())

{

info("Could not validate write");

continue;

}

iJournalTrans.insert();

line++;

// progress bar

prog.setText("Item : " + stockLevelImport.ItemId);

prog.setCount(ss);

} // end while on Lines

iJournalTable.NumOfLines = line;

iJournalTable.update();

// Posting the Journal:

prog.setText("creating inventJournal...hold on");

prog.setCount(1);

if(BOX::yesNo("Do you want to post the Journal? " ,DialogButton::Yes) == DialogButton::Yes)

{

checkPost = InventJournalCheckPost::newJournalCheckPost(JournalCheckPostType::Post,iJournalTable);

checkpost.run();

}

iJournalTable.SystemBlocked = NoYes::No;

iJournalTable.update();

ttscommit;

prog.kill();

info("Lines posted = " + int2str(ss));

}

And finally a small method to find the correct inventDimId that is to be used on the journal Line.

InventDimId getDim()

{

;

if(!stockLevelImport.InventLocationId || ! stockLevelImport.WMSLocationId)

return "";

if(!WMSLocation::exist(stockLevelImport.WMSLocationId,stockLevelImport.InventLocationId))

return "";

idimm = null;

idimm.InventLocationId = stockLevelImport.InventLocationId;

idimm.wMSLocationId = stockLevelImport.WMSLocationId;

idimm.InventColorId = stockLevelImport.InventColorId;

idimm.InventSizeId = stockLevelImport.InventSizeId;

return inventdim::findOrCreate(idimm).InventDimId;

}

- Mohammed Rasheed


View the original article here

11:13 PM by Jawaan · 7

About Me