Hello
I am using AppGini 5.81. I have a table with price field. I want to color the field with minimum price.
Any help please.
Thank you
How to change the color of a field
Re: How to change the color of a field
Hi,
I would suggest using /hooks/tablename-tv.php. Create a JS/jquery function which checks all prices and adds a CSS class to the minimum value.
I am using this to add a color (css class) to the complete row according to the value in the column ID_posZ - maybe it helps.
Olaf
I would suggest using /hooks/tablename-tv.php. Create a JS/jquery function which checks all prices and adds a CSS class to the minimum value.
I am using this to add a color (css class) to the complete row according to the value in the column ID_posZ - maybe it helps.
Code: Select all
$j(function () {
$j('.tablename_container-ID_posZ').each(function(){
var ebene = $j(this).text();
var new_CSS_basename = "ebene_";
var new_CSS_class = new_CSS_basename.concat(ebene);
$j(this).parents('tr').addClass(new_CSS_class);
})
});
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
Re: How to change the color of a field
Hello
Thank you for your help, I will try add this and see.
Best regards,
Thank you for your help, I will try add this and see.
Best regards,
Re: How to change the color of a field
Hi Moh,
this will NOT work for you. It was meant to be an example of how to check for certain criterias (in all rows) of the table. You will need to write your own code - which you might be able to base on the code I provided.
Olaf
this will NOT work for you. It was meant to be an example of how to check for certain criterias (in all rows) of the table. You will need to write your own code - which you might be able to base on the code I provided.
Olaf
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
Re: How to change the color of a field
ok I see
ok, I will give a try
Thank you
ok, I will give a try
Thank you