web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How do we Increment a number sequence for a field in RDP SSRS Report for record selected in form?

(0) ShareShare
ReportReport
Posted on by 5

For 

General Ledger > Journal > General Journal form

when i select a record and click on a button in the form, a report is created, a number sequence should be created in the report. 

So everytime i click on a record (single record can be selected at a time) , a report will be created and then the number sequence (for the field invoice number )will increment and a new one will be seen in the report .

eg:

record: 0001 when selected , then the report will contain a field with invoice number = Inv0001

when record :0006 is selected , then report will contain a field with invoice number = Inv0002

when record :0001 is selected again , then report will contain a field with invoice number = Inv0003

   

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    This doesn't seem like a normal use case for "invoice number". But I assume you already discussed the functional requirement with financial experts of your company. If not, please do so.

    In general you can solve this requirement by developing a new number sequence, setting it up in your module's parameters, and then asking for a new number from this number sequence in the generation of your report. Assuming it's a temp table based report, you need to store the number in the temp table.

    This blog explains how to do it: daxbeginners.wordpress.com/.../

  • PrachiGupta97 Profile Picture
    154 on at

    How do we ask for a new number from this number sequence in the generation of your report? Could you give me the code and where do we write it?

  • Suggested answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    The code is in the blog that I shared. It must be called during the execution of your report, during population of your temp table. If you don't have a temp table, I believe you can develop a display method in the table that the report is based on, and put the logic there.

    You can google for how to use display methods in SSRS reports. Then apply the knowledge about number sequences (from the blog post) and you're good to go.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 689

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 606 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 356

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans