Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
Hiding/showing rows depending on whether certain IDs are contained in an array.
Migrateduser
Hello,
I am trying to hide rows on a table, depending on whether certain IDs are contained in an array (BIArray):
for (r=0; r<BIArray.length; r++)
{
if (BIArray[r]==this.getRowData().getColumnValue("BI_CompID"))
{
ShowRow=true;
break;
} else
{
ShowRow=false;
}
}
(this code is on the table's detail row's onCreate method).
As you can see, if BI_CompID's value is the same as a value in the array, then I want to show the current row in question, otherwise, I want to hide it.
ShowRow is currently used in the detail row's "Visbility" property, which is set to:
- Hide Element = checked
- For all outputs = option selected
- Detail (All Outputs) set to: ShowRow==false
This method works for most values. However, there are some values that are showing that shouldn't be showing. So this method in its current implementation doesn't work perfectly.
I was thinking, perhaps there is a better of doing this?
Perhaps I can hide the row on the table's detail row's onRender method? If so, what is the JavaScript command for this?
Thanks,
Albert
Find more posts tagged with
Comments
There are no comments yet