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 :
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

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans