Maximo Open Forum

 View Only

 Menu.xml gets refresh after a database refresh is done

  • Administration
RJ Agnes's profile image
RJ Agnes posted 05-31-2023 10:16

Hi,

I need help to fix the issue that after my dev environment gets refreshed with prod environment data the menu.xml and library.xml also is refreshed. I created an additional menu entry in the help menu which is environmental details so I wish to have the updated menu.xml and library.xml be retained even after a data refresh is done to the database. 



Help Please. Thanks

Prashant Sharma's profile image
Prashant Sharma

When you are importing database back up ,rather than importing whole back up, you need to do table by table backup and exclude table storing XMLs which you don't want to refresh. Even if you do for it, you will still have problem in syncing all other xmls stored in same table.

B solution is to take backup of XMLs and import them after DB refresh either by MXLoader or by Manually as part of Post Refreshment activity. 

RJ Agnes's profile image
RJ Agnes

@ Prashant Sharma,

noted on that, may I ask if are you're familiar with the database table where the menu.xml and library.xml are stored?

Thanks

Martin Fabra's profile image
Martin Fabra

Hi @RJ Agnes! 

The table is maxpresentation. You can see both with the next query:

select * from maximo.maxpresentation where app in ('MENUS','LIBRARY')

Regards!

Julio Hernandez's profile image
Julio Hernandez

Rather than mess with the DB refresh, a better approach might be to structure the dialog that is displaying the environment information to read the information from somewhere where you can store the information for each environment and retrieve the information based on the current environment.  You could possibly create user-defined System Properties where part of the PropName is the DB Name and retrieve the appropriate record using a relationship that gets the MaxPropValue record corresponding to the PropName for the current environment.  How exactly to do that varies depending on your DB and, if Oracle, whether you're using a Containerized DB.