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

To show total no of header and line attachment on form .

(0) ShareShare
ReportReport
Posted on by 1,836
hi 
in  my custom i am having 3 buttons which create the attachment , two are on the header  and one is on line  when i select header attach ment shows total no of attachment for that header and when i move to line it shows total no of attachment on line , but is it possible if i can show the total no of attachment of line and header both when i select header .   
can anyone one guide me on this , how can i get this done .
 
 
thanks,
Regards,
Dinesh 
I have the same question (0)
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi Dinesh,

    You can display the total number of attachments for both the header and lines when you select the header. To achieve this, you would typically need to customize the form and use X++ code. Here's a general approach on how to get this done:

    1. Customize the Form: You'll need to customize the form where you have the buttons for creating attachments. In your case, this is likely a custom form.

    2. Add a Control: On the header of the form, add a control (e.g., a text box or label) to display the total number of header attachments. On the line section of the form, add a control to display the total number of line attachments.

    3. Write X++ Code: You'll need to write X++ code to calculate and update the total number of attachments for both the header and lines. You can use event handlers to trigger this code when an attachment is created or deleted.

    4. Update the Control: When a new attachment is created or deleted, update the respective control with the updated count for header and line attachments.

    5. Refresh the Form: Make sure to refresh the form or relevant controls to reflect the changes in the attachment count.

    Best regards,
    Kevin

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans