I am trying to create a collection that includes a list of items from a single column in a filtered Dataverse list and a single line of text, "Base Bid". The goal is to have a list of the Change Order Numbers for a given Job and "Base Bid".
I have two Comboboxes. The first selects the Job No. In that Combobox's OnSelect Property I have the following code:
ClearCollect(colOriginated,"Base Bid", SortByColumns(ShowColumns(Filter('Change Orders','Job No' = ThisItem.'Job No'),"crd93_cono"),"crd93_cono",Descending))
Then in the Originated combobox Items property I simply have colOriginated. The Items only show "Base Bid" and do not show any of the Change Orders.
I know I've seen a solution for this in the past, but I cannot find it anywhere. Please help and let me know if you have any questions to help solve this problem.
Thank you.
Solved! Go to Solution.
Please consider changing your Formula to the following:
ClearCollect(colOriginated,
{crd93_cono: "Base Bid"},
SortByColumns(
Filter('Change Orders',
'Job No' = ThisItem.'Job No'
).crd93_cono,
"crd93_cono",Descending
)
)
You were adding a "Base Bid" that would be going into a record with a Value column, yet all your other records have a column called crd93_cono
You can also spare yourself the overhead of the collection and just set your Items property of your combobox to:
Ungroup(
Table({items: Table({crd93_cono: "Base Bid"})},
{items:
SortByColumns(
Filter('Change Orders',
'Job No' = ThisItem.'Job No'
).crd93_cono,
"crd93_cono",Descending
)
}
),
"items"
)
Also...your formula is specifically using ThisItem.'Job No' but yet you stated that you have a first combobox for the selection of the job number. If that is the case, then you want your formulas to be using the selected job number from the first control...not ThisItem.
I hope this is helpful for you.
Please consider changing your Formula to the following:
ClearCollect(colOriginated,
{crd93_cono: "Base Bid"},
SortByColumns(
Filter('Change Orders',
'Job No' = ThisItem.'Job No'
).crd93_cono,
"crd93_cono",Descending
)
)
You were adding a "Base Bid" that would be going into a record with a Value column, yet all your other records have a column called crd93_cono
You can also spare yourself the overhead of the collection and just set your Items property of your combobox to:
Ungroup(
Table({items: Table({crd93_cono: "Base Bid"})},
{items:
SortByColumns(
Filter('Change Orders',
'Job No' = ThisItem.'Job No'
).crd93_cono,
"crd93_cono",Descending
)
}
),
"items"
)
Also...your formula is specifically using ThisItem.'Job No' but yet you stated that you have a first combobox for the selection of the job number. If that is the case, then you want your formulas to be using the selected job number from the first control...not ThisItem.
I hope this is helpful for you.
User | Count |
---|---|
126 | |
87 | |
85 | |
75 | |
69 |
User | Count |
---|---|
215 | |
180 | |
139 | |
97 | |
83 |