function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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();