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.
shuttle from Midway Glen Ellyn ..What is Spyware?Spyware monitors your surfing habits and sends the... Read More
Beginning with Domino version R4 it has integration with the... Read More
When you buy a computer, it most likely comes with... Read More
Microsoft Business Solutions CRM proved to be reliable solution in... Read More
It is now common thing when large corporation selects mid-market... Read More
1. What determines the software price? Is it Per Seat... Read More
The fact that a software tester is a most infamous... Read More
Microsoft Great Plains as ERP and Microsoft CRM as... Read More
Although statistics often is blamed for various deadly sins --... Read More
When you need a phone number, you do a quick... Read More
Not every software testing project can or should be automated.... Read More
It would be easy to think, like most people apparently... Read More
Before being able to choose a secure Internet communication system,... Read More
We all already got used to computer monitoring both at... Read More
When you visit department stores and see that majority of... Read More
Have you ever noticed that when you look at your... Read More
Looks like Microsoft Great Plains becomes more and more popular,... Read More
Around the same time Microsoft made its move with .Net... Read More
Sticky Noteshttp://www.deprice.com/stickynote.htmWith StickyNote 9.0, you can create beautiful 3D notes... Read More
Words we choose to describe things and phenomena often show... Read More
Microsoft Business Solutions CRM is present several years on the... Read More
When you double-click a layer in the Layer Palette, you... Read More
Almost all new and major brand of PCs come with... Read More
While Ukraine is becoming a new popular IT outsourcing destination,... Read More
What is Groupware?Have you ever had to manage document collaboration... Read More
shuttle from O'Hare North Chicago ..MSN messenger is a pretty cool invention. I mean I'm... Read More
Current Microsoft Business Solutions Great Plains has more that 10... Read More
One of the things we can be as certain of... Read More
If you are in the market for new staffing software,... Read More
Remember old good days when your company probably had Great... Read More
Configuring PPP PAP AuthenticationNow we know how the ISDN link... Read More
There are two major WYSIWYG(What You See Is What You... Read More
Microsoft Business Solutions products: Great Plains, MS CRM, Navision, Axapta,... Read More
Looks like Microsoft Great Plains becomes more... Read More
With many manufacturing shops heading over seas in favor of... Read More
So, why should you use any O/R mapping tool? I... Read More
Let's say that you have a software project that's under... Read More
If you have been using the Internet for any amount... Read More
Mapping Software Improves Data VisualizationFrom the outset, it is important... Read More
Remember back in the days where screensavers were the coolest... Read More
Great Plains Fixed Assets Management module is a robust tool... Read More
Formatting and reinstalling windows 98 is very easy if you... Read More
An integral part of any quality CRM system is lead... Read More
Follow the steps below to quickly design, generate, and deploy... Read More
When you first think about multicurrency ? you probably have... Read More
Research bears that less than 70 percent of development projects... Read More
How do you run a program on a remote server... Read More
Usually workflow & messaging is realized in CRM and then... Read More
Well, even if the combination might look very unusual, we... Read More
Heard about the Quark "killer"?Adobe InDesign CS2. Will it really... Read More
Software |