I have a display menu item, when clicked it opens a dialog form.
Now this menu item appears on two tabs
When clicked on the first one, i want the dialog to appear as normal where i fill some fields then click ok (and there is some logic on the ok method)
But when this menu item is clicked from another tab, then i don't want the dialog to appear and fill some fields, i want to pass the value of one of the fields by code and run the logic on the ok method directly. how to do that?