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)

How to stop same values repeating in the Simple List Form

(0) ShareShare
ReportReport
Posted on by 1,909

Dear all,

I have custom Simple List Form with one data source. Now if I run the form some values from the data source is keep repeating. How I can stop the field repeating the same value multiple times.

Regards,

Faqru

*This post is locked for comments

I have the same question (0)
  • Faqruddin Profile Picture
    1,909 on at

    Yes Its single standard table of AX. I need below form to stop repeat a highlighted values and I need it as one time only.

    7802.data.jpg

  • Faqruddin Profile Picture
    1,909 on at

    This data from ProjInvoiceItem table. All my sales order invoices based on project id. I'm trying format like SalesId, ProjectId, InvoiceId, Currency, InvoiceAmount.

  • Faqruddin Profile Picture
    1,909 on at

    Yes its transaction table. How I can group this fields in the form to get the accurate format.

  • Faqruddin Profile Picture
    1,909 on at

    Thanks Crispin John. I preffered query with Group. But once I run the form  no data. Do I need to write any method  ? Please check my screen below.

    forms.jpg

  • Verified answer
    Chaitanya Golla Profile Picture
    17,225 on at

    Hi,

    As the data in the table ProjInvoiceItem has transactions related to Item, data is (I mean salesId and other header related information) is repeated. One way is to use a temporary table, make it as a datasource for the form and in the init method(at datasource level of temporary table) insert the data from ProjInvoiceItem table by making a groupby operation(Here code would have two loops on projInvoiceItem, first loop makes a groupby and second loop is used to get and feed the data). Another approach is to use table ProjInvoiceJour and ProjInvoiceItem tables as datasources with ProjInvoiceJour as parent datasource(with linktype as innerjoin) and get the data  on the grid. I don't have data to test, so please try either of this approaches and let me know if anything is missing.    

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
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans