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 :
Microsoft Dynamics AX (Archived)

How can i track the currency filter in the initVendTransQuery() ?

(1) ShareShare
ReportReport
Posted on by 110

Dear 

I am trying to customize the vendor statement of account (class VendAccountStatementIntDP) and i need to track the currency filter value indicated below. I realized that this value isn't passed by a parameter but by a query criteria found in the (method Query initVendTransQuery()) in the VendAccountStatementIntDP class.

query-parameter.png

appreciate your help

thanks

*This post is locked for comments

I have the same question (0)
  • Rohin Profile Picture
    4,624 on at

    Hi,

    what exactly you want to do with currency filter ?? can you please provide more details ?

  • Rabih Khoury Profile Picture
    110 on at

    I want to show also the Unposted transactions in the vendor statement of account, I've succeeded so far but

    I need to use/get this value ("USD" in this example) to filter transactions by currency.

    Thank you.

  • Suggested answer
    Hamza Bin Mushtaq Profile Picture
    160 on at

    Hi White,

    The below query is used by this report.

    sol1.JPG

    And, the query already filters the data based on the selected Currency filter. 

    Can you provide a little bit more details that how are you customizing this report?

    Regards,

    Hamza

  • Rabih Khoury Profile Picture
    110 on at

    Hi Hamza,

    I need to put the "USD" currency filter value shown in red in the first screenshot instead of the yellow highlighted value in the screenshot below:

    http://imgur.com/a/6AmfM

    Thanks.

  • Verified answer
    Hamza Bin Mushtaq Profile Picture
    160 on at

    Hi White,

    You can use the default query to get the value of the Currency Range by this code.

    {

    Query q;
    CurrencyCode currency;


    q = this.parmQuery();

    currency = q.dataSourceTable(tableNum(VendTable)).findRange(fieldNum(VendTable,Currency)).value();

    }

    Regards,
    Hamza

  • Rabih Khoury Profile Picture
    110 on at

    Thanks a lot! That's what I needed.

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans