- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2015 12:00 PM
Hello developer peoples!
I have a ui page that I can't seem to make updates to. The UI page is called from a UI Action using this code:
function addRecipients(){
//Get the table name and sys_id of the record
var tableName = g_form.getTableName();
var sysID = g_form.getUniqueValue();
//Open a dialog window to select Approval Groups
var dialog = new GlideDialogWindow( 'xm_add_recipients' );
dialog.setTitle('Add Recipients');
// If we needed to pass info from here to the UI page...
// dialog.setPreference('sysparm_parm1', 'stuff here');
dialog.render();
//Make sure to not submit the form when button gets clicked
return false;
}
The UI Page itself has a ui_slushbucketon it, but I can get the same results without the slushbucket. For example, if this is my HTML in the UI Page:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:ui_form>
some stuff goes here
</g:ui_form>
</j:jelly>
Then I change it to this and hit save
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:ui_form>
Other stuff goes here
</g:ui_form>
</j:jelly>
The dialog still shows "some stuff goes here". The only way I can get it to change is to delete the UI Page and recreate from scratch with the new changes.
I know I am editing the right UI Page because if I add an onLoad "alert" call, I see the alert displayed as expected. It seems that only the html part of the UI Page is cached??
Any ideas?
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2015 12:02 PM
Hi Travis,
In the navigation filter, type cache.do or navigate to the cache.do page to clear the cache after you update the page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2015 11:51 AM
I am having this issue with my personal instance, except clearing the cache does not seem to fix it...
Build: Fuji
glide-Fuji-12-23-2014__patch3-04-07-2015_04-19-2015_2036
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2015 10:21 AM
In this case, I would suggest contacting ServiceNow technical support.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2015 10:34 AM
I haven't seen this on UI Pages, but Chrome keeps a death grip on UI Scripts that caused me all kinds of hurt. I had to do a full on browser cache flush. Not sure if that helps your particular issue (or yours either James McWhinney), but its worth a shot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2015 04:27 PM
Thanks, good idea but I have tried launching the page on an entirely different computer yet I still see the cached data.
I will open an incident with servicenow.
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2016 01:54 PM
As far as UI Scripts are concerned, the following article explains how to get the most recent version of a UI Script included into a UI Page:
I am sure you know this trick, Robert, but I thought I'd post it here anyway for others' reference.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/