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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

form Adaptor extension

(2) ShareShare
ReportReport
Posted on by 54
Hi, I have to customize the standard form 'Ledger allocation request' and add new fields in the dialog. When I check the dialog classes, it uses 'LedgerAllocationRequestFormAdaptor'  class to design the dialog, but extending this class does not support adding extra methods . Is that the right way, or am I missing anything here?
Categories:
I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at
    I do not see it using the Form Adaptor class. It seems to use a normal X++ class
  • SC-25021032-0 Profile Picture
    54 on at
    This is the class ,
     
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at
    could you not try creating extension of class LedgerAllocationRequest (not the LedgerAllocationRequestFormAdaptor)
  • Suggested answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at
    Ignore the adaptor. It's used for working with forms in automated tests, which has nothing to do with your scenario. You're wrong in thinking that it's used to construct dialogs.
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,428 Super User 2025 Season 2 on at
     
    The adoptor form class is used for automated test.
    I don't know why you'll need to extend it !
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • SC-25021032-0 Profile Picture
    54 on at
    I just want to add some more fields and a lookup method in the parameters dialog. However, after adding the lookup method and control in the LedgerAllocationRequest extension class, the parameter dialog is not showing the lookup for the control I created.
     
    So, I thought of checking other missing classes and found the FormAdaptor class. Anyway, I will try to fix the lookup issue.
     
    Thank you!
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at
    Please show us your code if you need help with the extension.
  • Verified answer
    SC-25021032-0 Profile Picture
    54 on at
    I have fixed it after creating extension the lookup method . Previously I replicated like standard methods in form control level lookup and that was not working then extension of Onlookp method on control level was working .
     
    Thank you alll.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans