开发者

Pass command field from main report to crosstab formula in sub report?

开发者 https://www.devze.com 2023-01-31 05:14 出处:网络
I have a master detail report. The crosstab is included in detai开发者_运维问答l section inside a subreport.

I have a master detail report. The crosstab is included in detai开发者_运维问答l section inside a subreport.

How to pass a command field from main report to cross tab formula field in sub report ?


You can do this using Shared Formulas.

In your main report create a new Formula Field - it can be called whatever you like. Create a shared variable and assign it a value.

WhilePrintingRecords;
shared stringVar MAINREPORTVAR := {Table.ColumnName}

In your sub report, create a new Formula Field and enter the following:

WhilePrintingRecords;
Shared StringVar MAINREPORTVAR;
MAINREPORTVAR

The variables names in both of the formulas must be the same.

This will display the value of the Formula field from your main report on your sub report. You can then use this in your cross-tab.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号