Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Read data from Matrix Page

(0) ShareShare
ReportReport
Posted on by 2,999

We've created a custom Matrix Page in NAV 2017. The Page basically shows some row and column labels, as any matrix page, and the user can input values in the Data Cells (MATRIX_CellData[1],MATRIX_CellData[2], etc)

The idea is to have some code in OnClosePage() trigger, to read the data from the Matrix Page and store it in a NAV Table.

We are not able to find code to set the cursor position on the first row, and retrieve the MATRIX_CellData values. Then loop to the next row and so on, until all rows have been read.

Any ideas? This is what we have tried, but it's always returning the data in the actual Page's active row

IF FINDFIRST THEN REPEAT 
 MESSAGE(FORMAT(MATRIX_CellData[1]));
UNTIL NEXT=0;

The only solution I've found is to code the OnValidate trigger of each MATRIX_CellData field, and store the values on a Temporary record. Then in the OnClosePage() trigger, I will loop through this temp. record and store the values. It's sad to have to do this, as the values are already on screen, and must be some way to just read them

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans