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.
- If you use a custom implementation of the person selection field, rename the SuggestModel class to SuggestPersonModel.
- 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.
- If you use the Area item in the custom form, adapt the form to this custom item using the ColumnsControl element.
- 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.
- If you use a DateTimeField type field in the template, add
customFormDatetime = true to its parameters.
- If you want to display the form sending button in the command panel, add the "btn-command" class to the button.
- 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.
|