Multiple Share variable in Crystal Report -


i developing report generate various pdf files. report should mask data such name ,address ,phone depending upon parameter passed report. report has various sub reports (transaction statement, balance statement etc)

i have declare 1 flag identifies whether data needs masked or not. depending upon masking filed in sub reports. know difficult maintain if there change in formula , needs applied sub reports. hence looking using shared variables can accessed in sub reports. can create multiple share variables in same formula (name, address etc) & pass them sub reports ?

you can declare shared variable in formula , known in subreports.

for example, suppose create formula in main report:

shared numbervar letsmask shared numbervar anotherone letsmask := 1 anotherone := 2 

then, can reuse in formula in subreport:

shared numbervar letsmask shared numbervar anotherone if letsmask = 1 , anotherone = 2 "print this, bet true" else "this not happen" 

note there no need "pass" subreport. subreport aware of shared variables.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -