Hi All,
In the Engineering Workbench you can add new operations to a part/rev by clicking and dragging from the MOM > Engineering > Operation Master tab, to the tree view of operations on the left.
Currently, when an op is added this way, the last op that was selected stays selected, or the focus moves back to the first op in the list.
The request is to highlight the operation that was just added in this fashion, without moving the tab focus to the MOM >Operations > Detail tab. I want to keep the focus on the Operations Master tab, so I can keep adding operations, but I want to know which one I last added.
Ideally I am looking for a way to highlight one, or some operations in the tree view.
I thought I could tack this functionality on to my method directive, but it looks like it may need a customization.
This would have to be a customization. I would also pass this to support as an enhancement.
For the customization, maybe you can set the active row on a grid to be the item where RowMod=A or the highest oprseq.
A BPM can’t do a lot on the UI/UX side of things. While it’s a great idea to put logic in BPMs to make consistent data, it can’t replace what a customization can do for the user on the screen.
You will serve yourself well to grow in customizations.
I have done some searching, and have used the Infragistics site in the past. However, I can’t seem to figure out how to access the internal treeview held in the engineering workbench. The other topics I found here on treeviews didn’t seem to be very helpful.
I’m sorry. I just don’t know enough to use this information.
I believe that I need to do the following in a customization:
identify the event that is triggered when a new op is dragged into the op list.
when this event fires, find the native control for the tree view.
set the selected property to true for the op that was last added.
The GUID for the “methodTree” as the form calls it, is:“aa3bab29-2b72-4cc6-a1a1-2ba303797476” EDIT: I see that the GUID changes each time I reopen my customization. Again my ignorance is showing here…
So in my initialize block I think that I need to set an internal variable to this native control. Something like:
var myTree = (EpiUltraGrid)csm.GetNativeControlReference("aa3bab29-2b72-4cc6-a1a1-2ba303797476");
Is EpiUltraGrid the right control type? EDIT: I found that EpiTreeView is probably the better control type.
Once I have created the variable, how do I update the selected value?
What form event should I be tapping into for this?
Thanks!
How do I grab the current GUID for the native control? It changes every time I reload my customization. So I can’t hard code it, like I see most code examples do.