Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Programmieren allgemein (https://www.delphipraxis.net/40-programmieren-allgemein/)
-   -   Fast Report get data from stored procedure or inline table value function (https://www.delphipraxis.net/179209-fast-report-get-data-stored-procedure-inline-table-value-function.html)

question 20. Feb 2014 12:50

Fast Report get data from stored procedure or inline table value function
 
Hi,
can anybody tell me please, how it is possible to get data from a Stored procedure or from a InlineTable value function in FastReport?

Buddelfish 20. Feb 2014 16:54

AW: Fast Report get data from stored procedure or inline table value function
 
Where is your problem? Create a TxxxQuery (or a TxxStoredProc, if you have one), fill it with the appropriate query statement, connect the dataset to a TFrxDataset (Forgot the exact name) open the designer, assign the data and use it.

There is a menu item 'data' where you can 'assign the data', i.e. like make it visible to the designer.

Another possibility is to directly connect to a database from within the designer.

question 20. Feb 2014 17:20

AW: Fast Report get data from stored procedure or inline table value function
 
thanks for your reply

the problem is, i have a stored procedure and i have also a query for that, but when i connect with FastReport then it does not show any column, it happen only with stored procedure and with inline table valued function

furthermore ,i have checked the query and everything is ok so far but i dont know why in Fastreport does not show any data field

question 20. Feb 2014 20:36

AW: Fast Report get data from stored procedure or inline table value function
 
for example, i have a inline table valued function 'dbo.FT_getuser'
if i run the query direct with fixed value 'select * from dbo.FT_getuser(1001)' then its work

but if i use the parameter 'select * from dbo.FT_getuser(:ID)'
and run the query like this

ADOQuery1.Parameters.Items[0].Value:=1001;
ADOQuery1.Open;

then it does not show any data field in fast report ,but in delphi it works


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:26 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz