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

  • Community Member Profile Picture
    on at
    RE: Altering the source expression on a request page field

    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.

  • Verified answer
    Mohana Yadav Profile Picture
    60,226 Super User 2025 Season 1 on at
    RE: Altering the source expression on a request page field

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,336 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,025 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans