I have 2 Attributes at the project header level and want to create a Generic Inquiry tied to the project that list all projects where Attribute 1 = a certain value while Attribute 2 = a different value.
For example getting a list of projects where Attribute1 = "Yes" but Attribute2 = "No"
In the Generic Inquiry you must do two things before you lastly add the Project ID fields in the Results tab:
Add and join the tables for project and attributes in the 1st two tabs.
Add two conditions in Conditions tab for Attribute1, Attribute2.
Related
is it possible to hide/show column items based on another field in SharePoint 365?
Example:
In first column I have:
Item 1
Item 2
Item 3
In second column I have:
Item A
Item B
Item C
Item D
I need when I select the item in first column, in the second only appaers some of them:
First Column
Second Colum
Item 1
Item A
Item 1
Item B
Item 2
Item C
Item 3
Item D
PS: I don't have "admin center" access and I can't use Power Apps in this case.
You can refer to this article to create two lists (First list and Second list) to store the item values of the two columns, and then reference them in the main list through the lookup column. Add a Content Editor Web Part to implement changes using HTML (require editing the page in classic mode).
Script details: column choice based on the value of another column choice
If you are using SharePoint online modern experience, you cannot do this using SharePoint default capabilities.
You have below options:
Easiest way: Use Power Apps to customize list forms and cascading dropdowns. I know you mentioned you can't use Power Apps - but this is easiest way (check other options below)
a. Working with Cascading Lists in SharePoint and Power Apps
b. Create dependent drop-down lists in a canvas app
Completely customize list form using SPFx form customizer: Build your first Form customizer extension - lot of development work needed
Use JSON formatting - You can use list JSON view formatting to add new items from within list view if you have less number of fields to submit while creating new items.
Example: Dependent-DropDown
Currently my powerapp is having a Gallery which is based on a single sharepoint list but i would like to implement a gallery on my app which should show items from 3 different sharepoint lists (all have same columns/fields) and i am using a filter on the galley so that user can type on the box and get filtered response only instead of showing all data
Please Help
I am already having this formula in gallery1.items :
Search('PO list', TextSearchBox.Text,"Branch_x0020_Code")
For example,consider i have 2 list : list 1 & list 2 ,now when an user searches in the searchbox (i.e. TextSearchbox) i want the gallery to filter the data wherein "Branch_x0020_Code" equals search data from both the List
EDIT 1 : This is the formula i am trying to implement :
Formula : ClearCollect(Aitems,'PO list',PO 2)
and error is shown as in the following image:
My "PO List" was having a column called status and its type was Single line of text whereas in "PO 2" the type of status column was Choices .since i cannot change the datatype i have changed one of the list column name to "Status 0" .
Now the only difference i have between these two lists are one list has some extra columns while other don,t have.
But still when i am trying ti implement i am getting this "Incompatible type" error.
Galleries can't directly show results from multiple data sources at one time. However one way to achieve this is to first collect data from the various lists into a single collection, then bind the gallery to that collection.
For example you could do this in the OnStart property of the app, or the OnSelect property of an "update" button:
ClearCollect( CombinedListsCollection,
List1, List2, List3 )
Then bind the gallery.items to the collection instead:
Search( CombinedListsCollection, TextInput.Text, [columns])
Another way to get at this is to collect dynamically a filtered set of records as your users search. For example, on your Text Input control for the search box, set the "OnChange" property to:
ClearCollect(CombinedFilteredLists,
Filter(List1, StartsWith(Title, TextInput1.Text)),
Filter(List2, StartsWith(Title, TextInput1.Text)))
Then set the gallery items to CombinedFilteredLists.
Use StartsWith() wrapped in Filter() to delegate over large SharePoint lists as in the example above.
Here's a gif of that in action:
Combining two SharePoint lists into one Gallery in PowerApps
If you have the exact same columns/fields for the two lists, then Ryan's solution would work. However, if some of the fields are different (either their name or type), then you can use one of the many functions that can help you change the "table shapes" in PowerApps.
In your specific case, if you have the following two lists in SharePoint:
List01
Title (Text)
Status (Text)
List02
Title (Text)
Status (Choice)
Then you can create a collection with the contents of both lists by using this expression:
ClearCollect(
ItemsCollection,
ShowColumns(
AddColumns(List01, "StatusText", Status),
"Title", "StatusText"));
Collect(
ItemsCollection,
ShowColumns(
AddColumns(List02, "StatusText", Status.Value),
"Title", "StatusText"));
The expression above creates a new column (*) called 'StatusText' on both lists, normalizing the type of the Status column to text, and then select the Title and StatusText columns from the two lists, thus ensuring that the schema (types of the fields) are the same.
(*) The AddColumns function doesn't create any additional columns in the SharePoint list; instead, it returns a new "virtual" table that can be used within expressions / controls in PowerApps.
I would like to list deals that are available in a specific city. I am using a content picker field to link the properties to deals and cities.
I have three content types, two of these content types have a content picker field that connects the property:
City (with a ContentPicker Field allowing properties to be selected)
Property
Deal (with a ContentPicker Field allowing properties to be selected)
Properties are linked to deals as follows:
Deal 1 = property 1
Deal 2 = property 1
Deal 3 = Property 2
Properties are linked to cities as follows:
City 1 = property 1
City 2 = property 2, property 3
So the result that I would like to get is:
City 1 - Deal 1 and 2 should display
City 2 - Deal 3 should display, because property 2 exist in the properties selected for this city.
See example of content types created
See example query - On the city page I have a projection with a query that finds all the deals that that have the same properties as the current city.
From what I can tell, the problem is that '{Request.Content.Fields.CityTown.Properties}' is not giving me the selected ID's in a list form like this '2','3'. Therefor if my city is connected to more than one property it does not return any results because it does not match '2,3'. If I add property 3 to deal 3, it gives me results, because '2,3' is equal to '2,3', It works with direct matches, but it does not check if the Property Id's listed for deals exist within the Property Id's listed for the current City to give me the deals for the city. Hope that makes sense.
The trick is that I want to use existing functionality within the Orchard CMS system. I do not want to code custom modules etc. I am hoping there is an easy way around this.
I am wondering if it is possible when I choose some item from let's say drop down menu in one place , on some other place to appear just some definite items that are preliminary identified to be related to this item. As an example, if you have a company structure- See below the picture- Subsidiary 1( Sub1) has just one Subsidiary with a code Sub1Sub1, so I will be expecting under the required place to appear (which might be in different worksheet ) just Su1Sub1, if I choose Sub2 from the main menu, I will be expecting in this place to get Sub1Sub2 and Sub2 (two different rows) , etc. Initially I was thinking to do this with multiple vlookup formula with syntaxis (iferror(index(.....),small(..)), but in this case we don't have values to bring, we have a combination of symbols (Sub1sub2) etc.. It can be done with multiple if(if(if( etc, but imagine we have many companies so it would be difficult with if(if)s..Please advise.
Use a list box element to select from your master entities.
Use the Change event of this list box to preload a second listbox for the child entities via VBA
The same can be done with the data validation items if you prefer in cell dropdowns. Then you use the worksheet_change event and check if the cell containing the master entity has changed, and if so you reload the correct set of child entities into the data validation list of the child selection field.
I have defined a custom Sharepoint list for special attributes related to a software application inventory and installed it as a feature. I also want to group these attributes in categories. How could I change the Sharepoint page that allows the user to add a column to a list, so that when the user adds a column to my custom list type (column = attribute) he'll have a dropdown to choose the category?
From what I understand you want to add a choice column data type thats already prepopulated so that users can then add it to their own content types?
have a look here, this is probably what you want to do: http://www.sharethispoint.com/archive/2006/08/07/23.aspx