List Display Control shows Value instead of Display, when Display value comes from associated SmartObject

  • 16 February 2021
  • 0 replies
  • 108 views

Userlevel 5
Badge +20
 

List Display Control shows Value instead of Display, when Display value comes from associated SmartObject

kbt155254

PRODUCT
K2 Five
TAGS
K2 SmartObject Integration
SmartObjects
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Issue

The List Display Control shows the Value instead of the Display, when the Display value comes from an associated SmartObject.

Reproduction steps:

  1. Create 2 SQL tables which both have ID columns to configure an association between them. Sample data structure: Table A Projects Project_ID (int) Project_Name (nvarchar) PM_ID Table B PMs PM_ID PM_Name. Populate the tables with some data.
  2. Create 2 SmartObjects based on these tables. Generate a default list view from your main table.
  3. Edit the List View and add a List Display control onto it and configure as follows: Data Type - Association Data Source - SmartObject - 2nd SmartObject/table Display - Name
  4. Save and run the view - it will be displaying the Value not the Display.

Symptoms

The List Display Control does not show the configured Display, but shows the Value instead.

Resolution

After generating an editable list view, if you run the view, it works.

When the view is edited and the reference column (Projects.PM_ID) is changed to "List Display" type, the "Field" property in Details is reset to "None". The correct value for it should be the ID of the second table (PM_ID). See the sample screenshot below - the highlighted property needs to be set:

Image

You have to ensure that when the reference column is changed to List Display, the field property is set to the ID of your second SmartObject. When you perform this configuration as described above, it gets reset to None initially.


0 replies

Be the first to reply!

Reply