Page 2 of 3 < 1 2 3 >
Topic Options
#44469 - 02/05/15 03:32 PM Re: Query AR and AP via ODBC [Re: Retired_Guy]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
I tried this but no luck...

Like so?
G:\SOFTRAK\system\DataDictionaryExporter.exe /ODBC

Top
#44470 - 02/05/15 03:36 PM Re: Query AR and AP via ODBC [Re: Bruce Gardner]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
I tried both but I thought the names were easier to figure out when they were long...
But if i reference the Exported Definition and the ADS Alias Column on the first Worksheet, I guess it makes sense.

Any idea why that table would be empty?

What is the Column "all"vs common do?

Thanks
Yann

Top
#44471 - 02/05/15 04:08 PM Re: Query AR and AP via ODBC [Re: Yann]
Michael Mulrooney Offline
Adagio Virtuoso

Registered: 02/07/02
Posts: 839
Loc: Vancouver, BC
Have a look at AdagioODBCv2.chm, Setting Up a DSN
Columns:

Common - Does not show 'hidden' fields in the table and translates coded values. Fields with coded values will have a "_T" suffix added to the field name. 'Translated coded values' should not be used in the WHERE or JOIN clauses of an SQL statement.

For example, WHERE SRTransactions_as80aitm.Type_T="Tax" will not work properly.

Instead, use the All option described below and WHERE SRTransactions_as80aitm.Type="T".

All - Shows the hidden fields and does not translate coded values.

Top
#44489 - 02/06/15 11:03 AM Re: Query AR and AP via ODBC [Re: Michael Mulrooney]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
I still haven't figured out why the some tables are empty

See screen shot:
[img]https://drive.google.com/file/d/0B7qAWeNhnmSucnJhY3RvOXJKbUk/view?usp=sharing
[/img]

Top
#44490 - 02/06/15 11:43 AM Re: Query AR and AP via ODBC [Re: Yann]
Bob Wisener Offline
Adagio Conductor

Registered: 03/19/02
Posts: 554
Loc: Vancouver, BC
I'd recommend that you confirm that your APHIST'R data file is greater than 512 bytes. Confirm you are pointing to that data. Then try it without any joins or filters.
_________________________
Bob Wisener
Dakota Software

Top
#44493 - 02/06/15 12:50 PM Re: Query AR and AP via ODBC [Re: Bob Wisener]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
It's 11 MB

APHIST'1.DAT is 2.5 MB
APHIST'2.DAT is 3.4 MB

I changed my ODBC DSN to use short names and common Columns...
I created a new crystal report after restarting Crystal (just to make sure it was not a crystal issue). I added the AP81BHST Table and it would not allow me to view any rows that would be inside of it...

if I add the AP81BMTC table, I can see all the columns that exist in the table...

What could be wrong here? Permission?

Thanks
Yann

Top
#44494 - 02/06/15 01:15 PM Re: Query AR and AP via ODBC [Re: Yann]
Retired_Guy Offline
Adagio Master

Registered: 03/16/99
Posts: 10493
Loc: Canada
Hello Yann,

Since you have GridView, do the following:
  • Launch GridView pointing to your Account Payable data
  • Create a new View from Adagio Payables
  • Select the A/P Transaction History Table
  • Select some fields from the table
  • Don't create a Filter
  • See if anything is displayed.

This will tell you whether there is anything in the file.

Then, create a DSN using either the 32 or 64 bit Administrator, depending on the version of Excel you are using. Place "AP*" in the "Table Selection" field and save the DSN. Use long names.

Launch Excel, Choose Data | From other sources. and select your DSN. Choose AP Transaction history from the list of tables. Make sure the table can be loaded into Excel. This will show whether the connection is working properly.

I just went through all these steps with the sample data on my system with Excel 64 bit and everything worked fine.

I then launched Crystal Reports 8.5 and select ODBC as my data source. The Adagio AP one was displayed. I chose the Vendor Master and Transaction History tables to add.

Worked fine:



Edited by Andrew Bates (02/06/15 01:26 PM)
Edit Reason: Added Crystal test.
_________________________
Andrew Bates

Top
#44503 - 02/06/15 06:16 PM Re: Query AR and AP via ODBC [Re: Bob Wisener]
Michael Mulrooney Offline
Adagio Virtuoso

Registered: 02/07/02
Posts: 839
Loc: Vancouver, BC
If you zip the AP data that your DSN or Connection string points to and upload to www.softrak.com/dbr attention Michael I will have a look to make sure that the data is OK. Create a File DSN that is a copy of your System/User DSN and include it with the AP data.

I always suggest that you use Excel | Data | From Other Sources | From Microsoft Query to test your DSN. Looking at the table with Gridview will let you know what data is in the table. ODBC field names are built from Gridview field names with spaces and "special" characters removed.

Top
#44527 - 02/10/15 07:43 AM Re: Query AR and AP via ODBC [Re: Michael Mulrooney]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
Hi Andrew,

ok, i found data in the A/P Transaction History via GridView but when I do it through Excel, I get unable to obtain list of tables from the data source.

I'm using 64 bit excel and the 64 bit ODBC the way you suggested it...

Thanks
Yann

Top
#44531 - 02/10/15 09:34 AM Re: Query AR and AP via ODBC [Re: Yann]
Yann Offline
Adagio Scholar

Registered: 10/26/06
Posts: 94
Loc: BC, Canada
Here is another error I'm getting after using the AP* in the table selector...

ODBC Error in Crystal

Top
Page 2 of 3 < 1 2 3 >


Moderator:  Christa_Meissner 
Who's Online
1 registered (accountability), 88 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Forum Stats
1848 Members
5 Forums
14239 Topics
69736 Posts

Max Online: 359 @ 11/18/19 09:08 PM
May
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31