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 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,206 Super User 2026 Season 1 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

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

#1
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 2

#1
sliderxb Profile Picture

sliderxb 2

#1
broberts Profile Picture

broberts 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans