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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Date query Range for "" From Date and To date "" separately

(0) ShareShare
ReportReport
Posted on by 2

I have a table Distributor worker target. with Two fields From Date and Two date (Lets take e.g. from date is 3/1/2023 and to date is 4/30/2023) now I have created a dialog form having from date and to date to select and some functionality to get data from table for that selected date range. How I can I achieve this using two different queries

I have the same question (0)
  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi Sachin, you question is not clear, you need From Date and To Date parameters in a Dialog. But what's the functionality that you are trying to achieve, do you want to display those records in a form or update records. Please provide more details.

  • Sachin Mittal Profile Picture
    2 on at

    its a dialog form for excel report data export i want to get data from table , using from date and to date range on dialog  

  • Suggested answer
    Komi Siabi Profile Picture
    13,190 Most Valuable Professional on at

    Hello Sachin ,

    You can get the value from your dialogField then use it to select record from your table.

     boolean getFromDialog()
        {
            fromDate = dialogfromDate.value();
            toDate   = dialogfromDate.value();
            return super();
        }

  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    If the sole purpose is to export the data to excel based on date range then you can use SSRS report. We have similar requirement where we need to export lot of records based on date range and other filters and created a report instead of form. However, if user need to edit data before exporting then better to use forms. Happy to help you if need any input.

    It won't be two different queries, it will be one query with two parameters.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Please check this article. You can leverage it to export data to excel based on FromDate and ToDate in Dialog.

    kdynamics.blogspot.com/.../export-data-to-excel-ax-2009-ax-2012.html

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 545 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 408

#3
Adis Profile Picture

Adis 267 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans