Traceback (most recent call last):
File "C:/Users/RAZOR64/Desktop/EC-PROJECT/report.py", line 8, in <module>
import valentina
ImportError: DLL load failed while importing valentina: The specified module could not be found.
I remember I had this error the very first time and I copied valentina.pyd from the examples folder to my working directory. This time I cannot see the valentina.pyd extension in the examples folder. Although I have the old valentina.pyd in working directory but it's not working for me.
report = project.report(name='queryReport', dsn='sqlite://C:/User/RAZOR64/Desktop/EC-PROJECT/EmployeeDatabase.db','SELECT * FROM permanent_staff WHERE staff_no={}'.format(search_id))
^
SyntaxError: positional argument follows keyword argument
So if I want to generate a particular record for a specific actor_id how I do that?
report.setParameterValue( 'pActorID', some_variable )
project.report( 'Report_1', 'sqlite://....', 'SELECT * FROM actor WHERE actor_id={}'.format( some_variable ) )
project.report( 'Report_1', 'sqlite://....', 'SELECT * FROM actor ORDER BY actor_id DESC LIMIT 1' )
report.setParameterValue( 'pitem_id', paramValue )
report.setParameterValue( 'pitem_id','4' )
is set. Meaning after I package the app as .exe I can only search for the record with parameter value of '4'. But I would like to search for any other record. So is there a say a variable that could hold all the parameter values one time?