So if I want to generate a particular record for a specific actor_id how I do that?
There are two ways:
1) Using parameters
The query in Valentina Studio is defined like that:
SELECT * FROM actor WHERE actor_id = $(pActorID)
Then, in Python code, we supply the actual value:
report.setParameterValue( 'pActorID', some_variable )
2) In the latest version - changing the source query:
project.report( 'Report_1', 'sqlite://....', 'SELECT * FROM actor WHERE actor_id={}'.format( some_variable ) )
As you can see you can set any query you want.
some_variable - is an ID that is passed somehow to the script.