Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3255

Need help on "3 formula method" with "whileprintingrecords"

$
0
0

Hi need help converting a stringvar into a random symbol when it replicates the previous stringvar. I can get a single variable to convert (1st else if) but i cannot nest the correct formula for a multi variable (else statement). Thanks for the help, Max.

 

//'Restart Formula' place in a suppressed GROUP header

whileprintingrecords;

stringvar sv_element := ''

 

//"Display Formula" place in GROUP footer

whileprintingrecords;

stringvar sv_element;

 

//"Build Formula" place in a suppressed DETAIL

whileprintingrecords;

stringvar sv_element;

 

if onfirstrecord then

sv_element := trim({rpAnalyteList_C.Symbol})

 

else if trim({rpAnalyteList_C.Symbol}) = previous({rpAnalyteList_C.Symbol}) then

sv_element := " ^^ "

 

else sv_element := trim(sv_element) & " " & trim({rpAnalyteList_C.Symbol})

 

 

Current Formula provides this TableThis is the Table I need
Ag Al As Ba UAg Al As Ba U
UU
^^^^
^^^^
Ag Al As Ba UAg Al As Ba U
Ag Al As Ba U^^
Ag Al As Ba U^^

Viewing all articles
Browse latest Browse all 3255

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>