Clear global customization cache

Here is a refresher on how to clear global M3 personalizations for non-administrators:

mforms://_command/?value=clear custcache

M3 personalizations

I am currently doing maintenance of M3 personalizations (hyperlinks, conditional styles, shortcuts, labels, tab orders, views, show/hide fields, and scripts), for all users (role GLOBAL_CUSTOMIZATIONS):
2

Maintenance

To change a personalization, either I use the Personalization Manager (for that I need the administrator role), or I change the file with a text editor directly in the MNEDATA folder (for that I need read/write access to the MNEDATA folder):
4
3

Clear customization cache

To clear the global customization cache, I use the Net Extension Manager > Clear customization cache (for that I need to be administrator):
5

Non-administrators

There is another environment where I am not administrator, there is no Net Extension Manager, and yet I need to clear the global customization cache. I realized I can simply execute the clear command, and it will clear the global customization anyway:

mforms://_command/?value=clear custcache

6

7

That’s the actual command behind the Clear button.

I traced the calls, from the Smart Office Dlls, to the MNE server Java classes, and it seems to really do a global clear, even without being administrator:

MForms.dll
MForms.Services.Applications.Admin.NetExtensionManager.IComponentConnector.Connect
MForms.Services.Applications.Admin.NetExtensionManager.OnClickClearCustCache

mne-app-10.2.2.0.jar
com.intentia.mc.command.RunCmd.doChangeEnvironment
com.intentia.mc.mgmt.ServerMgr.clearCustomizationCache
com.intentia.mc.customization.CustomizationManager.clearCentralCache

Maybe there’s a good explanation for the lack of authorization; or maybe I am administrator somewhere afterall. I haven’t read the administrator’s guide or looked any further.

That’s it!

Related posts

Published by

thibaudatwork

ex- M3 Technical Consultant

3 thoughts on “Clear global customization cache”

  1. Question… I hide a field globally… but I want it to show for a very select few.

    I have disabled user personalisations so I am unable to give rights to these users just to show this field as once I take away the rights global kicks in again.

    Is there a script to I can apply to a user to do this?

    Thanks in advance

    Like

    1. Hi Damian. I recommend the Smart Office Administration Guide with the section on the user/role/global personalization precedence. Maybe there is a way to do your requirement with just personalization; I don’t remember from top of my head. Otherwise, with scripts it should be possible. Indeed, I think the MNE response that Smart Office receives to render the panel is always the same, regardless of personalizations. And then Smart Office applies the personalization. Thus, you could develop a script that un-applies the personalization for just the select users, i.e. un-hide the fields in your case.

      Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s