add new variables in my programme
Hi,fralx! Can i add some new variables and set their values and locatons in my own programme?I can't find any instruction in the UserMannual and the demo.If there exsits relative interfaces,please tell me!Thanks a lot!
Hi.
You can use:
report->dataManager()->setReportVariable(VariableName, VariableValue);
if the report variable doesn't exist it will be created
Thanks,then what about their locations on the report?May i set their locatons in my programme?In my programme, I'd like to delete the or set ReportVaribles and thier locations dynamically .
In fact, if you redefined a variable, then you changed its location. Also, you can use report->dataManager()->deleteVariable(VariableName)
How to change the variable location by program ? its not very clear in user manual. I am still searching it in source code. can you tell ? i.e. locations dynamically by program in qt.
In fact, all variables live in the data source manager. If the variable is described in a report template that just means that its value will be used for creating and initializing the variable