Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Modifying a dialog fie...
Finance forum
Unanswered

Modifying a dialog field value at run time

Posted on by
Hi.. this question has been answered before but I get a different error! In my form class I tried to override modified method of dfCustomerId but the second argument gives me error: The 'QuotationTable' argument of the 'methodStr' compile-time function does not specify a known class. I tried to put the name of form class instead and still getting the same error!
The dfCustomerId_modified is public and written under runDialog method directly
 
  • CU16071741-0 Profile Picture
    CU16071741-0 on at
    Modifying a dialog field value at run time
    Thanks for your response Mr. Martin... I'm a little bit confused about a couple of things:
    1- I created a class in the form class but I tried many times to create an instance but it always gives me error.. making the new class public doesn't help either.
    2- The third argument of registerOverrideMethod represents what? it should be overrideObject but which object will be overriden? the dialog instance?
     
     
     
  • Martin Dráb Profile Picture
    Martin Dráb 225,490 Super User on at
    Modifying a dialog field value at run time
    methodStr() checks if such a class and method exist and you indeed don't have the method in a class called QuotationTable. I also don't think that you can define the overriding method in a form data source. Instead, create a class for your method, create an instance in runDialog() and pass the instance as the third parameter of registerOverrideMethod().

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans