Skip to main content

Notifications

Supply Chain Management forum
Unanswered

get data from edit method in form extension

Posted on by 2
Hi
 
I created an extension to the PriceDiscAdmSearch Form. It's a checkbox. it is an edit method not bound to a datasource or table so it is a form method.
For the PriceDiscAdmSearch class I created an extension as well and added a parmMethod. This is called from the Formextension closeOK - Method (like the standard is doing it)

the standard field are working fine but the value in the class set by is always false even when I set it to true. 
 
Any ideas where this issue comes from and how to solve it?

 
  • Layan Jwei Profile Picture
    Layan Jwei 7,200 Super User 2024 Season 2 on at
    get data from edit method in form extension
    Can you please share the code with us in order to help you
  • Jesús García Profile Picture
    Jesús García 236 on at
    get data from edit method in form extension
    Hi Cu31101249-0, i would need more information about your problem cause it isnt clear:
    - is the parmMethod you say a new method or are you extending the standard method ?
    - what is this method doing in the code?
    - etc
     
  • Martin Dráb Profile Picture
    Martin Dráb 229,247 Most Valuable Professional on at
    get data from edit method in form extension
    You can't expect us to find a bug in code that we're never seen or where you're checking the value.
     
    Instead, use the the debugger to see where thing go wrong. For example, check if you're correctly passing the value in closeOK(). It'll tell you whether you need to look for a bug in the logic before this assignment, or this part works and you need to look at later stages.
     
     

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,247 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans