Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Catalog Checkout widget -Requested for field

Joyce W
Giga Expert

when you order an item from the portal, SC Catalog Item widget calls Catalog Checkout widget(id= sc-checkout)

I want to change data that Populates for the field Requested for

I want data in that field to be from specific variable on the item.

where on Catalog Checkout widget can I modify the code?

find_real_file.png

6 REPLIES 6

Soumalyo Dasgup
Kilo Guru

Hi Joyce,

'Request For' field is the 'sn_record_picker' control. You can refer below link for more details.

Reference Fields with the snRecordPicker Directive

The control is displaying data from 'sys_user' table (display field: name & value field: sys_id). You need to remove these settings and assign the required value from the variable which is available in UI using client script.

If you have a list variable then you can use ng-repeat to display those values.

Thanks.

Thanks Soumalyo.

I do not know how to accomplish your suggestions. I am new to scripting.

I am also wondering why I need to use client script while the error is on Portal view. RITM table responds correctly even if portal displays the wrong name.

I do know that my solution lies in these lines of code on server script of Catalog Checkout widget

Do you know how I can fix it.?

This is New York version.

find_real_file.png

 

I have the same question as well. Not sure how we can implement this.

Dear Joyce,

I am aware some time has passed ever since you asked your question. However, I stumbled upon it, and, after a day of painful code crawling in finding an answer to that exact same question, please let me enlighten you with my findings:

The answer lies in the data object, which is one of the global data sources to find in this scope. If the script debugger has a good day, it will give you a revealing insight.

Screenshot 2024-03-27 at 15.13.07.png

As you can see, you can use

data.item.fields

 to get to the honeypot. I hope this helps you or somebody else on their journey.