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)

Give some examples of Fieldlist in X++ code?

(0) ShareShare
ReportReport
Posted on by

Give some examples of Fieldlist in X++ code?

static void TestNoFetch(Args _args)
{
    CustTable       custTable;
    
    select firstOnly noFetch AccountNum from custTable;
    
    info(custTable.AccountNum); // no value fetched yet
    next custTable;             // move the cursor
    info(custTable.AccountNum); // value
}

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    The above code was posted by me while trying to explain what NoFetch is for another community member.

    Please explain what do you mean by field list.

    If you would like to know what fields are available for a specific table, you can check that in Data dictionary > Tables > TableName > Fields.

    Or alternatively you could use reflection with the DictTable class, or using the TreeNode. You could find more information about those by doing some google search.

  • André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at

    Hi Kavitha,

    What is your real question here?

  • Community Member Profile Picture
    on at

    Give some examples of Fieldlist in select statement of X++ code?

  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    Repeating the same "give some examples..." isn't an explanation. If the question isn't worth a minute if your time, why should others spend their time?

    Unless you explain your problem to us, just look into documentation (Select Statement Syntax) and notice that you have the whole AX application full of select statements that you can use as examples.

  • André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at

    The reason why we would like to know more about your question is that you provided a code sample. Is this not working or why is it mentioned?

  • Community Member Profile Picture
    on at

    Hi,

    Thanks for your kind reply in briefing the question that i posted to the forum.

    Can u provide the examples of fieldlist in select statement in x++ code is required for better understanding?

    I have gone through select statement syntax article in msdn website.

    https://msdn.microsoft.com/en-us/library/aa656402.aspx

  • Vilmos Kintera Profile Picture
    46,149 on at

    I am afraid you still have not answered any of our questions.

    What do you mean by field list, and why have you pasted in the code above?

  • Community Member Profile Picture
    on at

    I have asked about the fieldlist in select statement in x++?

  • Community Member Profile Picture
    on at

    Repeating the same "give some examples..." isn't an explanation. If the question isn't worth a minute if your time, why should others spend their time?

    Your reply is hurting..

    My Question is:Give a brief about the fieldlist in select statement syntax in x++ code?

    I have already read the select statement syntax article in msdn.

    I required that exaplanation needs more briefing for my development.

    Kindly don't repeat the same.I am not wasting any person time.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at

    Hi Kavitha,

    The fact you provided a code sample made the question unclear. Was it about how and when to use a field list or did you have some problems with the code sample.

    A field list is used to restrict the number of fields that will be retrieved from the database. This will be better for performance as less information will be retrieved which is quicker.

    As example you can use:

    while select Field1, Field2, Field18 from 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

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
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans