Sunday 17 April 2016

Highlight Tabular Form Rows on addition from Pop-up

To Highlight Tabular Form Rows on addition from Pop-up:

1. Paste the following code in the dynamic action:

         On Refresh of region
         Execute java script code:

/*Reset the background colors of all cells*/

$('.t-Report-cell').css("background-color", "white");

/*Get Selected Value from the select list / on addition of rows from pop-up set the values in an page item as comma separated*/

var a = $v('P86_SEL_MAST_ITEMS');
a = a.replace(/(^,)|(,$)/g, "");
//alert (a);

$("input[name='f02']").filter(function(){return a.split(',').indexOf(this.value) > -1}).closest("tr").children("td").css("background-color", "yellow");

$("input[name='f02']").filter(function(){return this.value==temp[j]}).closest("tr").children("td").css("background-color", "yellow");

1 comment: