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 :
Microsoft Dynamics GP (Archived)

GP 2018 using C# to parse data grid using temporary tables

(0) ShareShare
ReportReport
Posted on by 75,852 Moderator

I am trying to streamline some C# code. I have code for cash management that works fine allowing the code to parse the grid on either the bank transaction screen or the bank inquiry screen.

                   CmDistributionTempTable CMDistTable;

 

                   if (WhichWindowOpen == "CmTransactionEntryForm")

                  {

                       CMDistTable = Dynamics.Forms.CmTransactionEntry.Tables.CmDistributionTemp; /* This points to the form table buffer for Cash Transaction Entry */

                   }

                   else

                   {

                        CMDistTable = Dynamics.Forms.CmTransactionZoom.Tables.CmDistributionTemp;   /* This points to the form table buffer for Cash Transaction Zoom(Inquiry) */

                   }

 

However, if I attempt to do the same thing with the GL transaction screen and the journal entry inquiry screen it does not work.

 

         GlDistributionTempTable GLDistTable;

 

         if (WhichWindowOpen == "GlTransactionEntryForm")

         {

           GLDistTable = Dynamics.Forms.GlTransactionEntry.Tables.GlTrxLineWork; /* This points to the form table buffer for Transaction Entry */

         }

         else

         {

        GLDistTable = Dynamics.Forms.GlJournalEntryInquiry.Tables.GlTrxLineWork;   /* This points to the form table buffer for Transaction Zoom(Inquiry) */

         }

 

I get a message about not being able to implicitly convert to the GlDistributionTempTable table. I think it has to do with the fact that there is no GLDistribution temp table. I have searched for other temp tables but the only one that exists does not work either.  Is there a way to get this technique to work?

*This post is locked for comments

I have the same question (0)

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Anthony Beatty Profile Picture

Anthony Beatty 2

#2
CP04-islander Profile Picture

CP04-islander 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans