I am developing a custom non-conformance module in E9. It uses parent and child tables because there could be multiple defects under a single non-conformance record. When the New drop down is expanded, it reads ‘New Parent’ and ‘New Child’ (see screenshot).
I want to customize this text to say ‘New NCMR’ and ‘New Defect’. Is this possible? If so, how is it accomplished?
This does not exactly get you there but it has enough information to help you figure it out. If you still struggle with this I can definitely post a code snippet to get you started.
Also, here is a simple example from a form customization with UD10 added.
Noitice the original and new lines for the “.AddText =”
private void InitializeUD10Adapter()
{
// Create an instance of the Adapter.
this._ud10Adapter = new UD10Adapter(this.oTrans);
this._ud10Adapter.BOConnect();
// Add Adapter Table to List of Views
// This allows you to bind controls to the custom UD Table
this._edvUD10 = new EpiDataView();
this._edvUD10.dataView = new DataView(this._ud10Adapter.UD10Data.UD10);
this._edvUD10.AddEnabled = true;
// this._edvUD10.AddText = "New UD10";
this._edvUD10.AddText = "New RPR";
if ((this.oTrans.EpiDataViews.ContainsKey("UD10View") == false))
{
this.oTrans.Add("UD10View", this._edvUD10);
}
And you’ll want to add the new name to the case too
// case “EpiAddNewNew UD10”:
case “EpiAddNewNew New RPR”:
Dan - Thanks for the link. It was very informative and it got me pointed in the right direction. I was able to figure out how to do this after reading through that article and doing a little investigation on my own. Since the New tool had a drop down, I had to figure out how to access it’s children and change the .SharedProps.Caption property for both of the children. Here’s the final code:
// This method is called when the form is first loaded
private void UD101Form_Load(object sender, EventArgs args)
{
PopupMenuTool newMenuTool = (PopupMenuTool)baseToolbarsManager.Tools["NewMenuTool"];
newMenuTool.SharedProps.Caption = "New NCMR"; // This set the tooltip when the mouse hovers over the New button
newMenuTool.Tools["EpiAddNewnewParent"].SharedProps.Caption = "New NCMR"; // This changes New Parent to New NCMR
newMenuTool.Tools["EpiAddNewnewChild"].SharedProps.Caption = "New Defect"; // This changes New Child to New Defect
}
And here’s the result:
If anyone is trying to do the same thing and you’re having trouble, contact me and I’ll try to help.
Bruce - I didn’t have to go that route, but thanks for the response.