Step 4: Add Save, Cancel, and Help buttons

After the code you added to the else statement in Step 3: Add code to the if and else statements, add the below code to display Save, Cancel, and Help buttons.

  1. Add code to display a Save button.
    The Save button refreshes the screen and passes a value to the created hidden field.
    string sUrl ="javascript:document.EntryForm.HiddenMode.value='2';";
    AddSubmitButton("Save", "Save.gif", sUrl);
  2. Add code to display a Cancel button.
    The Cancel button calls the RunEntryScreen method provided in your custom .NET DLL (ThisDotNetDll). You will define the RunEntryScreen method later inStep 5: Edit the Base.cs file .
    AddUrlButton("Cancel", "cancel.gif", UrlDotNet(ThisDotNetDll, "RunEntryScreen"));
  3. Add code to display a Help button.
    This button links to a topic in Help.
    string strHelpUrl = "/Main Menu/Default_CSH.htm?href=AI_FAQs.html";
    AddHelpButton(strHelpUrl);

    Alternatively, you can use this syntax: 
    AddHelpButton ("help.htm")
    This gives you access to the list of help files in inline translation mode. For more information, see the System Administrator Help.

Now edit the Base.cs file as described in Step 5: Edit the Base.cs file.