Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

add edit method to a default form data source

(0) ShareShare
ReportReport
Posted on by 70

Hi,

I am facing a problem while adding a edit method in form data source .

it returns false while i edit a method from form.

1663.Capture.PNG

can any one help me out.

*This post is locked for comments

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at
    RE: add edit method to a default form data source

    Check this link

    dynamics-ax.blogspot.ae/.../creating-and-using-edit-method-on.html

  • Suggested answer
    Agha SirajulDola Profile Picture
    555 on at
    RE: add edit method to a default form data source

    Muneeb -

    U have coded as  'Display Method', be sure about ur requirement. for reference of Edit and Display methods review the following link

    http://aslam111.blogspot.com/2014/01/display-edit-methods-in-ax-2012.html

    and see the parenthesis order too 

  • Muneeb Umer Profile Picture
    70 on at
    RE: add edit method to a default form data source

    I didn't use the table extension or form extension.

    i use the default form or table in my package.

  • Muneeb Umer Profile Picture
    70 on at
    RE: add edit method to a default form data source

    public  edit qty   qtylb( boolean     _set,

                                          qty           _valuelb)

       {

           qty salesQty ;

           qty _QtyBatch;

           bomunitid  fromunit;

               salesQty = UnitOfMeasureConverter::convert(this.qtysched,

               UnitOfMeasure::unitOfMeasureIdBySymbol(fromunit),

               UnitOfMeasure::unitOfMeasureIdBySymbol("lb"),

               NoYes::Yes,

               InventTable::itemProduct(this.itemid));

          }

           return salesQty;

  • Suggested answer
    Agha SirajulDola Profile Picture
    555 on at
    RE: add edit method to a default form data source

    Muneeb -

    Parameters definition is ok, more likely  u are messing in logic.

    if u could post rest of method

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans