Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / How to pass the value ...
Finance forum
Suggested answer

How to pass the value of a new string control made on EcoResProductCreate form

Posted on by 58
Hi Experts 
 
Can someone help me in the requirement below
 
how to pass the value of a new control made on ecoresprodcutcreate form to ecoresproduct table field in X++
 
I have created a string control on ecoresproductcreate form and i want to pass its value in a string field in ecoresproduct table when a product is created from ecoresproduct create form.
 
Thanks
Piyush Sharma
Categories:
  • Suggested answer
    Martin Dráb Profile Picture
    Martin Dráb 228,317 Most Valuable Professional on at
    How to pass the value of a new string control made on EcoResProductCreate form
    The key piece of the logic is EcoResProductCrossTableManager::insert(). It takes data from a EcoResIProductCrossTableData object and puts it into an EcoResProduct record. The first argument is the EcoResProductCreate form itself, because the form implements EcoResIProductCrossTableData interface.
     
    When you look at EcoResIProductCrossTableData, you'll see a method providing EcoResProductData object. Inside, you'll see objects representing different aspects of a product, e.g. EcoResProductIdentificationData class. You can then extend one of these classes, populate the data in EcoResProductCreate form and utilize them in EcoResProductCrossTableManager class.
     
    (Moved from D365 general forum.)

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,435 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,317 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans