Reload specific value in list view on celledit via client script

Jeff Krueger1
Tera Expert

I am trying to get the total column to show the new value after a cell edit in list view on time cards.   I'm able to do this with a reload on celledit of the entire page, but if there's a way to script just the reload of the total field itself, this would be much better.   Does anyone know of a way to do this?

7 REPLIES 7

xiaix
Tera Guru

I'm not sure it's possible in list view.   I just created a test business rule that didn't update the list display value when I changed a cell value:



find_real_file.png



find_real_file.png



Granted, it did alter the "Total", but I had to Refresh List for the display to change



find_real_file.png


Thanks David, yes that is where I am at as well.   I created a client script onCellEdit which reloads the entire form and does refresh the total column that way, but it's certainly not ideal and somewhat disruptive to the user.   I'm hoping there's a way to only reload that specific column/value.   I didn't think there's a way for it to work technically in the list view either, but I have actually seen the total number update itself dynamically onCellEdit, intermittently and without any logic as to why or why not.....



Right now I just have a UI Action button to reload the list and refresh the total on demand as a work-around.


Jeff, we are having the same issue.   For some reason the days (Monday, Tuesday, Wednesday) update their respective totals on the Time Card list view, but then do not reflect in the Total column for the week.   Can you share the steps you went though and the code to add the UI action to the Time Card list view?


Certainly!   We are using UI Actions for a few very handy things, default card sets, a couple of quick cards for project and HR categories, and the refresh total button.   Our users prefer to enter their time through the list view for the most part, and this allows them to do it all without having to open the form.



find_real_file.png



The action name for the UI Action is "sysverb_new" and the script is really simple:



window.setTimeout(reload, 500);



function reload(){


location.reload(true);


}