Notifications
Announcements
No record found.
I need string functions which can used in X++. Specially I need sub string function, how we can get sub string using SQL query.
*This post is locked for comments
X++ function for substrings is called simply subStr().
Nevertheless database servers don't understand X++, so you can't use X++ function in SQL commands.
Sorry actually I need sql sub string function to use in X++. I have try the following code but its not working.
select subStr(ChequeNum,1,3) from bankChequeTable
group by bankChequeTable.ChequeNum;
info(bankChequeTable.ChequeNum);
X++ queries don't support such a kind of things. Consult the documentation (Select Statement Syntax [AX 2012]) if you don't know what's supported.
To achieve what you need, create a view with a computed column, handle the logic in the application layer or, as the last resort, run a direct SQL query.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2