Related Catalog Item showing error

A77
Giga Contributor

Hello,

I have added Related catalog item widget to my sc_cat_item page. The widget is not displaying on the right side and producing some errors.

find_real_file.png

Could anyone please suggest what might be causing this issue?

 

Thank you!

1 REPLY 1

Jan Cernocky
Tera Guru

Hi,

it seems the options schema may contain some invalid info or it is missing at all.

It is weird that your widget shows error on line 44 since the code asking for table is already on line 34.

find_real_file.png

Have you modified the widget? Anyway try to follow these steps.

You can check what is defined in your options schema:

1. CTRL + Right click on any widget and select 'Instance in page editor'

2. In the top section in the tree select your widget instance (second from right)

find_real_file.png

3. Scroll down to Additional options, JSON format. On my PDI I have the following and it works perfectly. If you are missing anything try to back up the original and use this.

{
	"source_table": {
		"value": "sc_2_sc",
		"displayValue": "sc_2_sc"
	},
	"source_column": {
		"value": "sc_cat_item",
		"displayValue": "sc_cat_item"
	},
	"target_column": {
		"value": "related_sc_cat_item",
		"displayValue": "related_sc_cat_item"
	},
	"title": {
		"value": "Related Items",
		"displayValue": "Related Items"
	},
	"max_number": {
		"value": 5,
		"displayValue": "5"
	},
	"source_id": {
		"value": "",
		"displayValue": ""
	},
	"use_full_width": {
		"value": "false",
		"displayValue": "false"
	}
}