cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ralf89
Frequent Visitor

Set Default for Combo box from a SP list text field

Hi,

I have a Combo box populated with a column from a collection:

Items:

SortByColumns(ShowColumns(Filter(tSDCODES,'SDC-TYPE'="LM"&&'SDC-STAT'="A"),"SDC-DESC"),"SDC-DESC",Ascending)

 

  • I want to show a default value in this Combo box based on a text field of a sharepoint list column [PM], or select a default item from the Combo box based on the text of the column [PM]. Text in column [PM] will always match one of Combo box menu "SDC-DESC" item.

 

I have tried lookups and filters but no luck. If I switch the [PM] column to a choice column it works, but I don't want a choice column because my choices are dynamic so I prefer simple text.

 

P.S. Not using Parent.Default, I am not using DataCards properly because of the complex UI I have, I am saving via Collect function all my fields.

 

Thanks a lot

1 ACCEPTED SOLUTION

Accepted Solutions
ralf89
Frequent Visitor

Unbelieveble after hours of trying I decided to post for help and few min later I figure it out LOL, if anyone is interested. Filter using the DefaultSelectItems:

Search(Combo box source, Items:, Search criteria (in my case text column ThisItem.PM), "Combo box source column")

Search(SortByColumns(ShowColumns(Filter(tSDCODES,'SDC-TYPE'="LM"&&'SDC-STAT'="A"),"SDC-DESC"),"SDC-DESC",Ascending),ThisItem.PM,"SDC-DESC")

 

View solution in original post

1 REPLY 1
ralf89
Frequent Visitor

Unbelieveble after hours of trying I decided to post for help and few min later I figure it out LOL, if anyone is interested. Filter using the DefaultSelectItems:

Search(Combo box source, Items:, Search criteria (in my case text column ThisItem.PM), "Combo box source column")

Search(SortByColumns(ShowColumns(Filter(tSDCODES,'SDC-TYPE'="LM"&&'SDC-STAT'="A"),"SDC-DESC"),"SDC-DESC",Ascending),ThisItem.PM,"SDC-DESC")

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,643)