How do I limit visibility of sidebar component
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I've created a page collection and added it to the sidebar of my workspace. The data in the page collection should only be displayed if the record comes from the SC_TASK table. How can I control visibility for one specific icon? I want the others to display.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You use the controller to pass values that can be used in the variant conditions. The component will only show icons for valid pages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
lauri457 is only part of the answer - I still had issues with the limit using just her instructions. I found some instructions (I don't remember where) that stated you need to create a Screen Condition. To do that:
1. In UIB with the page open, click Settings.
2. Click Open Records > Page Collection. This will open UX Extension Point in the core UI.
3. In the UX Screens related list, select the screen name where you want the condition. This opens UX Screen in core UI.
4. Add your condition.
What I really did was type sys_ux_screen.list in the navigator, then selected the screen I was working on. Two clicks vs. four.
I'm not sure if it works because I added the Screen condition or if it works because I have a combination of the Screen condition and the page condition like lauri457 recommended, but it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago - last edited 2 weeks ago
Happy to hear that you have it working but I would note that [sys_ux_screen] is the variant record so the conditions in the screen condition field are the variant conditions in ui builder. You should be able to confirm this by navigating to the variant settings in ui builder now that you have it working. Also if you look at the view parameter from the url when you are in the variant settings route in ui builder you can see that it is the sysid for the [sys_ux_screen] record
You are just editing the record directly in a form. See this screenshot of the ux screen record of my last post
You could also navigate directly to the record from that context menu in your second screenshot by clicking variant record instead of page collection.
