Fuji: UI Pages are cached?

xMTinkerer
Giga Expert

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?

1 ACCEPTED SOLUTION

tltoulson
Kilo Sage

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.


View solution in original post

9 REPLIES 9

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


In this case, I would suggest contacting ServiceNow technical support.


Uncle Rob
Kilo Patron

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.


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


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:



Run UI scripts



I am sure you know this trick, Robert, but I thought I'd post it here anyway for others' reference.