+ Start a Discussion
TCAdminTCAdmin 

s-Control field

Hello All,

I've made sControls that trigger with a custom button and have used the following code to refresh the orininal record.  I'm trying to create the same functionality with a custom sControl field so that the user doesn't need to click on the button.  I want the sControl to process the record and update the fields that need to be done.  Once that is done I wan tthe original record view to be refreshed so that the user can see what the new values are.  Is there a way to do this and if so, how?
Code:
The code I'm using if the users chooses to use a button to initiate

opener.location.reload();
window.close();

 

Ron HessRon Hess
if your scontrol is inline ( in a field) you should be able to use something like this

window.parent.location.reload();