Genpact Cora Knowledge Center

Support

Create a Form Viewer Control

Overview

The Form Viewer control enables you to add any form view to a page without referencing a specific process.

Create a Form Viewer

  1. Create an ASPX file in the site root folder, titled MyPage.aspx.
  2. Open the file and modify it as necessary.

Sample MyPage.aspx File

This sample displays the Group Messages Grid control and Form Viewer control on the MyPage.aspx file. For the controls to work, you need to add a Register tag for each control on the page that you add. You can find these links in the Flowtime application in IIS.

<%@ Page Title="" Language="C#" MasterPageFile="~/LAYOUTS/Masters/Portal.Master" CodeBehind="Default.aspx.cs" Inherits="PNMsoft.Sequence.Runtime.Web.UI.Pages.Default" AutoEventWireup="true"  %> 
<%@ Register TagPrefix="sq" TagName="GroupMessagesGridControl"  Src="~/_controltemplates/Flowtime/GroupMessagesGridControl.ascx" %> 
<%@ Register TagPrefix="sq" TagName="FormViewerControl"  Src="~/_controltemplates/Flowtime/FormViewerControl.ascx" %> 
<asp:Content ID="Content" ContentPlaceHolderID="content" runat="server">     <div class="sqpt-container"> 
<div class="sqpt-grid-control"> 
<sq:GroupMessagesGridControl ID="GroupMessagesGridControl" PageSize="5" DisplayVariables="false" runat="server" />         </div> 
<sq:FormViewerControl ID="ReportsView" FormVirtualPath="~/SequenceForms/wf/WFSpace/WFName/FormName/ViewName.ascx" runat="server" /> 
</div> 
</asp:Content>