CheckBoxes in BIRT [message #1801031] |
Fri, 11 January 2019 11:19 |
Priyank Vw Messages: 1 Registered: January 2019 |
Junior Member |
|
|
Hi All,
I have created a BIRT and have included two images - Checked Box and Unchecked Box for getting a checkbox functionality on BIRT.
For the Checked Box image, under Visibility property, I have selected Hide Element option and provided the below expression:
if (bodyTextArray[10]=="Y")
{
false
}
else
{
true
}
Here, bodyTextArray[10] is actually from an array and holds values of Y or N. So when the value is 'Y', it should send false as per the above condition and unhide the checked box image.
Similarly, I have done this for the unchecked box image and have the below condition as part of it:
if (bodyTextArray[10]=="Y")
{
true
}
else
{
false
}
So, the uncheck box image will come up.
When I am testing this, it is rightly getting the uncheck box image when the bodyTextArray[10] value is 'N'. But is getting the uncheck box image again if the bodyTextArray[10] value is 'Y'. In the case of 'Y', it should get only the checked box image but it is not doing that.
Can someone please help me on this?
Thanks in advance.
|
|
|
|
Powered by
FUDForum. Page generated in 0.08829 seconds