Skip to main content

Hello all,

I'd like to search list and display relevant item/items. I have list where one of the column is "User" - where field type is Person or Group. In the form I placed People control and List view. I'd like based on People control to find and display relevant items in the list view. Do you know how can I achieve this?

Thanks

Add a list view control to your form and in the configuration use the filter options to filter specified column by the named control on your page for user.

in this example I am filtering where created by is logged on user:


Thanks for answer. Yes it should works but I need filter by user from People control. I found workaround. First of all I use calculated value control to derive Preferred name from People control next using Java script  copy this name to the edit control (it is not possible to use Calculated value control directly in the "filtered by value" field - probably bug. I saw some comments regarding this topic) and use this control in the "filtered by value" . Finally list view must be refreshed. I created JS function with all steps (copy to edit control + page refreshing). For refreshing I call __doPostBack() but it refreshes whole page. Maybe someone knows hot to refresh only List view control?

I am not satisfied with this solution even it works correctly. Any other better solution are welcome


Marek,

I am doing the same thing you are for the list view. 

Have you found a way to filter without doing a postback or how to refresh the ListView only?

Thanks,

-JC


Reply