Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Store Months of the year in a variable

Posted on by Microsoft Employee

Hi all,

I just wanted to ask if it is possible to store the months of the year in a variable and loop it inside a matrix table defined in my customized report.

It would look like this.

4010.1.png

this is my layout for the report in rdlc.

7633.123.jpg

I don't know how to do it. but my desired output would be like the screenshot on the top.

and for the variable that i'm saying .

i decalred a variable Months. with the datatype of Date.

is this okay?

thank you for anyone who helps me on this.

*This post is locked for comments

  • Verified answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: Store Months of the year in a variable

    You need to declare all Like:

    DataItem           DataSource                   Name                       

    Column              Month[1]                     January

    Column              Month[2]                     Feburary

    -------

    Column               Month[12]                  December

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Store Months of the year in a variable

    Do i need to put the whole array of the month under  Customer Item Ledger Entry.

    or just the variable of Month?

  • Binesh Profile Picture
    Binesh 7,885 on at
    RE: Store Months of the year in a variable

    Under Customer Item Ledger Entery.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Store Months of the year in a variable

    Hi Binesh,

    This is the Report Design

    8551.2.png

    and this is the layout

    8551.2.png

  • Suggested answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: Store Months of the year in a variable

    Hello,

    After ItemNo. create all. for better result plz add screenshot of Report Design & RDLC both, so we can look.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Store Months of the year in a variable

    Hi Binesh,

    where do i need to put the Dataset to call the values in my layout

  • Verified answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: Store Months of the year in a variable

    Hello,

    Just simply create a YearVar as a Option dataType and & Month Variable Text Datatype with dimension 12 and write the code for updating the column.

    For more details see the below screenshot.

    2018_2D00_02_2D00_19_5F00_12_2D00_08_2D00_57.png

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans