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

Altering the source expression on a request page field

(0) ShareShare
ReportReport
Posted on by

Hey all, 

I'm working on a custom report has a request page. 

On the request page I enter Order No. the next field below it on the request page is Contact No.

When I enter the Order No. the contact number defaults. How can I control that default?

For example: Order No. 3 has the location-contact: Rob contact ID 01 and the owner-contact: Zach contact ID 02.

I run the report and enter in order 3 on the request page, the field below it auto populates Zach contact ID 02 the owner-contact. My goal is to enter the order number on the first field and have the location-contact Rob show up. 

The report is built on a single dataItem Contact. In order to distinguish owner-contact from location-contact I'll need to use the Customer table. 

Looking at the properties of the request page field that i'd like to auto populate:

SourceExpre = VAR_ContactFilter
TableRelation: Contact.No.

Could I join Contact (the reports dataitem) to Customer on the tableRelation property of a Request Page?

What are other options for automating a fields value?

I'd be happy to explain further. Thanks so much.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mohana Yadav Profile Picture
    61,005 Super User 2025 Season 2 on at

    you need to create a variable in report and calculate the contact from order and assign the value to variable.

    set variable in contact sourceexpression instead of contact.no

  • Community Member Profile Picture
    on at

    Ah , thank you.

    To be clear, I need to create a Global Variable something like VAR_DesiredContact and define that variable within the C/AL code assigning it the contact I want.

    Then I set it as the sourceExpression variable for that field on the request page?

    I'm looking for an existing variable that behaves like that to use as a template now.

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 > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans