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.
maide service in Lincolnshire ..The destruction of the Soviet Union about 15 years ago,... Read More
I suggest that you do not spend a lot of... Read More
In this short FAQ style article we would like to... Read More
As seeing large number of implementations ? in our case... Read More
Microsoft Business Solutions Great Plains was designed back in the... Read More
C++ Function templates are those functions which can handle different... Read More
What is Spyware?Spyware monitors your surfing habits and sends the... Read More
One of the things we can be as certain of... Read More
At the end of XX century, in the late 1990th... Read More
The Microsoft system preparation utility for Windows 2000 is a... Read More
Research bears that less than 70 percent of development projects... Read More
Customer Relationship Management (CRM) is a strategy and processes used... Read More
Almost all new and major brand of PCs come with... Read More
With many manufacturing shops heading over seas in favor of... Read More
We would like to give you several situations, when you... Read More
Microsoft Business Solutions Great Plains as new ERP for multinational... Read More
We will base our prognosis on our Microsoft Business Solutions... Read More
Most computer users use spreadsheets software such as Microsoft Excel... Read More
In our case ? we serve Microsoft Business Solutions ERP... Read More
Microsoft CRM is CRM application, maintained and supported by Microsoft... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
What is a Web Database?A web database is a database... Read More
Usually, the easiest way to tell you have spyware is... Read More
Great Plains Fixed Assets Management module is a robust tool... Read More
You turn on your computer, and it doesn't look quite... Read More
cleaning lady near Deerfield ..In the previous ISDN article, we looked at how and... Read More
For a long time now Microsoft's Internet Explorer has ruled... Read More
Make-or-Break Factors in Success and ProfitabilityFor quick printers, estimating can... Read More
The stakes are high when considering security, privacy, and savings,... Read More
In today's business world it's all but impossible to escape... Read More
Former Great Plains Software Dynamics/eEnterprise, and currently Microsoft Business Solutions... Read More
If you have been running Windows XP for a couple... Read More
If you are to buy a HelpDesk & Asset Management... Read More
The purpose of one of our projects was MS Exchange... Read More
Let us give you - developer some hints in the... Read More
Pirated software is on the increase and now accounts for... Read More
Google Inc. has launched a new software package that allows... Read More
First we had the original Google search that evolved into... Read More
When reading an article where some term is used often,... Read More
Although we don't know whether Microsoft ever envisioned such a... Read More
Blue Cross and Blue Shield of Hawaii (HMSA) found itself... Read More
IBM Lotus Domino or Microsoft Exchange?The severe competition continues for... Read More
Microsoft Great Plains is one of three Microsoft Business Solutions... Read More
Microsoft Business Solutions Great Plains has I'd say end user... Read More
Find out why Spyware Removal from computers is important and... Read More
It would be easy to think, like most people apparently... Read More
In our case ? we serve Microsoft Business Solutions ERP... Read More
This tutorial covers OLAP solutions used by Data warehouses and... Read More
When you first think about multicurrency ? you probably have... Read More
For those who are unclear on the differences between the... Read More
Software |