- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2022 03:48 AM - edited 11-17-2022 03:50 AM
Hi,
I created new Tab within Contextual Side Panel:
Now, I would like to access data from the associated Record so I can work with them. How do I do that in UI Builder? Lets say, I would like to have simple Stylized text component showing current table name of the Record. How do I do it? The way I am trying on screenshot below is not working:
Thank you.
Jan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2022 10:55 PM
Hi,
Here is how you can do it. Each tab in contextual side panel behaves as a new page but the way to assign the parameters is different than normal pages in UI builder.
1. Open your contextual side panel tab in UI builder.
2. Click on "Body" component.
3. In Page Configuration panel click on edit besides properties.
4. Here you can create your properties to hold the data from parent record. For example here I created "recordSysId" to get the parent record sysid.
5. I can now bind this property to any data source from my parent record. All data sources are accessible here from record page. Here I am using Glide Form data source from Record page to get the sysId of record.
6. You can now access this sysid via @context.props.recordSysId in your tab.
ServiceNow Community Rising Star 2022/2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2022 10:55 PM
Hi,
Here is how you can do it. Each tab in contextual side panel behaves as a new page but the way to assign the parameters is different than normal pages in UI builder.
1. Open your contextual side panel tab in UI builder.
2. Click on "Body" component.
3. In Page Configuration panel click on edit besides properties.
4. Here you can create your properties to hold the data from parent record. For example here I created "recordSysId" to get the parent record sysid.
5. I can now bind this property to any data source from my parent record. All data sources are accessible here from record page. Here I am using Glide Form data source from Record page to get the sysId of record.
6. You can now access this sysid via @context.props.recordSysId in your tab.
ServiceNow Community Rising Star 2022/2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2023 09:56 AM
Hello @JagjeetSingh ,
How to refresh a contextual side bar component upon updating the record? Pls share some ideas
Thanks,
Vijayalakshmi P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2023 06:56 AM
Hello @Vijayalakshmi P ,
well, when we create components or pages, we don't refresh things. We change properties and everything that is bind to those properties refreshes automatically by the engine.
If you bind some data resource (for example) in your contextual side panel page to the SysID property of the record and this SysID changes, your data resource refreshes as well 😉
Jan