cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
elysy
New Member

Showing View Selector and Command bar on Subgrid Custom Compnonent

Hi!


I'd like to retain the view selector on the subgrid when I'm applying a dataset custom control just so I can switch between my custom control and ootb subgrid. This should be possible because when I set the ootb subgrid as the default control and I switch to my PCF control thru the subgrid view selector, the whole command bar still remains.
Any advice on how I can make this to work?

Cheers!

29 REPLIES 29

This work is being picked up.

I guess the check-in could be at about next 2 weeks. And it needs  about 6-7 weeks to release to North America area.

So I would say it needs about 2 months for this to be landed

How should i make the command bar work as OOTB like if i have any PCF control for the opportunity homegrid. On select of record i should be able to see the close as lost ,close as won button.

If you use setSelectedRecordIds the command bar will show up the commands available for those records

https://docs.microsoft.com/en-us/powerapps/developer/component-framework/reference/dataset/setselect...

Very Thanks it works @ScottDurow 

@AnqiChen 

Is there any way we can show jumpbar for custom control applied to the homegrid.

 

When you say ‘jump bar’ do you mean ‘command bar’ - the bar with the buttons on it like delete and edit?
If so, you control visibility using the manifest - but it is for the whole control. You would need to create different controls if you wanted to show it on the home grid but not on other grids.

<data-set name=”foo” cds-data-set-options=”displayCommandBar:true;displayViewSelector:true;displayQuickFind:true”>

No I mean the bar shown in the screenshot.

Ah - got it!
There isn’t anyway to show that for PCF dataset controls. I think this is because it is actually part of the grid control - so you would have to implement it yourself. It would be fairly easy to do - you would use the setFilters to add a condition.

@ScottDurow 

Thanks for quick response Scott.

Yeah will probably try that.

 

hi Scott/Bhuvita,

 

Thanks Scott for providing insights. Yes, the 'jumpbar' could be achieved within the control.

 

For our implemetation, the 'jumpbar' is outside of the control and one could actually reuse it.

On the control's manifest

<data-set name=”foo” cds-data-set-options=”displayCommandBar:true;displayViewSelector:true;displayQuickFind:true”>

 

You could insert another keyword 'displayIndex:true', then it should show jumpbar on HomePageGrid. Please note:

1) I am not that certain that we will expose this officially. If not exposed, then we could still use Scott's suggestion.

2) There seems a bug that the jumpbar is rendering on side. I will follow associated team. Attach is current status of 'jumpbar'

2) On subgrid, we need also enable 'jumpbar/index' in the field designer

 

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (1,959)