Canvas app with SharePoint Data Source - Filter gallery on multi choice combobox - powerapps-canvas

I have created a canvas app with SharePoint as data source. This is just a test list that I have created:
SharePoint List
In the list I have two columns - Title and Choice Column (This column is a multi choice column in SharePoint).
In my application I have created a gallery to display the records that I have created and one combo box field, which is taking the choices for the column in SharePoint:
Canvas Application
I have created the following filter for my gallery, so I can filter the gallery based on my combo box selection:
Filter('Test List', IsBlank(ComboBox1.SelectedItems)|| IsEmpty(ComboBox1.SelectedItems)|| ComboBox1.Selected.Value in 'Choice Column'.Value)
The filter is working correctly, if you choose only one value from the combo box field:
Filtered Gallery
The combo box items are displayed as follows:
Choices('Test List'.'Choice Column')
I would like to filter the gallery as follows:
If I choose "Choice 1", I would like to see all of the items where I have "Choice 1" selected. If I choose "Choice 1" and "Choice 2", I would like to see the records where I have "Choice 1" or "Choice 2" or both.
At the moment, when you select only "Choice 1", the filter is working. When you add "Choice 2", it is showing only the results, where I have "Choice 2".
I have tried many things like:
Filter('Test List', IsBlank(ComboBox1.SelectedItems)|| IsEmpty(ComboBox1.SelectedItems)|| Concat(ComboBox1.SelectedItems.Value, Value & " ") in Concat('Choice Column'.Value, Value & " "))
But this is not helping me, since it will look for an exact match: for example: If I choose "Choice 1" and "Choice 2", it will return the records where I have exactly "Choice 1", followed by "Choice 2":
Filter results
I have tried using the following filter as well:
ForAll(ComboBox1.SelectedItems.Value, Filter('Test List', Value in 'Choice Column'.Value))
But this is breaking the Gallery:
Gallery errors
In addition, I have tried the following:
Filter('Test List', IsBlank(ComboBox1.SelectedItems)|| IsEmpty(ComboBox1.SelectedItems)|| ComboBox1.SelectedItems in 'Choice Column')
But it is resulting in an error:
Error in Filter
Does somebody have an idea how the gallery can be filtered on multi choice field in SharePoint? Thank you in advance!

Related

How to allow check box to work in SharePoint without being in 'edit in grid view'?

I have a tracking sheet that I manage and I would like the ability to make the check box, which represents that a job has been completed, to be able to be checked (Yes/No Check box) without having to enter 'Edit in grid view'. Is this possible on the back end of SharePoint or through json?
I've looked at the settings in the SharePoint list and the column properties. Quick Edit is activated but it isn't doing what I hoped.
Based on your description, I understand that you want to fill in the checkbox column, but not in the "Edit in grid view".
If you want to edit items in the SharePoint list, you could through "Edit in grid view", "Edit item properties" and flows.
You could edit items by using " Update item" action when a job has been completed.
Yes. It is possible to edit the Yes/No column in SharePoint list view without using grid view.
You have to apply JSON column formatting for your Yes/No column. Use JSON like:
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"inlineEditField": "[$Completed]",
"txtContent": "=if([$Completed], 'Yes', 'No')"
}
Where [$Completed] is the internal name of your column.
Output: When you click on column cell, it will open column in edit mode:
Documentation:
SharePoint JSON column formatting
JSON formatting inlineEditField

Can we use "Drop-down" instead of "Column Groups" in Tabulator

I would like to replace "Column Groups" in tabulator with Drop-down, please let me know if it is possible.
Eg: the screen-shot Sample Column Groups shows "Progress" "Rating" "Driver" under Column Group, but I would like to replace those headers with "drop-down" and make "Progress" as Default.

How to output only drop-downs with values (and give them a name) - Contact Form 7

I'm trying to create a quote request form for a client using Contact 7 in Wordpress.
They've given me a couple of pages of products in a table and wants the user to be able to select an amount for each product from a drop-down and then have an email send to him telling him the user has requested a quote for the product(s) they selected in the form.
Ideally I would like only the items that have had a value selected to get sent in the email to my client.
Here's the setup I am using so far:
Product 1
[select menu-940 include_blank "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" ">10"]
Product 2
[select menu-941 include_blank "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" ">10"]
But many more lines of this. And the output code is:
[your-name] <[your-email]> is interested in the following products:
[menu-940]
[menu-941]
Of course just using the short code only displays a numerical value. Is there a way to have them show a text value and numerical value when there is a value selected, and not show at all if there is no value? Perhaps with a placeholder of some kind?
I have the "Exclude lines with blank mail-tags from output" box checked, so if menu-940 has no value, it won't be displayed; but still, a numerical value is of no use to anyone without some sort of identifier.
It would be awesome if I could get the drop-down to sit next to the name of the product in the form as well, as currently they take up an entire line each, making for a form that is twice as long as it needs to be.
Thanks a lot in advance. If this is hard to follow I'd be happy to provide more info.
Adam.
Take a look at this question: https://wordpress.stackexchange.com/questions/56042/contact-form-7-select-box-different-value-text-then-content-text-in-option
It will solve your problem with different value/text for drop-down options.
When it comes to displaying the drop-down to next to the name of the product, you should play around with CSS to position it right.

SSRS Hide Item in Legend based on conditions

I have a problem related to the legend you can make use of in an SSRS report.
I have a stacked bar diagram in my report, let us call the groups series for Category. The bar chart will display as following:
Category A
Category B
Category C
Category D
...
I have different filters in this report which will only display two categories sometimes, e.g. Cat. A and Cat B. The problem is that the legend still will display all categories even if it is not displayed in the bar chart due to certain conditions made by the users.
I have tried a lot now but without any result. How can i display only Categories in the legend that only exists in the bar?
BR,
Nicklas
Right-click on a chart bar, select "Series Properties", choose Legend and click "fx" sign next to "Do not show this series in a legend". Make an expression, which hides legend for this chart bar, if the value is NULL or zero. Here you have an example" http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/0e145eb1-924c-488f-95b1-56028c4f03a8
Right-click on a chart bar, select "Series Properties", choose "Visibility", Select "Show or hide based on an expression", Give your condition(by clicking fx sign you will find condition pane). Example : If you want to show only not null values-
=IIf(Fields!Cat_A.Value is nothing,true,false)

Hide Column based up Parameter Selected SSRS

I would like to set the visibility of columns based upon the value selected in a parameter.
The problem is I do not want a specific parameter to do this (i.e Hide column X True/False)
My report has several different "departments" who are only interested in certain columns.
What would be the syntax for example to hide the "Sales" column when the "Customer Care" parameter is set?
you can do these works step by step:
1- press right click of your mouse in your favorite column
2- select column visibility
3- from opened window select "Show or hide based on an expression" radio button
4- set an expression for hidden state. for example:
=IIF(Parameters!CustomerCare.Value <> "favorite value", true,false)