jasper reports - JasperSoft Studio - Getting Column value as Null While left join - Stack Overflow

I Need to get symbol column from symbols table using symbol id, while i select the input parameter like

I Need to get symbol column from symbols table using symbol id, while i select the input parameter like symbol_name, There are 2 files used for single report. In Main.jrxml using join query to acheive it. but its getting null value. Is there any possible solution for this issue?

MainQuery:

Select * from sales_depart LEFT JOIN symbols on symbols.symbol_id = sales_depart.symbol_id

<field name="symbol" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field>

<textField> <textFieldExpression><![CDATA[$F{store_name}+ ":"+ $F{currency}]]></textFieldExpression> </textField>

I Need to get symbol column from symbols table using symbol id, while i select the input parameter like symbol_name, There are 2 files used for single report. In Main.jrxml using join query to acheive it. but its getting null value. Is there any possible solution for this issue?

MainQuery:

Select * from sales_depart LEFT JOIN symbols on symbols.symbol_id = sales_depart.symbol_id

<field name="symbol" class="java.lang.String"> <fieldDescription><![CDATA[]]></fieldDescription> </field>

<textField> <textFieldExpression><![CDATA[$F{store_name}+ ":"+ $F{currency}]]></textFieldExpression> </textField>

Share edited Mar 16 at 14:47 Alex K 22.9k19 gold badges114 silver badges243 bronze badges asked Mar 3 at 11:02 KalavathiKalavathi 12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

try not to left join and run query and see it it works. perhaps your join is wrong

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745097996a4611098.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信