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.
best cleaning company Lincolnshire ..It is really interesting that a bug can create problem... Read More
Looking at all the ads which promise to get rid... Read More
We were recently faced with a decision: either to let... Read More
Almost all new and major brand of PCs come with... Read More
Microsoft Great Plains as ERP and Microsoft CRM as... Read More
Microsoft Word is one of the most popular office applications... Read More
Designing without tables by using CSS layouts is fast becoming... Read More
Microsoft Great Plains, Navision, Solomon and Axapta are Microsoft Business... Read More
Remember old good days when your company probably had Great... Read More
Microsoft Business Solutions CRM proved to be reliable solution in... Read More
The adware and spyware definitions list is very long. But... Read More
GroupwareThe internet is full of 1.5 million to 7 million... Read More
Adobe Photoshop is one of the world's leading graphics editing... Read More
No matter how much you enjoy your favorite screensavers, sometimes... Read More
In the new era of internet marketing the problem of... Read More
We would like to give you pluses and minuses of... Read More
Microsoft Business Solutions Great Plains was purchased from Great Plains... Read More
C++ Function templates are those functions which can handle different... Read More
Costs of fleet maintenance software can vary widely. It is... Read More
I like my software simple. If it's too complex or... Read More
Although statistics often is blamed for various deadly sins --... Read More
Spyware and malware are large problems for Internet users today... Read More
This article is the first of a series of articles... Read More
Microsoft CRM is relatively new player on the now becoming... Read More
What is Snort?Snort is an open source network intrusion detection... Read More
custom home cleaning Arlington Heights ..In a previous article, I wrote about OpenOffice... Read More
Microsoft CRM is now on the scene and it is... Read More
Spyware is like the new technological nuclear weapon on the... Read More
Features Additionally, Vista will include many other new features.Aero Vista... Read More
.Net Framework is a platform or development environment to seamlessly... Read More
How many steps does it take you to locate and... Read More
Microsoft SQL Server is the leader for inexpensive and middle... Read More
Microsoft Business Solutions CRM is now approaching the phase of... Read More
You turn on your computer, and it doesn't look quite... Read More
Should one use Windows Update?This topic has good and valid... Read More
Some companies that are in need of fleet management may... Read More
Mapping Software Improves Data VisualizationFrom the outset, it is important... Read More
Microsoft Great Plains, former Great Plains Software Dynamics, eEnterprise has... Read More
Microsoft Business Solutions products: Great Plains, MS CRM, Navision, Axapta,... Read More
Simply put, fleet maintenance allows companies to monitor and maintain... Read More
In our small article we'll consider Microsoft Business Solutions Great... Read More
Great Plains Inventory Management (IV) module gives your business a... Read More
If you use Microsoft Outlook (or similar applications) for e-mailing,... Read More
Microsoft CRM is relatively new player on the now becoming... Read More
Icons are used everywhere; right from software applications, to internet... Read More
Microsoft Business Solutions CRM is present several years on the... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Microsoft Great Plains is one of the Microsoft Business Solutions... Read More
In 2004 Oracle, Inc. made its new step toward J2EE... Read More
Are Spreadsheets Robbing your Enterprise of Competitive Advantage?'90% of "average"... Read More
		            Software |