Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

Array from main to subreport for creating a chart

$
0
0

Hello, colleguas.

 

I want create a chart and have 3 array (Y_1, Y_2, Y_3 and X) with values. It calculated in main report. For example:

 

Record        Y_1          Y_2            Y_3             X               Y_all       Type            

Number

1,00            0,00           0,00           0,00            0,00           0,00           fact

2,00            46,00         0,00           0,00            0,81           46,00         fact

3,00            108,00       0,00           0,00            4,81           108,00        fact

4,00            352,00       0,00           0,00            5,81           352,00        fact

5,00            0,00           522,00         0,00           21,91        522,00         oper_plan

6,00            0,00           1 362,00      0,00           35,01        1 362,00      oper_plan

7,00            0,00           3 630,00      0,00           45,32        3 630,00      oper_plan

8,00            0,00           0,00           4 431,00      53,91        4 431,00      planning

9,00            0,00           0,00           0,00            0,00           0,00

10,00           0,00           0,00           0,00           0,00           0,00

11,00           0,00           0,00           0,00           0,00           0,00

12,00           0,00           0,00           0,00           0,00           0,00

13,00           0,00           0,00           0,00           0,00           0,00

14,00           0,00           0,00           0,00           0,00           0,00

15,00           0,00           0,00           0,00           0,00           0,00


And I get this ))))))

Безымянный.jpg


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Excuse me for small picture. It is Y_1, Y_2, Y_3andX

Безымянный.jpg

 

Inside each function I have next and i tried 3 versions.

 

//if shared stringvar array col_type[RecordNumber] = "fact" then

//    shared numbervar array col_depth[RecordNumber]

 

 

 

//if RecordNumber <= shared numbervar i_max_fact then

//    shared numbervar array col_depth[RecordNumber]

 

 

 

if shared stringvar array col_type[RecordNumber] = "fact" then

    shared numbervar array col_depth[RecordNumber]

 

I want to show only this values.

 

Record        Y_1          Y_2            Y_3             X               Y_all       Type            

Number

1,00            0,00           0,00           0,00            0,00           0,00           fact

2,00            46,00         0,00           0,00            0,81           46,00         fact

3,00            108,00       0,00           0,00            4,81           108,00        fact

4,00            352,00       0,00           0,00            5,81           352,00        fact

5,00            0,00           522,00         0,00           21,91        522,00         oper_plan

6,00            0,00          1 362,00      0,00           35,01        1 362,00      oper_plan

7,00            0,00           3 630,00      0,00           45,32        3 630,00      oper_plan

8,00            0,00           0,00          4 431,00      53,91        4 431,00      planning

9,00            0,00           0,00           0,00            0,00           0,00

10,00           0,00           0,00           0,00           0,00           0,00

11,00           0,00           0,00           0,00           0,00           0,00

12,00           0,00           0,00           0,00           0,00           0,00

13,00           0,00           0,00           0,00           0,00           0,00

14,00           0,00           0,00           0,00           0,00           0,00

15,00           0,00           0,00           0,00           0,00           0,00


And I want to get -

Безымянный.jpg


Viewing all articles
Browse latest Browse all 4814

Trending Articles



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