Configure the SavePanel (type)
Create labels, NetLogic, context object, and a button.
Prerequisites:
Set the default external code editor. See Set the default code editor.
- Create a panel title label:
- In theProject viewpane, right-clickSavePanel (type)and select .
- Hover-over the label, select, and enter
PanelTitleLabel. - In thePropertiespane, set theTextproperty value toSave Panel.
- Add a NetLogic that logs different messages based on the option selected from the dialog:
- In theProject viewpane, right-clickSavePanel (type)and select .
- Hover-over the NetLogic, select, and enter
ConfirmationNetLogic. - Double-click the NetLogic.An external editor opens.
- Replace the existing code with the following code:#region StandardUsing using System; using FTOptix.Core; using FTOptix.CoreBase; using FTOptix.HMIProject; using UAManagedCore; using OpcUa = UAManagedCore.OpcUa; using FTOptix.NetLogic; using FTOptix.UI; using FTOptix.OPCUAServer; #endregion public class ConfirmationNetLogic : FTOptix.NetLogic.BaseNetLogic { [ExportMethod] public void SaveLogic() { Log.Info("Saved!"); } [ExportMethod] public void CancelLogic() { Log.Info("Cancel!"); } }
- Save the code.
- Create a confirmation dialog context object:
- In theProject viewpane, right-clickSavePanel (type)and select .
- In thePropertiespane, set theMessageproperty value toDo you really want to save?.
- Create a save button:
- In theProject viewpane, right-clickSavePanel (type)and select .
- Hover-over the button, select, and enter
SaveButton. - In thePropertiespane, set theTextproperty value toSave.
- In theEventspane, next toMouseClick event, selectand select .

- UnderInput arguments, create a dynamic link between theDialogproperty and .
- UnderInput arguments, create a dynamic link between theAliasNodeproperty and .SUGGERIMENTO: You can select thevalues from the@AttributeAttributedrop-down menu at the bottom of the dialog.
Fornire un feedback