简体   繁体   English

BIRT动态图片网址-无法访问数据列

[英]BIRT dynamic image url - cannot get access to data columns

I am trying to display different images based on data returned. 我试图根据返回的数据显示不同的图像。 I am running into the following issues 我遇到以下问题

  1. DataSet is not available on the image control for me to make decisions based on the column information. 图像控件上没有DataSet,我无法根据列信息进行决策。 I am using a grid layout (no tables)... Think of a letter 我正在使用网格布局(没有表格)...想想一个字母

  2. I tried to create report level variables and assign it the value from dataset during the onFetch event. 我尝试创建报告级别的变量,并在onFetch事件期间从数据集中为其分配值。 However, that assignment does not happen. 但是,该分配不会发生。

I have tried both 我都尝试过

rptvar = dataSetRow["colname"]
rptvar = Row["colname"]

I have confirmed that onFetch event does get called using Javascript debugging (see http://www.lebirtexpert.com/wordpress/2010/08/ ) 我已经确认onFetch事件确实是使用Java脚本调试调用的(请参阅http://www.lebirtexpert.com/wordpress/2010/08/

Please let me know how to access dataset columns to dynamically create the image URI 请让我知道如何访问数据集列以动态创建图像URI

There's a post on the BIRT world blog that should be very useful to you: http://birtworld.blogspot.com/2010/09/birt-image-report-item.html BIRT世界博客上有一篇帖子应该对您非常有用: http : //birtworld.blogspot.com/2010/09/birt-image-report-item.html

Kudos to Mr. Weathersby! 对韦瑟斯比先生表示敬意!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM