Data Dictionary Builder
D7, RB10, nexusdb with appropriate DADE plugin.
I'm trying to get an end user example working.
I'm up to the stage where I run the data dictionary builder.
When I right click andselect genertae I get
TdanxSession.getdatabaseforname: No TnxDatabase object found for
specified name nxDatabase1.
I've checked all properties of components several times and don't seem
to be able to track this one down.
Cheers
Tony
I'm trying to get an end user example working.
I'm up to the stage where I run the data dictionary builder.
When I right click andselect genertae I get
TdanxSession.getdatabaseforname: No TnxDatabase object found for
specified name nxDatabase1.
I've checked all properties of components several times and don't seem
to be able to track this one down.
Cheers
Tony
This discussion has been closed.
Comments
Which exact version of ReportBuilder are you using?
1. Be sure all the Tnx components in the example are active. They will need
to be in order to function correctly at design time.
2. Be sure you installed the rbNexusDB107.dpk into the Delphi IDE.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
rbnexusdb107.bpl. I seem to be able to access everything ok in the
explorer, creating new folders and creating new reports and saving to
nexusdb tables. However, the datadictionary seems to be the only thing
causing problems. Don't know whether it's relevant, but I'm using a
remote Nexus server, not imbedded.
On the form that contains the DataDictionary component, is there a
TnxDatabase component named nxDatabase1?
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Yes. This is a test project and I've got everything running off the one
form. The Datadictionary component specifies Databasename = nxDatabase1
and SessionType = NexusdbSession.
I researched this further...you need to use a TnxDatabaseMapper component on
the same form.
- I reviewed the DADE plug-in for NexusDB, daNexusDB.pas. The
TdanxSession.GetDatabaseNames and GetDatabaseForName methods are using a
TnxDatabaseMapper.
- I Googled on TnxDatabaseMapper and found this message from the NexusDB
newsgroup history. A developer using RB & NexusDB had the same issue.
..."You need to put a TnxDatabaseMapper on the same form.
This component allows you to map between the database names that RB sees and
your real database components. This enables you to actually publish
databases from different servers (if you have connections to different
servers) at the same time if you want.
In the simplest case you just assign the DefaultSession. This will make all
aliases available."
- Thorsten Engler [NexusDB Architect]
....
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
For an example, check out RBuilder\Demos\Enduser Databases\NexusDB
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Thanks for the quick response, great support! I've switched to this
project above, made a copy for my own test purposes and got it working
ok , generating datadictionary entries from my application's tables.
However, when I change the nexus server to a remote server , I'm back to
the messages I was previously getting from the datadictionary generate.
Conversely, when I introduced the nexus mapping component into my
original test project(using a remote server) it didn't seem to make any
difference.
I need to play around with the remote server implementation to see where
the problem lies.
TnxDatabaseMapper with a remote server. Create a simple test project that
does /no/t use RB and get it working with the TnxDatabaseMapper and remote
server.
- And ask a second question to NexusDB tech support and explain that you
are trying to connect ReportBuilder to your server. Ask if there are any
additional tips.
- Returning to the RB NexusDB example, try using the Delphi debugger to
trace the code in daNexusDB.pas for the TdanxSession.GetDatabaseNames and
GetDatabaseForName methods.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com