Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

How I link data to show in another form

Posted on by 253
Hi everyone.
 
Can someone guide me. on this sceanario.
1. I Create a new field in Products master and show in my form
//
2. I would like this information to show in my product Variants form too. then I 
2.1 Open This form in my Visual Studio
2.2 Add /EcoResProduct/ in to Datasource (Table to store my field)
2.3 Set a property to link between /EcoResDistinctProductVariant/ and /EcoResProduct/
 
//
 
3. The output not meet my requirement????
//
 
4. I check a table /EcoResProduct/ but It's don't have a relation so I create a relation and I got error like this.
//
 
Please advise.
 
Thanakorn
  • Verified answer
    Chomchanok Profile Picture
    Chomchanok 253 on at
    How I link data to show in another form
    Dear Mohamed Amine MAHMOUDI and all,
     
    Now I got a solution already.
     
    the step the we do after we have a field in master table "EcoResProduct" and I want to show in  form "EcoResProductVariant"
    First go to destination form and "Create Code extension"
     
    After Create Code extension we need to investigate about the relation of data then drill down until we got a source of data then return it
     
    on this part er create class "displayHSCODE"
     
     
    Finally on the code that I add new field and mapping souce to "Code extension" that we develop.
     
     
    then see output are meet my requirements
     
    thank you
    thanakorn
     
  • Chomchanok Profile Picture
    Chomchanok 253 on at
    How I link data to show in another form
    Dear Mohamed Amine MAHMOUDI,
     
    Thank you for your suggestion. But When I try to follow up I don't know why I can't create a class in this table, and I so shock that this table are really complicate for me.
     
    Do you have a way to work more eaiser?
     
     
     
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 9,531 Super User 2024 Season 2 on at
    How I link data to show in another form
    Hi @Chomchanok
     
    I guess you can use a display method to show your new field in the form.
     
     
    Best regards,
    Mohamed Amine MAHMOUDI

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans