Welcome, Guest. Please Login.
05/15/25 at 12:11:36
News:
Home Help Search Login


Pages: 1 2 
Send Topic Print
RMA Module 9/21/07 Update (Read 3547 times)
GasGiant
Administrator
*****


How can I help?

Posts: 1517
Gender: male
Re: RMA Module 9/21/07 Update
Reply #15 - 10/12/07 at 16:54:54
 
What are views?
Back to top
 
 


Email WWW GasGiant GasGiant 31012781 swordworlder swordworlder   IP Logged
kkmfg
Senior Member
****


Ghost of the code

Posts: 375
Gender: male
Re: RMA Module 9/21/07 Update
Reply #16 - 10/12/07 at 19:46:03
 
A view is essentially a fake table that takes it data from other tables. It's dynamic in that it regenerates it's contents on every select statement. For instance, lets say you have two tables called TableA and TableB. TableA stores customer account details such as name, address, and so on. TableB stores sales order data. Now, obviously you'd normally have a foreign key in TableB that links it to a record in TableA to specify which customer is ordering. But what if you'd like one table that stores records with the customer's name and the total price for each sales order. With a view you could construct such a fake table that had those sort of records. This allows you to issue SQL statements like:  
 
select * from FakeTable where CustID = "KMFG100";
 
which could definitely be more readable than the equivalent query to get the data out of the two original tables.
Back to top
 
 

Collin
K & K Manufacturing, Inc

EvoERP Version 1-22-10 SP3
5 User Workgroup Pervasive 10
Email WWW   IP Logged
GasGiant
Administrator
*****


How can I help?

Posts: 1517
Gender: male
Re: RMA Module 9/21/07 Update
Reply #17 - 10/13/07 at 07:49:23
 
Hmmm... never crossed my mind.
Back to top
 
 


Email WWW GasGiant GasGiant 31012781 swordworlder swordworlder   IP Logged
kevind
Active Member
*****


I was more than
willing to
"pony up",
how b'out U?

Posts: 634
Gender: male
Re: RMA Module 9/21/07 Update
Reply #18 - 10/13/07 at 10:29:55
 
One of the nice things about views is they enable you to put all of your select criteria into the database instead of the application.
If a table definition changes that may affect your select logic, you just re-define the view instead of modifying the application.
Your application would just have a simple select all type statement (i.e. select * from <viewname>)
 
I use a view that defines all of the orders that are ready for shipment.  The Special part of the view is a nested IF statement that extracts  
an email address from one of 4 different locations in the sales order.  It first checks the sales order notes, then the Description, then the 5th
contact in the BKARCUST, and finally the 1st contact in BKARCUST.  With an email address, our shipping system (CPS) can email a 'ShipElert'
that notifies the customer that a shipment to them has been processed.  This email contains the Shipping info and a tracking number.
 
 
 
Back to top
 
 

Kevin Damke
Spectronics Corporation
ISTECH 2004.1 7/26/13 SP1 - 20 user
Evo-ERP Build 7/25/13 T7 -7i R6 - 3 user
(Prev version was 2004.1 10/24/12)
(All Patches Installed as of 7/26/13)
Pervasive 2000i SP4 - Crystal Reports V10
Email WWW   IP Logged
GasGiant
Administrator
*****


How can I help?

Posts: 1517
Gender: male
Re: RMA Module 9/21/07 Update
Reply #19 - 10/15/07 at 07:52:59
 
As it turns out, one of our programs was using a view, which I destroyed (yay) when I rebuilt the DDFs. The program, created by a consultant, had the SQL in the documentation. Between your detailed explanation and his detailed documentation, all is well in Mudville.
Back to top
 
 


Email WWW GasGiant GasGiant 31012781 swordworlder swordworlder   IP Logged
Laura  D. Oliver
Active Member
*****




Posts: 985
Gender: female
Re: RMA Module 9/21/07 Update
Reply #20 - 07/31/13 at 18:11:54
 
Quote from kkmfg on 09/27/07 at 06:15:36:
Quote from Theran on 09/26/07 at 17:53:25:
Running NEWINIT caused me to get a warning error on every file in the data base

"An error has occurred while creating file AS\BKABCUST.BAS - 11"
click OK
next error...........................................................................
..................
and so on all the way down the list of files.
I pressed OK too many times to record here.

A better suggestion would have been to run DBAIF on the two files mentioned in my previous posting.


Yup... Same thing happens to me when I run newinit. Apparently some update of theirs caused a lot of bogus company records. DBAIF really is the best bet.

 
I tried to run  NEWINIT because my DDCheck shows 500 errors most all of which are a play company we deleted long ago and now it has mysteriously appeared...   well kinda re-appeared.... there is not a folder for it in DBAMFG but the files are showing up in MAINTAIN DATABASE along with some other previously deleted test companies.   After reading this thread I think I need to figure out what DBAIF is.
 
Back to top
 
 

Laura D. Oliver
classic DBA since 1997
EVO on Amazon server as of 5-2022
DIXIE PRECISION INC.
Birmingham, Alabama
(205)- 841-8400

www.dixieprecision.com



Email WWW   IP Logged
Pages: 1 2 
Send Topic Print