![]() |
Sergey Kornilov admin 6/24/2021 |
This code in BeforeMoveNextList event will only work once, on the initial page load. You cannot use it to change the color of the cell dynamically without reloading the page. It is still possible to do what you looking for, it just requires more code and a different approach. Check this article, section "How to execute JavaScript code after the Inline Add or Edit". It shows how to execute your Javascript code after record was added or edited in the inline mode. You will need to use jQuery's css() function to change the background of the cell. |
C
|
Craig Smith author 6/27/2021 |
Thank you for your assistance on this. I was able to to use the article you provided to arrive at a solution. |
![]() |
Sergey Kornilov admin 6/28/2021 |
Awesome, feel free to share your solution here. |
C
|
Craig Smith author 7/14/2021 |
Sorry for the delay on posting the solution: On the list page for my table, I created the following events: JavaScript OnLoad event: if( !pageObj.myAfterInline ) { List Page: After record processed: if ($data['sp_proposed_price'] != $data['sp_new_price_disc']) I have three fields in my table that I use to highlight changes to the user - spnewpricedisc, spproposedprice, spdelete. If the proposed price does not equal the new price, highlight the cell only in yellow. When these changes are done using inline edit, the page reloads (using the JavaScript function) and the new conditional formats are applied. This is a slight adaptation from the article that Sergey pointed me to when replying to my original post. Hope this helps someone :) Best regards, |