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)

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

I have the same question (0)
  • Martin Dráb Profile Picture
    237,878 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

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans