Chadg
Apprentice

Create a People Picker from UMUser SmartObject

Create a category that you want to use to create the picker control.


 


Search for UMUSer in K2 Designer.


2996i640EBA92CE25FF0F.png


 


Right click the UMUser SmartObject and select Move To…


The category that you created earlier.


2997i88749B9D23435213.png


 


Decide what Properties you want to get back after you perform your search search.


I will use Get User method, which requires a Label as input.


2998i88CEE77E59763593.png


 


I tested this in the Smart Object Tester Utility


I will get back FQN, Name, Description, Display Name, Email, Manager, and Object SID.


I will use Display Name as the display in this example


2999iEFAF87C09D16984E.png


 


Create an Item View. I chose not to use the UMUser SmartObject as the data source, since I want to get the data to save somewhere else. (I won't show saving the data in this example)


 


Drag and drop the picker control on top of the form.


In the Properties Pane


Click on the SmartObject for the Data Source


Choose the UMUser SmartObject,


Get Users Method


Filter the properties that you want.


I choose the Name as the Identifier


And the DisplayName as the Display Propterty.


3000iA9A980E308F396E3.png


 


 3002i5315D49D4EC590B2.png


 


On the Rules tab click on When Picker is Resolving and press Edit Rule


On asynchronously populate Picker list control with data


Click (configure)


On the Label Name type in K2


3003i153A40617D41CF48.png


 


Click Finish,


Click OK,


Click Finish,


 


Run the view in a new window to test.


 


Click the Eye Glass


3004iC0D72EC74AC25A09.png


Type in bob, and click the eyeglass


3005i899C14682169A25C.png


Or Try typing no name at all, all the names should appear in the picker.

Reply
2 Replies
Rameshbabu
Apprentice

Re: Create a People Picker from UMUser SmartObject

Thanks Chadg. In the article there was "UMUser"smarobject is mentioned.

 

But i am not able to find that object in my designer. do i need create the smartobject.

 

Note : I am using K2 Five designer.

 

6353iFE73D31CE43C0330.png


umusersmartobject_2982.png
umusersmartobject_2983.png
0 Kudos
Reply
Vijay_k2
Apprentice

Re: Create a People Picker from UMUser SmartObject

Hi Rameshbabu,

 

You can find UMUser SmartObject in K2management->System->Management->UserManagement->SmartObjects->UMUser

 

Thanks,

Vijay

Reply