Can I hand the sys_id parameter into a widget without setting that value in the URL?

Kelly Logan
Kilo Sage

We would like to embed a particular catalog item on a page. The "SC Catalog Item" (v2) widget is working for this, but requires me to have the sys_id set in the URL. Is there a way to pass in this parameter to the widget by modifying the page so I don't have to create a new version of the widget just for this? 

It looks like the value is being handed in through input.itemDetails.sys_id to the Server Script.

We are on San Diego and are configuring the Employee Center for this.

1 ACCEPTED SOLUTION

TrevorK
Kilo Sage

If I understand correctly, you are looking to have a page within your portal site. You want that page to load a specific Catalog Item every time it loads. The page will only load this one Catalog Item.

We are using the SC Catalog Item widget and have used the Additional Options within the Widget Instance for this. Below is a snapshot of what it looks like. The sys_id is the one where we pass in the specific sys_id of the item we want to use on the page.

find_real_file.png

There are quite a few options you can pass in (I deleted 5-6 from this screenshot so it fit) and I don't think it's documented that well if I recall.

View solution in original post

2 REPLIES 2

TrevorK
Kilo Sage

If I understand correctly, you are looking to have a page within your portal site. You want that page to load a specific Catalog Item every time it loads. The page will only load this one Catalog Item.

We are using the SC Catalog Item widget and have used the Additional Options within the Widget Instance for this. Below is a snapshot of what it looks like. The sys_id is the one where we pass in the specific sys_id of the item we want to use on the page.

find_real_file.png

There are quite a few options you can pass in (I deleted 5-6 from this screenshot so it fit) and I don't think it's documented that well if I recall.

That was precisely the solution I was looking for! Thank you.