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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

how to show Source Document Lookup using c#

(0) ShareShare
ReportReport
Posted on by 790

How to show the source Document lookup using C#....

In GP 2010 ...Financila - >General - > Source Document Lookup. This is showing defalut value with : GJ. Same thing i have to do using c#.

I used below code....

 Microsoft.Dexterity.Applications.SmartListDictionary.SourceDocumentLookupForm obj = SmartList.Forms.SourceDocumentLookup;

 obj .Open();

i got window without any values in that...I need to show the form with  default value  : GJ.

Let me know how can i get the values ....

*This post is locked for comments

I have the same question (0)
  • MG-16101311-0 Profile Picture
    26,225 on at

               SourceDocumentLookupForm sform = SmartList.Forms.SourceDocumentLookup;

               if (!sform.IsOpen)

               {

                   sform.Open();

               }

               sform.SourceDocumentLookup.SourceDocument.Value = "GL";

               sform.SourceDocumentLookup.SortBy.RunValidate();

    Hope this helps.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans