Hello friends,
I'm working on an app as a workflow solution for my colleagues. Within this app, I am using a very strange method to "save" each user's choice as a default value that the app checks for during OnStart. Here is that method:
When a user selects a value for a combo box and clicks a button to send their choice, a list item is created in a SharePoint list containing 2 values: User().FullName & Combobox.Selected.Value. Next time the app starts up, OnStart sets a variable to the Combobox.Selected.Value associated with the current User().FullName. The combo box's default value is set to that variable defined within OnStart.
A value is required in Combobox in order to send the user's inputs. Herein lies the problem: When I try to send user's inputs (with the Combobox.Selected.Value default value) however the app is not reading the default value so I get an error when I try to send. Unselecting the Combobox.Selected.Value and selecting it again does fix this, however as I'm sure you know defeats the purpose of saving a user's input preferences.
My question would be: Why is my app not identifying that there is a default value selected in the Combobox? I can literally see that the value is selected and I will still receive an error.
Thanks for any help you can provide and have a great day!
Excellent, to the point reply! You're awesome, this solved my problem!
use a lookup for you're default value. If you're items property is something like DataList.column or a filter(datalist,something = something).column then just use the same thing on default item but use a lookup. So Lookup(datalist,column = your onstart variable value).column this should match the object exactly and should produce the desired results.
WarrenBelz
146,745
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,091
Most Valuable Professional