How to read data from SOW record in contextual sidepanel custom component
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-13-2024 02:06 AM - edited ‎10-13-2024 02:15 PM
Hi, I'm building a custom component using next experience UI framework, and I want to add this component as one of the tabs on the contextual sidepanel that appears inside Service Operations Workspace when looking at an incident (Record SNC page). I want the component to read the information on the incident record that's being displayed, but now sure how to access that data inside my component code.  
Right now I have a simple hello world component deployed to my personal developer instance that i successfully added through UI builder, but would like for it to reflect the information on the record. I was looking into action handlers but wasn't sure if that was the right way to proceed - ideally i'd like some api call or action handler inside my index.js that can read the current record. Does anyone know how I can do this inside my component code (not through UI builder)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2024 09:36 AM
I believe you are trying to add a tab to the "SOW - Sidebar tabs top" Page collection?
If so you can navigate from this panel to the Page Collection overview here and you will see a page like this:
 
Here you can add a new tab, this new tab will have full access to the form controller from the parent record page.
You can pass data from output props on the form controller into your input props on your custom component.
 
 
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2024 02:27 PM
Thanks for the reply! To clarify, I'm trying to add this as a tab to "Contextual Sidebar"
I tried to follow your steps - i clicked "Edit content", added a sub-page (which I believe is essentially a new tab), and tried to pass data in. However, when I try to create a property and bind data to it, I'm seeing nothing inside the "Data resource" tab:
Is there something else I need to configure to access the data resource?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-14-2024 02:35 PM
Thanks for the reply! Just to clarify, I'm trying to edit the "Contextual sidebar" component in SOW:
I tried to follow your steps - I clicked "Edit content" and added a sub-page (which I thought would act like a new tab, but maybe doesn't). But inside this new tab, when I try to add a property and bind data, I see nothing inside the "Data resource" tab. Is there something I need to do/configure in addition to access the data resource?