Switch to: V11V10V9V8V7V6V5

vproject_make_new_report()

Declaration

report_id = vproject_make_new_report(
 					resource inVProjectID,
 					int	 inReportIndex,
 					resource inConnectionID,
 					string	 inQuery,
 					[,int inLocation  = kClientSide]
 					[,int inLockType  = kReadOnly]
 					[,int inDirection = kForwardOnly]  )
 
report_id = vproject_make_new_report(
 					resource inVProjectID,
 					string	 inReportName,
 					resource inConnectionID,
 					string	 inQuery,
 					[,int inLocation  = kClientSide]
 					[,int inLockType  = kReadOnly]
 					[,int inDirection = kForwardOnly]  )

Parameters

Name Description Default Value
inVProjectID Identifier of a Valentina Project.
inIndex Index of VReport.
inReportName Name of VReport.
inConnectionID Identifier of a Valentina connection.
inQuery The SQL string of a query.
inLocation ECursorLocation { kClient=1, kServer=2, kServerBulk=3} . kClient
inLockType ELockType{ kNoLocks=1, kReadOnly=2, kReadWrite=3} . kReadOnly
inDirection ECursorDirection{ kForwardOnly=1, kRandom=2} . kForwardOnly

NOTES:

  • Parameter inQuery must contain any SQL that returns a set of records.
  • Parameter inQuery can be empty by default. In this case the VReport will use the original query, which is stored in the VProject.

Description

Creates a new instance of VReport based on the Valentina database.

Return Values

Returns id of object.

Examples

Example

<?php
$project_id = vproject_create( $link, $project_name );
...
$conn_id = valentina_connect( $host, $login, $pass ); 
$report_id = vproject_make_new_report( $project_id, 1, $conn_id, "select * from t1" );
 
?>