I have two different menu items in the Epicor Menu. They have a customization of UD40 attached to them. The only difference between the customizations is one allows panels to pop out and one doesn’t…basically it is just based upon user preference. At this time I am having to maintain two different customizations and I would like to just have one. I would like to be able to identify which menu they clicked and then set the tab floating preference based upon the Menu name they clicked. How would I go about determining which menu item was clicked? So for instance if they launched Menu item “CS_CSD1” it would allow tab floating and if they clicked “CS_CSD2” it wouldn’t.
I may suggest the following. We did this as we wanted to have job trackers without cost info, and the feature to hide fields was buggy in our earlier version.
I created a special JobNoCostGroup. Users who we do not want them to have access to costs info, are added to this group. Upon loading the form, I go read if current user is part of the no cost group, and proceed to disable the cost info. If user is not part of the group it opens normally.
This way avoided me the need to sustain two customizations for any change needed to be made.
Pierre
You can try getting the Menu ID
string MenuID = string.Empty;
MenuID = ((EpiDataView)oTrans.EpiDataViews[“CallContextClientData”]).dataView.Table.Rows[0][“ProcessID”].ToString();
Based on MenuID, you may write your relevant code.
Hope this works !