Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

query range start with 21000

(0) ShareShare
ReportReport
Posted on by 106

Hello,

how can i filter form data source all customer start with 21000.

how can i write expression on query range custAccountNum start with 2100 in AOT query object.

BR

Ahmed

 

  • Martin Dráb Profile Picture
    231,983 Most Valuable Professional on at
    RE: query range start with 21000

    Please try "21000*".

    By the, way, the query you use in the first screenshot isn't what you asked for. You wanted values starting with 21000, but your filter will return values containing 21000.

  • MAKDAX2012_Ahmed Profile Picture
    106 on at
    RE: query range start with 21000

    i want result like this

    pastedimage1610089713974v1.png

     Bur when i use AOT query range 2100*  with display menu i get this type of result.

    the result  is 

    pastedimage1610089985790v2.png

    and also get error

    Error executing code: FormRun object does not have method 'okPressed'.

    Stack trace

    (C)\Classes\FormRun\okPressed
    (C)\Classes\QueryRun\prompt
    (C)\Classes\QueryRun\run

  • MAKDAX2012_Ahmed Profile Picture
    106 on at
    RE: query range start with 21000

    i am using query in Display menu to open filtered form like past worker in HRM module 

    pastedimage1610088753267v1.png

  • Martin Dráb Profile Picture
    231,983 Most Valuable Professional on at
    RE: query range start with 21000

    You want 2100 followed by any number of characters (for which you can use * wildcard), therefore the value should be 2100* (not "2100*"?).

  • MAKDAX2012_Ahmed Profile Picture
    106 on at
    RE: query range start with 21000

    i have tried but i did not work

    pastedimage1610088437730v1.png

  • MAKDAX2012_Ahmed Profile Picture
    106 on at
    RE: query range start with 21000

    Thanks but i want to use query expression in AOT query range

    pastedimage1610088380287v1.png

  • Blue Wang Profile Picture
    on at
    RE: query range start with 21000

    Hi Ahmed,

    If you use query range expression or select statement ,please check this blog:

    community.dynamics.com/.../using-not-like-in-x-select-statements-and-query-ranges

    Another way is to use SysQuery::valueLike()

    01641.PNG

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: query range start with 21000

    Hi MAKDAX2012_Ahmed,

    For all customers starting with "2100', have you tried the expression "2100*"?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,983 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans