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, ...
Suggested Answer

Disable create line in purchase order lines x++

(0) ShareShare
ReportReport
Posted on by 163

 want to disable create line automatic in purchase order lines I tried to make insert if empty property to No but it was already No . 

When clicking on new on purchase order form or purchase order for service and create new po it created lines in purchase order lines automatic with data in (create purchase order )form  I want to disable it .

which method in (purchasecreateorder )form make this ? Or How can I do this ?

Screenshot-_2800_250_2900_.png

Screenshot-_2800_251_2900_.png

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi,

    I think record is created in the PurchLine table. Just open the PurchLine in table browser and see if there is any record exists agains the header.

    Thanks,

    Girish S.

  • GirishS Profile Picture
    27,827 Moderator on at

    Also, if the record is created in the PurchLine Table. You must delete the record. So try to delete the record while creating of purchase order. Override clicked method of the creation form ok button and add code to delete a line record based on the header record.

    Thanks,

    Girish S.

  • Menna Allah Ahmed Profile Picture
    163 on at

    No record is not created , values set by initValue method , what should I do to make this grid empty ?

  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi Menna, PurchLine record will not be inserted but will be initialized so you will see an empty line with Line number. I believe the below code in linkActive method in PurchLine datasource of PurchTable form is triggering the code to create empty line. I debugged the code and bypass this line of code and empty line was not created.

    pastedimage1684407712705v1.png

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 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans