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)

DictTable.formRef versus Table Property FormRef

(0) ShareShare
ReportReport
Posted on by 811

Here is an interesting issue:

In X++ code, I need to know what the value is of the Table Property "FormRef".

So, I use the DictTable class and use the method formRef(). However, this method always returns a value.

If the property on the table was not filled, it will return the name of the Table itself.

How can I obtain the real value of the FormRef table property? (only getting a value if there was one filled on the property)

Thanks in advance for any help,

Sven

*This post is locked for comments

  • Martin Dráb Profile Picture
    240,866 Most Valuable Professional on at
    SysDictTable dictTable = new SysDictTable(tableNum(YourTable));
    #Properties
    ;
    info(dictTable.treeNode().AOTgetProperty(#PropertyFormref));
    
  • Sven Joos Profile Picture
    811 on at

    Hi Martin,

    thanks a lot!

     Kr,

     Sven

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans