Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Decision Components - Help!

Status
Not open for further replies.

corsair2

IS-IT--Management
Feb 21, 2001
55
GB
I'm using a variety of Decision Components on a form (Decision Grid/Chart/Query/Source) to enable users to obtain different views of reported data. The data is on an Oracle 7.3 Db on an NT4 server and I'm using D6 Enterprise.
I have the form set up to display test data at design time, which it does with no problems.
However, when I try to test the form in run-time mode I always get the following message;

"Project raised exception class EComponentError with message 'A component named Series 1 already exists'. Process stopped. Use Step or Run to continue."

If I then delete the offending Chart and re-run the form I get a Db error reporting unknown userid or password (no login prompt, although this is set to be required).

So, it seems I have TWO problems - one with TDecisionGraph and one with DecisionQuery!

The project DOES display the standard login prompt on initially being opened in design-mode.

This is the first time I've used the Decision Support Components - I used them as a big pitch in persuading my boss to buy Delphi in the first place (Corporately, we're standardised on MS VB). Although the people upstairs are very happy with the Db work we've produced with Delphi the use of the Decision Support Components in an app. which can be distributed to non-technical managers is an absolute pre-requisite.

HELP!
 
I've only used the decision components once and found them a bit of a nightmare.

I'd suggest your first error: 'A component named Series 1 already exists' is probably because you are creating it in the code having already created it in the design window.

No real idea on your query problem, does it state that it is the query that is working fine in design view? or could it be a dynamically created query?
 
Hi Robertio

Thanks for the prompt response.
Re. your suggestions - there is no code (yet) to create series (all done by components at design time) and likewise with the query which also runs fine at design-time but is a no-no at run-time.

Design-time, everything on the form works exactly as I need it to but trying to run the thing in run-time mode...
Really frustrating to be able to give a demo of the form but not be able to release it.

regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top