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 :
Microsoft Dynamics AX (Archived)

Open Document Handling for Product in Production Order listpage

(0) ShareShare
ReportReport
Posted on by

Hi all,

First of all I would like to tell that I have done much research on this but didn't help out. 

https://community.dynamics.com/ax/f/33/t/182237 was good, but indeed this is opening Document handling form but not showing the attachments.

https://groups.google.com/forum/#!topic/microsoft.public.axapta.programming/uJAM1-KEDKA - (Please refer to the last answer) - I have also tried something with written "docuCursor()" method but the thing is, this process requires adding Datasource in form but this Product Order form uses Query as it's data source and ListPageInteractionClass as a class, hence this method is also of no use to me, maybe some additions to this can be helpful but I do not have any clue on how to do that. 

Problem: For each Production order there's a product/item, my client wants to attach some documents on Product/Item (PIM-> Released Products) and he wishes to see all those documents in all those Production orders where that product is being used.  

Till now I have tried to use MenuItemButton for DocuView and Command Button with overridden clicked methods that go like this.

void clicked()
{
InventTable inventTable;
DocuRef docuRef;

super();
select firstOnly inventTable where inventTable.ItemId == ProdTable.ItemId;
select firstOnly docuRef where DocuRef.RefTableId == inventTable.TableId
&& DocuRef.RefRecId == inventTable.RecId && docuRef.TypeId == "File";
DocuRef::openDocHandling(docuRef, element);

}

It's been 2 days and I have to submit this very soon. I hope I was been very clear about what I want, if any further explanations are required then please do let me know.

Thanks a ton in advance. 

*This post is locked for comments

I have the same question (0)

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
Basit Profile Picture

Basit 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans