Hi Folks,
We have a parent menu object with menu items and toolbar items. There are other menu objects which are inherited from the parent menu and being used across the application.
As per recent business change we want to hide/unhide a menu item (m_hidemenu) in parent menu based on a configuration value saved in database.
To achieve above I added a function (mf_set_visibility (ref menu)) in parent menu and added post call, using Edit source, to function (mf_set_visibility) under m_hidemenu.create (Edit source) section of parent menu object.
Above implementation works fine BUT
If you make another simple change to menu (parent menu) using UI and save it, the code written in m_hidemenu.create section is deleted.
I understand that PB is rewriting the UI and therefore the custom code in .create is being deleted. I am just wondering is there a way to stop it, it is PB IDE issue or there is no way. Your help, thought and suggestions are highly appreciated.
Regards
Faisal