Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Help with Dexterity 10.0 - output text file

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I would really appreciate any help on this.

I need to generate a text file (position) from within Dexterity. I read that there is a "savefile()" function, but you have to write a report and then run the report with the export option.

But I need to produce a text file, with three distinct areas: a header, then detail lines, then a trailer. For example:

HD20100315AARON015

LDINV0003400456.70

LDINV0003503456.86

LDINV0003600788.09

TR00003

 

There is a header section (HD) with a date and the customer number.

Then detail lines, show each invoice number with document total

And then a trailer line to show there are 3 detail lines.

 

How would I implement this using Dexterity?

Thank you in advance!

*This post is locked for comments

  • GPDev Profile Picture
    GPDev 1,755 on at
    Re: Help with Dexterity 10.0 - output text file

    Why do you need to use Dexterity to create this output file?

    Why not create a sql view or stored procedure to query this GP data and then save the results to a text file with SSIS or sqlcmd? You could create a sql view for each part of the file (a separate sql view for the header, detail, and footer) and then combined them and save the results to a file.

    With the sqlcmd utility you can specifiy the -o command-line option to write the query results to an output file. A problem with using sqlcmd is you need to install sqlcmd.exe on the machine(s) generating the file.

    If you are interested in using SSIS to generate a text file w/ headers and footers check out this article:

    http://agilebi.com/cs/blogs/jwelch/archive/2008/02/08/adding-headers-and-footers-to-flat-files.aspx 

    If you need to generate this text file by performing some action in GP then try using VBA to execute the sql rather than Dexterity.

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans