User Profile
msuser1815
Copper Contributor
Joined 2 years ago
User Widgets
Recent Discussions
PnP - Search Filters template with multi-values
How do I update the template for PnP filters to separate the multi-values? This is what the filter options look like now: This is what the filter options should look like: The code I have now for the filter template is: <content id="data-content"> <style> .filter { margin-bottom: 30px; } .filter--value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; } .filter--message { padding: 10px; } .filter--name { font-weight: bold; font-size: 16px; color: rgb(119, 117, 111); padding: 0px 0px 5px; } pnp-filtercheckbox { max-width: 100%; } pnp-filtercombobox { flex: 1; } pnp-filterComboBox > div { display: flex; align-items: stretch; padding: 0; } .filterComboBox { align-items: center; flex: 1; } #{{@root.instanceId}}wrapper { max-width: 100% !important; } .ms-ComboBox { max-width: 100% !important; min-width: 100%; width: 100%; } .ms-ComboBox-container { width: 100%; } .ms-ComboBox-header { bottom: 0; height: 45px; position: fixed; top: 127px; } .ms-Fabric { width: 100%; } </style> <div class="template vertical"> {{#each root.filters as |filter|}} <div class="filter"> <div class="filter--name">{{filter.displayName}}</div> <div class="filter--value"> <pnp-filtercombobox data-instance-id={{@root.instanceId}} data-filter-name="{{filter.filterName}}" data-is-multi="{{filter.isMulti}}" data-show-count="{{filter.showCount}}" data-theme-variant="{{JSONstringify root.theme}}" > {{#each filter.values}} <option value="{{value}}" data-selected="{{selected}}" data-disabled="{{disabled}}" data-count="{{count}}">{{name}}</option> {{/each}} </pnp-filtercombobox> </div> </div> {{/each}} </div> </content> I've tried a few different options with the help of ChatGPT but did not get anywhere.509Views0likes0CommentsHow to open link in same tab from Power App / SharePoint list
I have a Power App that is integrated with a SharePoint list and would like to have a link open in the same tab when a user saves their changes or cancels them. I also added a button in the app that goes to a link but it opens in a different tab. Is there a way to get the link to open in the same tab when a user clicks the button and saves or cancels their edits? Using Launch(“URL”) works for the button but it doesn’t open in the same tab. Launch(“URL”) also doesn’t work for OnSave or OnCancel, I’ve also tried Launch(“URL”, {}, LaunchTarget.Replace) but it doesn’t open a new tab at all and doesn’t do anything. The current code I have for the app is below: Button OnSelect: Launch(“URL”) OnSave: SubmitForm(SharePointForm); Launch(“URL”) OnCancel: ResetForm(SharePointForm); Launch(“URL”)Bad Gateway Error on App that was working
I've tried restoring the app to a previous version, and deleting the data from the Data tab then re-adding it. I've also duplicated the Screen and tried to delete each card to see if the error had to do with a data card, but as you can see in the screenshot I'm still getting the error even after deleting every data card. There also haven't been any changes to the list columns recently so I'm not sure what is causing this error. Any help is greatly appreciated!SolvedAdd image from SharePoint list To PDF using Power Apps
I have a Power App that is integrated with a SharePoint list and having trouble trying to get the image in the item to show in the pop-up and the PDF. The app is set up so that when someone clicks on an item and then clicks on the PDF Icon, a pop-up will appear with a "Create PDF" button to create a PDF in their OneDrive documents folder of that item. The list has an Image column to upload an image to that item: Image in pop-up: Image in PDF: For the PDF icon, the OnSelect property is set to For the "Create PDF" button, the OnSelect property is set to I've also tried the code below but get an unexpected character error for the : after Base64String Set( varJsonAttachment, Base64String:JSON( (Image1.Image), JSONFormat.IncludeBinaryData ) ); PDFGenerator.Run(HtmlText1.HtmlText); UpdateContext({varShowHTML: !varShowHTML}) For the HTML text to pass into the PDF, the data HTMLText property is set to I've also tried <img src=data:image/png;base64," & Image1.Image &"> but that didn't work eitherHow to format a column in the PnP Search Results Web Part
I'm trying to get a column in my PnP Search Results web part to be blue or grey for the background color, depending on the content in the column. The Visit Page column should be grey if the page is coming soon or blue if the page is available, so it should look like this: For the Visit Page column, this is what I have: <!-- If the URL length is less than or equal to 53, make the background grey --> {{#if slot item root.slots.PreviewUrl.length <= 53}} <a href="{{slot item root.slots.PreviewUrl}}" target="_blank" style = " padding: 10px 10px 10px 10px; cursor:pointer; border:none; color:white; font-weight:550; background-color:#A4A4A4; text-decoration:none; font-size:14px; text-align:center; display: flex; justify-content: center; "> {{slot item root.slots.VisitPage}} </a> <!-- If the URL length is greater than 53, make the background blue --> {{else}} <a href="{{slot item root.slots.PreviewUrl}}" target="_blank" style = " padding: 10px 10px 10px 10px; cursor:pointer; border:none; color:white; font-weight:550; background-color:#0078d4; text-decoration:none; font-size:14px; text-align:center; display: flex; justify-content: center; "> {{slot item root.slots.VisitPage}} </a> {{/if}} When I try the code above I get a parse error:Alternative to PnP Modern Search Web Part?
Many sites in my company's tenant are using or have an interest in using PnP Modern Search Web Parts. We use it to filter and display documents or list items from different sites in the tenant. This web part is not the most user-friendly to configure and it requires the person who is configuring it to have Site Collection Admin (SCA) access. Because of this, the number of people that can configure the PnP Modern Search Web Part in my company is about 3. I was wondering if there are any other web parts that someone might know of where someone with at least Site Member access can accomplish the same thing as PnP Modern Search Web Parts, or a more advanced version of the Highlighted Content Web Part?1.9KViews0likes1CommentTitle gets erased after replacing it in Documents
I have a document library with major versioning turned on. If I populate Title on the document, save it then upload a new version of the document the Title gets erased. How do I carry all of the metadata/properties forward to the new version? I can replicate this quickly by just creating a new doc library, turn on versioning, upload a doc, edit the doc properties and set a Title, save it, upload the same doc again, when you go to the properties it's empty again. Version history shows this happened. I know that in a document library, the basic metadata columns and Word file properties are linked and that the title column is part of the Word file. Is there a way to get the replaced version to use the title it was using before?890Views0likes1CommentRemove function not working in Power Apps
I'm using a custom form created in PowerApps which integrates with SharePoint to change the appearance of viewing, creating, or editing a record in a SharePoint list. The records have two screens to view, create, or edit an item because there are many fields to fill out and they all can't fit nicely on one screen. I'm trying to create a Delete button on the second Edit screen but it is saying that 'ThisItem' is not recognized. Is there another formula I can use that would achieve the same thing?
Groups
Recent Blog Articles
No content to show