web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Is it possible to use LIKE + column value + wildcard in AX Query range?

(0) ShareShare
ReportReport
Posted on by

Hi
I have ax query on ProjTable and I need filter values
where ProjTable.projId == ProjTable.parentId + "zero or more characters"

I tried to put in Query value of query something like this ,but didnt work.
(ProjTable.ProjId LIKE  (ProjTable.parentId + " * ") )

I need to have this done just in AX query (I need query for SSRS report for Portal)

Many thanks for any hint or help

Pavel

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Is it possible to use LIKE + column value + wildcard in AX Query range?

    Hi Pavel,

    Yes it is possible to use like operator in AX queries.

    Please see details on similar thing in this blog:

    basicax.blogspot.com.au/.../using-not-like-in-x-select-statements.html

    Hope this helps.

    Thanks,

    Priyanka Agarwal

  • Verified answer
    Amir Nazim Profile Picture
    5,994 on at
    RE: Is it possible to use LIKE + column value + wildcard in AX Query range?

    Yes it is possible you need to use something like

           SysQuery::findOrCreateRange(ProjTable_ds.query().dataSourceTable(tableNum(projTable)),fieldNum(projTable, projId)).value(queryValue(SysQuery::ValueLikeAfter(ProjTable.parentId)));

    there are two method in SysQuery class "ValueLike", "ValueLikeAfter" that will be of your use.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans