Hi,
I have using ComboBox with SelectMultiple -> true. Data Load form SharePoint Lookup column with Multiple value.
ComboBox Items ->Gallery to fetch SharePointList (Lookup multiple value field)
In my PowerApps page, I need to load existing item. It's working. but it's shown addition items.
DataLoading + List items available in my ComboBox.. How to avoid existing data loaded items in ComboBox...
See below for more information...
ComboBox Coding :
DefaultSelectedItems :
Gallery1.Selected.Authority_Designation
Items: SharePointList
SelectMultiple - true
While i am selecting Gallery, ComboBox default view Selected items Authority Designation. But if i need to update this...
ComboBox having items Default view + List items... how to filter & set in combobox this Default view + (List items - default view)?
Thanks in advance
Solved! Go to Solution.
Consider changing your Items property of the Combobox to the following:
RenameColumns(ShowColumns(SharePointList, "ID", "Title"), "ID", "Id", "Title", "Value")
If your Lookup column in SharePoint is defined to get its value from some other column beside Title, then change the above accordingly. You will need to look at your Lookup column definition in your SharePoint list settings to know for sure.
I hope this is helpful for you.
Consider changing your Items property of the Combobox to the following:
RenameColumns(ShowColumns(SharePointList, "ID", "Title"), "ID", "Id", "Title", "Value")
If your Lookup column in SharePoint is defined to get its value from some other column beside Title, then change the above accordingly. You will need to look at your Lookup column definition in your SharePoint list settings to know for sure.
I hope this is helpful for you.
@RandyHayes
Wow... it's really great.. working good.
Thanks lot @RandyHayes .. I have post another one. if possible you can help.. again thanks... 🤝
Very good!!
Yes, the trick with DefaultSelectedItems is that the schema/signature of the records for that property must match the Item property in order for selection to actually work.
A Lookup column in SharePoint has a record (or multiple if enabled) that has a Id and Value column.
Since you were setting the DefaultSelectedItems property to the actual lookup column from your list item, it would have that signature. However your Items property was just your SharePoint list...which would have all the columns in it.
So the trick was to just get the ID and the Title column and then to Rename them to Id and Value...this would then match properly.
Feel free to post more questions when you have them!
User | Count |
---|---|
253 | |
122 | |
107 | |
53 | |
50 |