Skip to end of banner
Go to start of banner

Edit Person Attribute

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Objective

Create a workflow that gives us the ability to edit the properties of a Person in EmpowerID

User ID: Test

Password: P@$$w0rd

  1. Start the 20331B-NYC-DC-05 virtual machine. Wait for the virtual machine to display the Desktop.

  2. On your Desktop, Right-click on Workflow Studio (WFS), and then click Run as administrator.

  3. Wait for WFS to start and enter your credentials.

 

  1. In Solution Explorer, right-click on the Developer Packages folder, create a new folder called “DemoLabs” and click the Ok button.

 

  1. Add New Folder dialog box will appear from it; select the following options.

  • User Interface > Lookup Control

  • User Interface > Forms

  • User Interface > UI Pages

  • Workflows > Applications

And click the Ok button.

  1. Expand the Developer Packages folder, find the DemoLabs folder, expand it under the DemoLabs folder, expand the User Interface folder right-click on the Forms folder, hover your mouse on the New User Interface option and Click on Form.

  1. Wait for the Form designer to be loaded.

  2. Click on the Save button to save your Form and give it the name Training_EditUserForm.

 

  1. Right-click on the Form Data, then click on Add Object and go to Rbac Components tab. From there, select the Person component and click on Add button.

 

 

  1. Double-click on Person1 and rename it to ObjectivePerson.

  1. Now expand the ObjectivePerson component and drag and drop the following fields/columns on the Form Designer.

  • FirstName

  • Last Name

  • Street Address

  • City

  • Postal Code

  1. Now double-click on Tab1 and rename it to Person Info, then double-click on Tab1Section1 and give it the name Person Information, then double-click on Tab1Section2 and give it the name Address Information. Lastly, double-click on FirstName and LastName fields and put a space between them.

  2. Now right-click on the First Name and Last Name text box one by one and set the IsReadOnly property to true.

  3. This is how your final form will look like

  4. Now click on publish button to publish your Form. The publishing dialog box will appear. Click on the Next button twice to Publish the Form.

  1. Once published successfully, click on the Ok button

  1. Now, it will ask you to restart the workflow studio. Click on the Yes button.

19. Once workflow has been restarted it’s time to create a lookup control.

  1. Expand the Developer Packages folder, find the DemoLabs folder, expand it under the DemoLabs folder, expand the User Interface folder right-click on the Lookup Controls folder, hover your mouse on the New User Interface option and Click on Lookup

 

  1. Wait for the Lookup designer to be loaded.

  2. Click on the Save button to save your Lookup and give it the name Training_EditPersonLK.

 

  1. From the Component Object, select PersonView, and from the Data Method, select the GetAllSearchAdvanced method.

 

  1. Click on the Lookup Designer from the top bar and select the Set Grid Type option.

  1. The Set Grid Type dialog box will appear from the dropdown select the Person and click on the Ok button.

  1. Now click on publish button to publish your Lookup. The publishing dialog box will appear to click on the Next and then Next button again to Publish the Lookup.

  1. Once publish successfully click on the Ok button

  1. Now it will ask you to restart the workflow Studio, click on the Yes button.

  1. Once workflow studio has been restarted it’s time to create a workflow and placed our forms and lookup controls onto it.

  2. Expand the Developer Packages folder, find the DemoLabs folder expand it under the DemoLabs folder, expand the Workflows folder right click on the Applications folder, hover your mouse on the New Workflow option and Click on Flow Chart Workflow.

  3. Now, first drag the Lookup control onto your form, and in its description property, write Load All Users. Then, drag the Form control onto the form, and in its description property, write Edit Person Attribute. Lastly, drag and drop the EditPersonMultiOperations activity onto your form, and in its description property, write Update Person Attribute. Next, connect all three of these activities with lines. Please refer to the screenshot below

  • No labels