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

Announcements

No record found.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 509 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 375

#3
Adis Profile Picture

Adis 268 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans