Uni Selector Field in User - Settings

Delford Chaffin asked on December 1, 2014 22:47

System: Kentico v7.0.103

I have a custom table that hold a list of practice areas. This table has two columns - the ItemID and a PracticeAreaName (Text-512-Text box) field.

In User - Settings, I'm trying to use the Uni selector form control to allow multiple practices areas to be assigned to a user. That field is set up as follows:

Attribute type: Text Attribute size: 1024 Form Control: Uni selector Object type: my.practice_areas Return column name: ItemID Object site name: blank Selection mode: Multiple Button Where: -blank- Order by: PracticeAreaName ASC

Now, when I go to the user's Custom fields tab, I see nothing beside the label. It's complete blank.

What am I missing?

Thanks, Delford

Correct Answer

Brenden Kehren answered on December 1, 2014 23:39

Try using a different name in your object type like customtableitem.my.practice_areas

0 votesVote for this answer Unmark Correct answer

Recent Answers


Delford Chaffin answered on December 1, 2014 23:52

Huh ... well, that worked to get the correct data. Now, I see where it shows "Return column name" and I have ItemID selected to store that, but I see no way to control the display. When I have it in multiple mode, the popup only lists the GUIDs instead of the name of the practice area. Is it possible to control that display as well?

Thanks!

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on December 2, 2014 01:17

I believe the Return column name is the ID that is stored (FK relationship) and there should be an "Additional columns" field where you can enter the columns to be visible in the list.

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on December 2, 2014 21:06

The Display name format field can accomplish what you want. Just place a macro condition in to display the field instead of the guid or id.

example: {% DISPLAYNAME %}

0 votesVote for this answer Mark as a Correct answer

Delford Chaffin answered on December 2, 2014 23:50

Ok ... I finally see that. I completely overlooked the Advanced/Simplified toggle all the way to the right. I get why Additional Columns would be hidden in that, but not Display name format.

Oh well, thanks!

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on December 3, 2014 00:49

No worries Delford, I forget about that toggle more times than not. Love the extra settings/properties but wish the default was to show vs. hide.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.