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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Relation between table

(0) ShareShare
ReportReport
Posted on by 3,805

In form ProjProjectListPage i can see button Attachments in tab Project.

So, if i click button Attachment and select one file until finished, and then i see in table DocuRef, i can see relation and get link between table DocuRef and table ProjTable.

Now, i want to add button Attachment in form Hierarchy with table smmActivities.

So, if i click button Attachment in form Hierarchy i can get relation and get link between table DocuRef and table smmActivities.

What can i do?

What methods i use?

Thanks all..

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Amir Nazim Profile Picture
    5,994 on at

    you can add similar relation to this with DocuRef table using smmActivities table. check the DocuRef table for more examples.

    DocuRef.RefCompanyId == PurchTable.dataAreaId

    DocuRef.RefTableId == PurchTable.TableId

    DocuRef.RefRecId == PurchTable.RecId

  • Jonathan  Halland Profile Picture
    11,310 on at

    Hi. I don't believe adding the relationship is absolutely necessary. Just add a command button to your form with the command property of the button set to "Document Handling".

  • fajar Profile Picture
    3,805 on at

    Thanks all.. I will explain.

    First time, i add relation in table DocuRef.

    DocuRef.RefCompanyId == smmActivities.dataAreaId

    DocuRef.RefRecId == smmActivities.RecId

    DocuRef.RefTableId == smmActivities.TableId

    And then in modul Project management and accounting, select one Project --> Tab Plan --> Work breakdown structure.

    0005.2.jpg

    I have one Activities, A14-01275

    i click Activities Sample and then click button Attachment.

    8407.3.jpg

    Click New and select file, i select file "Sample Doc 1", finished.

    And then, i try to open table DocuRef and table smmActivities.

    In table DocuRef with Name "Sample Doc 1" and RefRecId "5637149077"

    In table smmActivities with Activity "A14-01275" and RecId "5637155826"

    Different between DocuRef.RefRecId == smmActivities.RecId,,, why ?

    What wrong? or what can i do?

    Please help me..

    Thanks..

  • Suggested answer
    Amir Nazim Profile Picture
    5,994 on at

    As the grid datasource is bound with Hierarchy table, so It will be saving the attachement with reference of Hierarchy table instead of smmActivities table.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans