Skip Navigation LinksALVAO 10.1Release NotesConverting custom forms and extensions from ALVAO 10.0 Skip Navigation Links. Skip Navigation Links Skip Navigation Links.


Converting custom forms and extensions from ALVAO 10.0

When upgrading from ALVAO 10.0, it is necessary to edit the existing custom forms and extensions. Edit the source files using the procedure described here.
If you are upgrading from ALVAO 8.2 or older versions, you first have to convert custom forms to ALVAO 10.0.

  1. If you use a custom implementation of the person selection field, rename the SuggestModel class to SuggestPersonModel.
  2. If a grid is used in the custom form, implement the GetSelCallRes(…) method in the class inheriting from the Grid.WebGrid class in the form source code.
    Implement the method as follows:
    public override Grid.Callbacks.SelectCallbackResponse GetSelCallRes(Grid.Callbacks.CallbackModel model, System.Web.Mvc.ControllerContext ctx)
    {
       Grid.Callbacks.SelectCallbackResponse resp = new YourSelectResponse(model, this, ctx);
       return resp;
    }

    Instead of using YourSelectResponse in the body of the method, use the actual name of the class inheriting from the Grid.Callbacks.SelectCallbackResponse class in your model.
  3. If you use the Area item in the custom form, adapt the form to this custom item using the ColumnsControl element.
  4. If you draw data from the vHdSectionManager, vHdSectionOperator, vHdSectionReader or vHdSectionSolver views in SQL queries, edit the queries so that they draw data from the HdSectionManager, HdSectionOperator, HdSectionReader or HdSectionSolver tables.
  5. If you use a DateTimeField type field in the template, add customFormDatetime = true to its parameters.
  6. If you want to display the form sending button in the command panel, add the "btn-command" class to the button.
  7. If you use custom forms for request approval or rejection, edit their .cshtml files as follows:
    • At the beginning of the .cshtml file, set the Layout variable to Layout = "~/Views/Shared/_ApproveOrRejectCustomFormLayout.cshtml".
    • Replace
      <button tabindex="1" type="submit" class="btn btn-primary btn-command" value="">@ViewBag.ApprovalActionLabel</button>
      with the following code:
      <button tabindex="1" type="submit" class="btn btn-approval btn-command" name="approve" value="Approve">@Localization.Approve</button>
      <button tabindex="1" type="submit" class="btn btn-approval btn-command" name="reject" value="Reject">@Localization.Reject</button>

 

Did not find what you were looking for? Ask our technical support team.