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

Announcements

News and Announcements icon
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

I have the same question (0)
  • Suggested answer
    Agha SirajulDola Profile Picture
    555 on at

    Muneeb -

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

    if u could post rest of method

  • Muneeb Umer Profile Picture
    70 on at

    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;

  • Muneeb Umer Profile Picture
    70 on at

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

    i use the default form or table in my package.

  • Suggested answer
    Agha SirajulDola Profile Picture
    555 on at

    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 

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    Check this link

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans