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

adding range on from customer to customer number

(0) ShareShare
ReportReport
Posted on by 3,110

fromcustomer.png

Hi Experts,

I want to add range on from customer To customer parameter  how can i please help?? This is report parameters as shown in the above image.

Best Regards,

Shabir Ahmad

I have the same question (0)
  • Blue Wang Profile Picture
    on at

    Hi Shabir,

    Based on your last thread community.dynamics.com/.../1107863

    You defined 5 parameters, so FormCustomer is FromDate?Please explain in details.

    So you want to ask how to implement the date range?

    Your DP class has been added SRSReportQueryAttribute(queryStr(JDCustomerInvoice)) , so what about the JDCustomerInvoice query settings?

  • Shabir Ahmad Profile Picture
    3,110 on at

    Hi Blue Wang

    Thanks for referencing my previous link as below

    community.dynamics.com/.../1107863

    We have made 5 fields on custtable and that fields are string data type now i want to show thems as drop down parameters, for from customer and To customer should work"From date to date". Further city Region status should work simple drop down as user click on this it will be control from parameters.

    The last thing i aready developed the report but only range issue. If you want more info i am here.

    Best regards,

    Shabir

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hello Shabir,

    What do you mean exactly? Write some code that fills the from and to customer fields or what is it that you wan to do exactly?

    Would be great if you could elaborate.

    Many thanks,

    Ludwig

  • Shabir Ahmad Profile Picture
    3,110 on at

    Hello Dr. Ludwig Reinhard,

    Thanks for your reply, I want if there are total let say 1000 customer in the system if user select from customer account (1)   to customer account (3) it will show only these 3 customer such as from date and to date perameters.

    Note the parameters which i want to add range are custom fields i developed it on custtable. If further info need tell me.

    Best Regards,

    Shabir Ahmad

  • Community Member Profile Picture
    on at

    Hi Shabir,

    You don't need two parameters as from and to, just one is ok. User can type in "Cust001..Cust010" ,like this.

  • Shabir Ahmad Profile Picture
    3,110 on at

    Hi Leo Wang,

    You are right did it as you mention making query range but they want contract bas range as shown above in the image.

    Best Regards,

    Shabir Ahmad

  • Suggested answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    I think the users should simply use the standard query range dialog. By learning to use the standard dialog, they are empowered in a way that can never be matched by manually adding fields in the report dialog. What you are now developing is less powerful and more expensive than the standard dialog, so please try to convince your customer to use the standard feature instead. The upside is also that once they learn it, they can use it on any report and batch dialogs throughout the system, and they don't need to purchase expensive developer additions to be able to specify filter values. And you can focus on tasks that add more value to the customer. Everybody wins.

    Anyway, if your user provides Cust001 in the first field and Cust002 in the second field, you simply need to combine them into one string in your code, and put two dots in between(result will be "Cust001..Cust002") and apply that as a query range in x++.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans