LimeReport icon indicating copy to clipboard operation
LimeReport copied to clipboard

add new variables in my programme

Open toBeStronger-ys opened this issue 5 years ago • 5 comments

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!

toBeStronger-ys avatar Apr 02 '20 13:04 toBeStronger-ys

Hi. You can use: report->dataManager()->setReportVariable(VariableName, VariableValue); if the report variable doesn't exist it will be created

fralx avatar Apr 04 '20 08:04 fralx

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 .

toBeStronger-ys avatar Apr 06 '20 08:04 toBeStronger-ys

In fact, if you redefined a variable, then you changed its location. Also, you can use report->dataManager()->deleteVariable(VariableName)

fralx avatar Apr 06 '20 16:04 fralx

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.

RaghavTotla avatar Apr 28 '20 14:04 RaghavTotla

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

fralx avatar May 13 '20 15:05 fralx