Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP forum
Suggested answer

Updating BatchID on payables batch entry screen using code

Posted on by 75,730

I am creating a C# application that will build a batch of manual checks. These batches will be prefixed with 'APMC-' and then today's date.

I have added a menu option so I only want this change to happen when this menu option is chosen.

When I try to update PmBatchEntryWindow.BatchID on the Payables Batch Entry Window it tells me field is read-only.

Is there any way around this?

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Updating BatchID on payables batch entry screen using code

    David, if only there were more hours in a day perhaps I could take a week off for training. Thanks for the links.

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,835 Moderator on at
    RE: Updating BatchID on payables batch entry screen using code

    Hi Richard

    You missed the training at this year's Summit.

    You can try Self Study, but this is not as good as classroom training. Experience has also shown that remote training via screen sharing is also not as good as classroom training.

    The materials are available from 

    https://winthropdc.wordpress.com/training/

    This article will also help 

    https://winthropdc.wordpress.com/2008/08/10/dex-how-to-get-started-with-dexterity/

    More links 

    https://winthropdc.wordpress.com/dexterity/

    Regards

    David 

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Updating BatchID on payables batch entry screen using code

    I am open to suggestions in learning Dexterity. Are there any training videos?

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,835 Moderator on at
    RE: Updating BatchID on payables batch entry screen using code

    While the prompt is Batch ID, the actual field is Batch Number.

    Richard, time for you to learn some Dexterity techniques or at least use GP Power Tools to prototype your C# code using the .Net Execute window as this will ensure you get the correct field names. 

    David

  • Suggested answer
    RE: Updating BatchID on payables batch entry screen using code

    I looked but didn't find much as to why the Batch ID field would be showing as read-only, when by default it's an editable field in the window.

    Hopefully others in the Community will have run into something similar that may be able to shed light on what the cause may be....

    Thanks

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,556 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,625 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Product updates

Dynamics 365 release plans