Codeunit 9200 and PeriodType parameter

poppinspoppins Member Posts: 647
edited 2012-07-06 in NAV Three Tier
Hi everyone,

I am trying to transform a form to a page under Nav 2009...

The form contains a matrix box which header is linked to the table Date and displays years.

The original code for that is
CurrForm.MATRIX.MatrixRec.SETRANGE("Period Type",4);
CurrForm.MATRIX.MatrixRec.SETFILTER("Period Start",'>=%1',DMY2DATE(1,1,(DATE2DWY(TODAY,3)-1)));
CurrForm.MATRIX.MatrixRec.FIND('-');
CurrForm.MATRIX.MatrixRec.RESET;

Now, I have to use the following function from Codeunit 9200(Matrix Management):
http://msdn.microsoft.com/en-us/library/dd339053.aspx
MatrixMgt.GeneratePeriodMatrixData(SetWanted,12,FALSE,PeriodType,'',
PKFirstRecInCurrSet,MatrixColumnCaptions,ColumnSet,CurrSetLength,MatrixRecords);

What about the PeriodType parameter??? How should I transform the original code to get it????
Sign In or Register to comment.