web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Passing a date from a form to a form part where the datasets are not the same.

(0) ShareShare
ReportReport
Posted on by

I have a form where the user enters a  date into a variable _reporthrudate .  This form has a form part that uses a different dataset but the dataset needs to calculate based on the _reportthru date that the user entered in the main form.   How do I pass the date entered by the user in the main form to the form part form so that my calculations as for the same periods.   The forms do not use the same dataset.

Thanks .

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    238,601 Most Valuable Professional on at

    You have many ways. For example, if the value is in a datasource, you can pass to the other form and read it from there (what kind of datasource is used by the target for is irrelevant). If you have it in a variable only, you can save it to an object and pass it to the other form through Args.parmObject(). Or the target form can get a reference to the caller form (element.args().caller()) and call its method to get the value. And so on.

  • Verified answer
    cauditor Profile Picture
    on at

    Thank you for the response.  We got it working.

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Volodya Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Volodya 2

#2
tgudwanski Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. tgudwanski 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans