IBM Business Process Manager


Table Row Color Changes v8.5.6


Hi everyone!
My requirement states that I need to be able to change an entire row's background color depending on certain criteria of a column's row's data. So for example, if I had the following code:
tw.local.testTable = new tw.object.listOf.TestTable();
tw.local.testTable[0] = new tw.object.TestTable();
tw.local.testTable[0].column1 = "Column 1 Value 1";
tw.local.testTable[0].column2 = 45.00;
tw.local.testTable[0].column3 = "Column 3 Value 1";
tw.local.testTable[1] = new tw.object.TestTable();
tw.local.testTable[1].column1 = "Column 1 Value 2";
tw.local.testTable[1].column2 = 15.00;
tw.local.testTable[1].column3 = "Column 3 Value 2";
I need the ability to pass a threshold variable into the OOTB Table CV in version v.8.5.6 with a decimal value. (example 20.05), and if column2 value is over, highlight the entire row's background color red.
Any help would be greatly appreciated.
Thanks!
I won't provide a lot of help on this... I have the same requirements on BPM 8.5.7.
I checked the table coach view and it is quite complicated to replicate it with all the configurations, to customize it with the background color, etc
For now my workaround was to create a new 'Text' coach view and to change the text color which is way easier to do. That might be an option for you too.
I still plan to create this in the future but this will be through a new Responsive Coach view in BPM 8.5.7
Hi QuikJean,
Thanks for the suggestion! Unfortunately, I need to be able to make the entire row's background-color change instead of just a single cell.
Appreciate the thought!
bpmIsAwesome
27000524R7
‏2017-06-02T14:30:03Z
Hi QuikJean,
Thanks for the suggestion! Unfortunately, I need to be able to make the entire row's background-color change instead of just a single cell.
Appreciate the thought!
More...
Just a FYI on this, BPM 8.5.7 2017.06 provides a new toolkit to replace the 'Coaches' and 'Responsive Coaches' toolkits.
And this new 'BPM UI' toolkit has a table control that allows to change easily the row/cell background color
I am playing with it and it works pretty well and it is very easy to use
Hey there bpmIsAwesome -
Oftentimes when I get this sort of requirement, I'll create a Coach View that will execute after the table data changes. For example, if your table data is bound to "tw.local.testTable", I'll create a Coach View that is bound to the same thing.
Then, within the "change" event of that coach view, I'll execute the code I'll need. For example, lets say your table has a control id of "Table1":
//Find all table rows for "Table1" in the current Coach View
$('div[data-viewid="Table1"] table tbody tr', this.context.element)
.each( function(value){ // For each row, do something
// Find the applicable comparison table cell in this row, and get its value
var val = $(this).find('div[data-viewid="TableCell_ControlId"]').val();
if(val > 20.00){
//Set all background color for all td's in current row
$(this).children('td').css('background-color','#000');
}
});
// (\/) (°,,,°) (\/) Whoop whoop whoop whoop whoop
I haven't tested this - but the overall idea is there, please let me know if this is helpful!

Related Links

UCA CWLLG0203E Errors - General Questions
CWLLG2015E Wrapped java.lang.NullPointerException
REST API
Accesing list data bound to Coach View
BPM 8.5 installation (deployment environment creation)
settting auto height of tabs
Pause System Service
BPM 8.5.5 node under WAS 8.5 Dmgr
ibpm 8.0.1 to 8.5 Migration
Cannot find POReference - Effects UCA jobs Failed
Auto fill an Output text using a drop down
Integration BPM SAP
Unable to access bpmwiki
Adding tasks to an active BPD instance
Cannot find POReference with id
bpm v8 process designer refresh problem on table

Categories

DW
Tivoli Business Servic...
Cast Iron Community
dW
Information Management
WebSphere
IBM OS Pattern Kit
IBM Content Navigator
Security Access Manage...
Interact
eMessage7
IBM SmartCloud Applica...
Jazz for Service Manag...
Tivoli Business Servic...
General Discussion
Multi-Channel Fullfill...
SPSS Community News
IBM ILOG Elixir
Regional
Cognos Enterprise BI
Cognos Planning 10
Eventos en Latinoamérica
Rational
Lotus
IBM Rational Rhapsody
Rational Performance T...
Rational DOORS adminis...
Серверы IBM System x
websphere
xml
powerarchitecture
db2
Test tivoli forum
aW
IBM JZOS Batch Toolkit...
AIX and Linux on POWER
All blogs
Tivoli Netcool Perform...
Report abuse
Migrating to WebSphere...
Digital Advertising
IBM WebSphere Transfor...
WebSphere Commerce
WebSphere Portal and P...
IBM HTTP Server
Network Protection (XGS)
Network Intrusion Prev...
IBM Security Identity ...
IBM Cloud Identity
DSM Extensions, Custom...
Reports
API
QRadar Risk Manager
IBM Control Center
Mobile Store Channel
Multi-Channel Fullfill...
Selling System SDK
Services & Integration
**Announcements & Ster...
Upgrade Issues
Data Services/Data Mig...
Commerce/Order Management
Release 5.6
Connect:Direct (Educat...
E-Commerce/EDI/XML Cou...
Logistics
Service Definition Fra...
DB2
WebSphere-MQ
DB2
Business/IT challenges...
Moderator Collaboration
IBM Operational Decisi...
3D Charts
CP Optimizer
Constraint Programming...
JRules - General
Rule Execution Server
Higher Education
1С:Предприятие на DB2
Performance Harness fo...
IBM i: Backup/Recovery
IBM i IBM i Performanc...
PowerHA (Formerly know...
AIX Networking
System z Hardware Mana...
Thinking XML forum
Client-side Java progr...

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile