BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to retrive the NO generated No into the TClientDataSet's

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Thatchin
Guest





PostPosted: Fri Jan 16, 2004 11:53 am    Post subject: How to retrive the NO generated No into the TClientDataSet's Reply with quote



Hi All !

How to retrive the NO generated No into the TClientDataSet's field JNO.

Thanks in advance !

Thatchiin



Back to top
Bill Todd (TeamB)
Guest





PostPosted: Fri Jan 16, 2004 1:42 pm    Post subject: Re: How to retrive the NO generated No into the TClientDataS Reply with quote



On Fri, 16 Jan 2004 17:53:50 +0600, "Thatchin" <thatchiin (AT) hotmail (DOT) com>
wrote:

Quote:
How to retrive the NO generated No into the TClientDataSet's field JNO.

Your question makes no sense. What database are you using and what,
exactly, are you trying to do?

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)

Back to top
Thatchin
Guest





PostPosted: Mon Jan 19, 2004 10:04 am    Post subject: Re: How to retrive the NO generated No into the TClientDataS Reply with quote



Sorry Bill I agree with you. Im using Delphi 6 and Interbase.

The problem is I use GEN_ID to generate the InvoiceNo, and now I need that
particular generated no passed back to the client where the same has to be
used for printing purposes. thanks.


"Bill Todd (TeamB)" <no (AT) no (DOT) com> wrote

Quote:
On Fri, 16 Jan 2004 17:53:50 +0600, "Thatchin" wrote:

How to retrive the NO generated No into the TClientDataSet's field JNO.

Your question makes no sense. What database are you using and what,
exactly, are you trying to do?

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)



Back to top
Bill Todd (TeamB)
Guest





PostPosted: Mon Jan 19, 2004 1:31 pm    Post subject: Re: How to retrive the NO generated No into the TClientDataS Reply with quote

On Mon, 19 Jan 2004 16:04:59 +0600, "Thatchin" <thatchiin (AT) hotmail (DOT) com>
wrote:

Quote:
The problem is I use GEN_ID to generate the InvoiceNo, and now I need that
particular generated no passed back to the client where the same has to be
used for printing purposes.

Write a stored procedure that calls GEN_ID and returns the number.
Call the stored proc in the OnNewRecord event handler and assign it to
the new invoice record.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)

Back to top
Thatchin
Guest





PostPosted: Fri Jan 23, 2004 12:14 pm    Post subject: Re: How to retrive the NO generated No into the TClientDataS Reply with quote

Thanks Bill !
Also I tried with the folowing SQL Statement, this works fine too.
SELECT
GEN_ID(GENERATORNAME, 1)
FROM
RDB$DATABASE


"Bill Todd (TeamB)" <no (AT) no (DOT) com> wrote

Quote:
On Mon, 19 Jan 2004 16:04:59 +0600, "Thatchin" wrote:

The problem is I use GEN_ID to generate the InvoiceNo, and now I need
that
particular generated no passed back to the client where the same has to
be
used for printing purposes.

Write a stored procedure that calls GEN_ID and returns the number.
Call the stored proc in the OnNewRecord event handler and assign it to
the new invoice record.

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.