Hello group, I am new to AppGini and I am having difficulty getting this feature to work and could use some assistance please.
Inspected my element, class name of the table field is 'Account-Type'
Duplicated the script in the 'footer-extras.php' file in the 'hooks' folder of the Northwind Demo project yet when I refresh (clearing cache) it doesn't work. Any Ideas?:
<script>
$j(function(){
$j('.Account-Type').each(function(){
var TType = $j(this).text();
if(TType == 'Credit'){
$j(this).parents('tr').addclass('success');
}
})
})
</script>
Any help is appreciated,
Thanks for your time.
Bill
Row highlighting based on field value
Row highlighting based on field value
- Attachments
-
- 2021-06-12_8-47-44.jpg (122.67 KiB) Viewed 1094 times
Re: Row highlighting based on field value
The YT video demonstrates what I am trying to achieve and how:
https://youtu.be/DObUK-I-U8o
https://youtu.be/DObUK-I-U8o
Re: Row highlighting based on field value
You wrote:
But in the picture you posted the table name isInspected my element, class name of the table field is 'Account-Type'
notAcounting
.Account
Re: Row highlighting based on field value
Thanks for the reply Alisson,
That is just the display name. The table name is Account.
Viewing the Console it says something about .addclass not being a valid function.
Again thanks
That is just the display name. The table name is Account.
Viewing the Console it says something about .addclass not being a valid function.
Again thanks
Re: Row highlighting based on field value
OK, I found it. I googled '.addclass not a function'
Answer: the 'c' in addclass needs to be capitalized.
I spent a day and a half on this.
Works fine now.
Thanks
Answer: the 'c' in addclass needs to be capitalized.
I spent a day and a half on this.
Works fine now.
Thanks