I have four Galleries. I want the visibility of each controlled
by the contents of each gallery's DatePicker. If the DatePicker
is blank hide the gallery.
Each DatePicker has a version of the following formula.
If(!IsBlank(Edit_PO_Reference_ID_Fld.Text), ThisItem.First_Purchase_Order_Revision_Date,Blank())
The only gallery that has a blank DatePicker (which is also
blank in the SharePoint list) is Gallery3, yet all Galleries are
visible. I can't figure out how to control the visibilities of the
galleries.
If I change the formula to !IsBlank...all of the galleries are
hidden.
What am I missing?
Goal, is Gallery DatePicker is blank hide Gallery.
Solved! Go to Solution.
Ok, so the description of sub-galleries that you gave implies that there are ten separate galleries embedded inside a parent gallery, if that is the case, then you only need to reference whatever the Items property is of each of the ten inner galleries within the Visible property of each of the inner galleries.
So let's say that gallery 1 of 10 has an Items property of:
LookUp(
Listname,
RelatedColumnName = ParentListName.RelatedColumnName
)
Then Gallery1.Visible =
!IsBlank(
LookUp(
Listname,
RelatedColumnName = ParentListName.RelatedColumnName
).OriginalPO_Purchase_Order_Revision_Date
)
and for the second gallery (which I think is the first correction:
gallery 2 of 10 has an Items property of:
LookUp(
Listname,
RelatedColumnName = ParentListName.RelatedColumnName
)
Then Gallery2.Visible =
!IsBlank(
LookUp(
Listname,
RelatedColumnName = ParentListName.RelatedColumnName
).First_Purchase_Order_Revision_Date
)
etc
etc
etc
I don't know what the Items property is, so you'll need to change that to whatever yours is for each of the galleries and then wrap an !IsBlank around them like I've done above
@iAm_ManCat |
My blog |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
Oh, no need to focus too much on that - I said "let's say that", as in, hypothetically.
What you should do is use the code for the items property of each sub gallery instead of that lookup I provided, I just needed something to show you what you need to do Around that code to use it as the visible condition
@iAm_ManCat |
My blog |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
Yeah I would throw a flexible height gallery in if you want the height to be variable, then you can define the Y value of each subgallery based on the value of Self.Visible
If(Self.Visible, (existing y value), 0)
as the flexible height gallery will usually use the max y value regardless of visible status, so also worth setting the height of the flexible gallery to a conditional value based on whether 0/1/2/3/4 revision galleries are visible like:
If(
Gallery5.Visible,
350 //max height,
Gallery4.Visible,
300,
Gallery3.Visible,
250,
Gallery2.Visible,
200,
Gallery1.Visible,
150
)
//I don't know what your height values will be, you'll need to tweak that - also don't know the gallery names so replace those
In terms of the background Colour - I would guess you either have some kind of object behind the gallery
..or its possible you have some kind of TemplateFill set in the top-level gallery, although I'm not sure that works out as you said it only refers to one item sop there's likely only one row.
@iAm_ManCat |
My blog |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
Looks like I got the following to work.
Seems I needed full multiple 'If' statements, with true value and false value.
If(Fourth_PO_Revision_Gallery.Visible,750,600,
If(Third_PO_Revision_Gallery.Visible,600,445,
If(Second_PO_Revision_Gallery.Visible,445,300,
If(First_PO_Revision_Gallery.Visible,300,150,
If(Original_PO_Revision_Gallery.Visible,150)))))
I'm not sure if this is what you are looking for
DatePicker DefaultDate = ThisItem.'SP List Date Column'
Gallery Visible = If(IsBlank(DatePicker1.SelectedDate), false, true)
hope this helps
Thank you for your reply.
These things together are not delivering the desired results.
I have copied in your recommendation, but the visibility is still not working correctly.
The DatePickers have a version of the following formula. You can see in the example the Refence ID is RS00007310. If the Reference ID text field is blank set the DatePicker to blank.
If(!IsBlank(Edit_PO_Reference_ID_Fld.Text),ThisItem.Fourth_Purchase_Order_Revision_Date,Blank())
Here I have forced 'true' so you can see the DatePicker has content.
Here I am just using the formula, and even with data in the DatePicker the gallery is hidden.
Hi again @Phineas,
Could you please tell me more about your data source and how you are displaying it in your gallery.
Also, just making sure I understand your end goal. The first gallery should be visible if you have a value in your Reference ID input (The other 3 are still not visible at this stage?). Once a date is selected in the first gallery, gallery 2 should become visible (remaining 2 still not visible). And so on.
Data Source is a SharePoint list.
There is a main gallery, in which there 10-12 other sub-galleries. Each sub-gallery has a DatePicker (Date/Time in SharePoint) and Amount (Number in SharePoint).
The Galleries represent revision to a Purchase Order - in order.
The first is the 'Original PO' (DatePicker and Amount have Original PO in column name).
Every revision/gallery has its own DatePicker/Amount field - 1st Revision, 2nd Revision, 3rd Revsion, 4th Revision...
The revision are completed in order. Some purchase orders only have the 'Original PO', other may have the 'Original PO' and several revisions
The main gallery is filtered by a set of parameter so that only the revision associated with on purchase order are returned.
I have all 10-12 sub-galleries in the main gallery. I only want the galleries to appear as dates and amount are added. The order will always be Original, 1st, 2nd, 3rd...
Hi,
It looks like you are setting the visibility property at the gallery level based on the pictures provided.
If you want ONLY the datepicker to be visible/not, then you need to set the Visible property on the Datepicker control - what you have selected in the pictures is the row (which is effectively the gallery itself), and if my suspicions are correct, this is one gallery with four items in it? in which case setting the visibility at the parent level will affect all of them if ANY of the row items are blank, as you are affecting them based on the Control not on the row item.
Default property of Datepicker remains as you have it:
If(
!IsBlank(Edit_PO_Reference_ID_Fld.Text),
ThisItem.First_Purchase_Order_Revision_Date,
Blank()
)
Now change the Visible property of the Datepicker to:
Len(Self.SelectedDate)>0
Cheers,
Sancho
@iAm_ManCat |
My blog |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
Forgive the confusing images.
It is the nested galleries I want hidden. based on the content of each of their DatePicker fields.
There is one main gallery with a scroll bar. This will allow the user to scroll through all visible nested galleries.
All 10 nested galleries re always present in the main gallery, however the nested gallery should only be visable if it's DatePicker has a date in it.
Each nested gallery represents a potential revision to the original purchase order - the original order (always first), then 1 -10, always in that order.
if no revisions are ever created only the Original PO gallery is ever visible.
!IsBlank('specific revision DatePicker.selecteddate') has not worked.
Neither has If(IsBlank('specific revision datepicker.selecteddate),true,false).
I hope this is more clear, thank you.
Ok that's actually very useful info - can you elaborate a bit more on the nested galleries - are these going to be used to do the modifications or are we simply displaying/viewing the revision items that have been stored elsewhere?
The reason I ask is that your datepicker values are currently dependent on the values from the text field - but you are trying to show/hide the row (nested gal) depending on the datepicker values - which means that if your text field has no value then the datepicker will be invisible which means the row is invisible right? but that means there's no way for anyone to edit the items as they will be invisible by default for all rows that have no date, with no way to change them
@iAm_ManCat |
My blog |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
There is no 'edit' capability required for the nested galleries. They only display the saved data associated with each Revision.
Each revision type has its own line item in the data source, and there are columns for each revision date and amount.
Ok, so last question - what is the Default property for that text field set to?
(Edit_PO_Reference_ID_Fld)
@iAm_ManCat |
My blog |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08 23 @WarrenBelz 31 @DBO_DV 10 @Amik 19 AmínAA 6 @mmbr1606 12 @rzuber 4 @happyume 7 @Giraldoj 3@ANB 6 (tie) @SpongYe 6 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08 10@WarrenBelz 25 @DBO_DV 6@mmbr1606 14 @AmínAA 4 @Amik 12 @royg 3 @ANB 10 @AllanDeCastro 2 @SunilPashikanti 5 @Michaelfp 2 @FLMike 5 @eduardo_izzo 2 Meekou 2 @rzuber 2 @Velegandla 2 @PowerPlatform-P 2 @Micaiah 2 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8 SunilPashikanti8
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages