Dexterity was designed as multiplatform technology (primarily Btrieve, Ctree, SQL Server, potentially Oracle). Dexterity data retrieving mechanism is based on Range start, Range End, Get First and Get Next clauses. It is in fact similar, however a little bit slower to cursors in Transact SQL. Long ranges in Dexterity are good candidates for replacement by SQL stored procedures with update clause.
For example, consider to replace following Dexterity code:
Range clear SOP_HDR_WORK.
Clear 'SOP Type' of table SOP_HDR_WORK.
Clear 'SOP Number' of table SOP_HDR_WORK.
Range start table SOP_HDR_WORK.
Get first table SOP_HDR_WORK.
While errEOF do
If 'Salesperson ID' of table SOP_HDR_WORK = "ERIC" then
Edit table SOP_HDR_WORK.
Set 'Salesperson ID' of table SOP_HDR_WORK to "BILL".
Save table SOP_HDR_WORK.
End if.
Get next table SOP_HDR_WORK.
End while.
With the following SQL code
Update SOP10100 set SLPRSNID="BILL" where SLPRSNID="ERIC"
Bringing new data into a table in Dexterity is based on change/edit table clauses, in SQL they are equivalent (by performance) to inserting one record at the time.
When having long cycle of change/edit table in Dexterity, consider replacement by SQL stored procedure with Insert Into clause.
The easy way to call Crystal Report from your VBA code from your modified form:
Const RPT = "D:ClientsTheClientInvoice Status.rpt"
Public crwApplication As CRPEAuto.Application
Public crwReport As CRPEAuto.Report
Private Sub Print_BeforeUserChanged(KeepFocus As Boolean, CancelLogic As Boolean)
If SalesTransactionInquiryZoo.Type = "Invoice" Then
If crwApplication Is Nothing Then
Set crwApplication = CreateObject("Crystal.CRPE.Application")
End If
Set crwReport = crwApplication.OpenReport(RPT)
crwReport.ParameterFields(1).SetCurrentValue (DocumentNo)
crwReport.Preview
End If
3. Use Direct .Net Web Publishing from Great Plains Database
The easiest and safest way is to use eConnect - SDK with VB samples, created for eCommerce programmers and web designers to call the functionality in Microsoft Great Plains. If your company can not afford eConnect - create your own set of stored procedures to address Great Plains database and go ahead with Visual Studio.Net to do the web publishing.
Happy upgrading and customizing! if you want us to do the job - give us a call 1-866-528-0577! help@albaspectrum.com
Andrew Karasev is Chief Technology Officer in Alba Spectrum Technologies ? USA nationwide Microsoft CRM, Microsoft Great Plains customization company, based in Chicago, California, Texas, New York, Georgia, Arizona, Minnesota, Washington, Colorado and Florida and having locations in multiple states and internationally (help@albaspectrum.com), he is Dexterity, SQL, C#.Net, Crystal Reports and Microsoft CRM SDK developer.
whole house cleaning Deerfield ..This article illustrates the best practices to improve the performance... Read More
Internet worms. Is your PC infected?If your computer has become... Read More
I've been active in the Cisco Certification track for four... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
#5 All your hardware components like Printers, PCs etc come... Read More
I have recently created my first Php program. I wanted... Read More
If you have Microsoft Great Plains as main accounting and... Read More
Well, even if the combination might look very unusual, we... Read More
While several preventive maintenance software manufacturers offer free trials for... Read More
What is Groupware?Have you ever had to manage document collaboration... Read More
In this article you will find some background information about... Read More
Background: For many organizations like ours, the interim target of... Read More
Enabling Chinese input is quick and easy, there are only... Read More
The world of small business accounting software can be a... Read More
Although statistics often is blamed for various deadly sins --... Read More
Ad-Aware and Spybot are probably the two most well known... Read More
A wiki is an editable text-based website. But you don't... Read More
Around the same time Microsoft made its move with .Net... Read More
Three highly respected names in Human Resources have joined forces... Read More
A UNIX Shell is in simplest terms, a command line... Read More
Microsoft Great Plains as ERP and Microsoft CRM as... Read More
FTP stands for "file transfer protocol". FTP is basically a... Read More
The cornerstone of successful automated office systems is the ability... Read More
Spyware and malware are large problems for Internet users today... Read More
In this small article we will show you the possible... Read More
home cleaning services Des Plaines ..Microsoft CRM is new player on the CRM software... Read More
Adobe Photoshop is one of the world's leading graphics editing... Read More
It's all about turn times in the eMedia industry! The... Read More
This article is the first of a series of articles... Read More
Bad News - the Threat is Bigger than it SeemedHow... Read More
It is possible that if one avoided all sources of... Read More
The first thing that you will notice about Linux Red... Read More
Each Industry and market niche has business specific and unique... Read More
Microsoft Great Plains is main Microsoft Business Solutions accounting package... Read More
What is Colossus?Colossus is software licensed to about twenty-five insurance... Read More
We live in a post-industrial age where information is the... Read More
Microsoft Retail Management System serves retail single store as well... Read More
Task Manager is a Windows system utility that displays thetasks... Read More
Make-or-Break Factors in Success and ProfitabilityFor quick printers, estimating can... Read More
Microsoft Business Solutions CRM is present several years on the... Read More
#5 All your hardware components like Printers, PCs etc come... Read More
Buying accounting software is a major investment. It's an important... Read More
Microsoft Great Plains is one of three Microsoft Business Solutions... Read More
Microsoft CRM is CRM answer from Microsoft Business Solutions. If... Read More
In part III of this ISDN primer, we learned that... Read More
TikiWiki is open source software - it is written in... Read More
When Windows fails to boot it is normally caused by... Read More
This is the tutorial where we really get into programming.... Read More
Bill of Lading is required report for Logistics and Freight... Read More
Microsoft Business Solutions CRM and IBM Lotus Notes Domino, being... Read More
Software |