Show Checkbox image or unchecked image from result [message #1847218] |
Tue, 19 October 2021 15:15  |
Eclipse User |
|
|
|
I have tried different methods and I am not able to show an image (checkbox) when the column value equals 1 or another image (unchecked box) when the column value equals 0.
I've tried using the following expression:
if( row["acceptsplititem"] == 1 ){
"checked-50x49.jpg";
}else if( row["acceptsplititem"] == 0 ){
"unchecked-50x49.jpg";
}
---------------------------------------------------------------------------------------
I've tried adding both images (checked and unchecked) by dragging the image report item and selecting from image file in shared resources, then editing the URL of the image via: Properties > Advanced > URL
if( row["acceptsplititem"] == 1 ){
"checked-50x49.jpg";
}else if( row["acceptsplititem"] == 0 ){
"unchecked-50x49.jpg";
}
--------------------------------------------------------------------------------------------
I've tried:
onCreate on the row itself
var myqty = this.getRowData().getColumnValue("preferred");
if( 1 ){
this.file = "checked.jpg";
}else if( 0 ){
this.file ="crosschecked.jpg";
}else{
this.file="other.jpg";
}
-------------------------------------------------------------------------------------------
I've also tried another suggestion from another forum:
if( row["acceptsplititem"] == 1 ) {
"checked-50x49.jpg"
} else if( row["acceptsplititem"] == 0 ) {
"unchecked-50x49.jpg"
} else {
"unknown.jpg"
}
----------------------------------------------------------------------------------------
Can someone please tell me how I can do this, it would be useful to know how I can show checkboxes for results
|
|
|
|
Powered by
FUDForum. Page generated in 0.03812 seconds