• 고객센터
  • 교육
  • 매뉴얼
  • 데모
  • 제품소개
조회 수 : 1548
2006.12.18 (22:53:00)
>크로스텝으로 리포트를 만들었습니다.
>1. rownum필드를 만드니까 순차번호가 생성이 안됩니다.
>   리포트스크립트로 만드는 방법을 부탁드립니다.
>2. 비율을 계산하고 싶은데  크로스텝이라 어떻게 필드값을 가지고 올수 있는지 알고 싶습니다.
>    (크로스텝의 필드의 값을 가지고 올수 있는 방법)
>


<object id="tbrp_1" classid="clsid:37D13B2F-E5EB-11D2-973D-00104B15E56F">
        <param name="DetailDataID"                        value="tbds_CrossTab">
        <param name="PaperSize"                                value="A4">
    <param name=PrintSetupDlgFlag                value=true>        
        <param name="Format"                                value="
<B>id=DHeader ,left=0,top=0 ,right=2000 ,bottom=174 ,face='굴림체' ,size=10 ,penwidth=1
        <O> left=781 ,right=1310
                <C>id='xkeyname_$$', left=786, top=13, right=1296, bottom=90 ,mask='XX/XX'</C>
                <L> left=1302 ,top=5 ,right=1302 ,bottom=169 </L>
                <T>id='value2' ,left=1045 ,top=85 ,right=1296 ,bottom=161</T>
                <T>id='value1' ,left=786 ,top=85 ,right=1037 ,bottom=161</T>
                <L> left=1040 ,top=85 ,right=1040 ,bottom=169 </L>
        </O>
        <L> left=558 ,top=13 ,right=558 ,bottom=175 </L>
        <L> left=775 ,top=167 ,right=1302 ,bottom=167 </L>
        <L> left=775 ,top=82 ,right=1302 ,bottom=82 </L>
        <L> left=24 ,top=5 ,right=1093 ,bottom=5 </L>
        <T>id='key1' ,left=40 ,top=53 ,right=259 ,bottom=132</T>
        <T>id='key2' ,left=294 ,top=53 ,right=513 ,bottom=132</T>
        <L> left=24 ,top=161 ,right=556 ,bottom=161 </L>
        <L> left=21 ,top=5 ,right=21 ,bottom=169 </L>
        <L> left=283 ,top=8 ,right=283 ,bottom=172 </L>
</B>
<B>id=default ,left=0,top=0 ,right=2000 ,bottom=84 ,face='굴림체' ,size=10 ,penwidth=1
        <O> left=781 ,right=1310
                <C>id='V2_$$', left=1045, top=0, right=1296, bottom=77, Dec=2</C>
                <C>id='{V1_$$ * 1.0 / crosstabsum(V1) * 100}', left=786, top=0, right=1037, bottom=77, Dec=2</C>
                <L> left=1040 ,top=0 ,right=1040 ,bottom=85 </L>
                <L> left=1302 ,top=0 ,right=1302 ,bottom=85 </L>
        </O>
        <L> left=558 ,top=0 ,right=558 ,bottom=85 </L>
        <C>id='y1', left=29, top=3, right=278, bottom=82</C>
        <C>id='y2', left=296, top=3, right=548, bottom=82</C>
        <L> left=21 ,top=0 ,right=21 ,bottom=85 </L>
        <L> left=283 ,top=0 ,right=283 ,bottom=85 </L>
        <L> left=21 ,top=82 ,right=1090 ,bottom=82 </L>
        <C>id='{crosstabsum(V1)}', left=566, top=8, right=778, bottom=74</C>
</B>



">
</object>

위의 소스를 보시면 V2_$$ 크로스탭 컬럼표시이고
비율은 id='{V1_$$ * 1.0 / crosstabsum(V1) * 100}' 처럼 처리하시면 됩니다

rownum을 표현할실려면
id='{currow}' 로 하시면 됩니다.
 
Tag List
XE Login