Form List Webpart Control
- Last UpdatedJun 10, 2024
- 1 minute read
Forms List Webpart Control will list out the forms available.
To add FormsList WebPart control using a panel
-
Before adding the Process Designer control in a panel, Create an ASP.NET Project in Visual Studio .NET.
-
Go to FormsWebPart.aspx.cs page.
-
Ensure to initialize the User Context based on r the steps given in Create User Context
-
Add the following style within the <head> tag.
<style type="text/css">
html, body, form {
height: 100%;
margin:0;
padding:0;
width:100%;
box-sizing:border-box;
}
</style> -
Modify <div> as follows:
<div style="width:100%;height:98%;box-sizing:border-box;">
-
In the underlying code, create a new instance of control and add the instance to the panel in the Page_Load as in the example below.
Skelta.Core.ApplicationObject application = new Skelta.Core.ApplicationObject("ListRepo");//Repository name
object loggedinUserId = "89b95a29-4931-44f1-8f4d-3e78036a936f";
Skelta.Entity.UserContext userContext = new Skelta.Entity.UserContext(loggedinUserId, application, "skeltalist");
Skelta.WebParts.FormList frmWebPart = new Skelta.WebParts.FormList();
frmWebPart.ID = "formListWebpart";
frmWebPart.ApplicationName = userContext.Repository.ApplicationName;
frmWebPart.LoginName = userContext.LoggedInUserId;
frmWebPart.Height = new Unit(100, UnitType.Percentage);
frmWebPart.Width = new Unit(99, UnitType.Percentage);
frmWebPart.InlineFormHeight = new Unit(90, UnitType.Percentage);
Panel1.Controls.Add(frmWebPart);
Different Properties that can be set for FormListWebPart Control
-
ApplicationName: Provide the ApplicationName or Repository Name for the workflow report to be viewed.
-
LoginName: Provide the User ID of the user who has logged in. Click here to view the different UserIdString formats.