Hello,
Is there a way to programmatically add an empty record at the beginning of a table?
This is the datasource of a combobox:
Sort(Table, Title, Ascending)
I need an empty record at the top of the combobox so the user can select it.
Solved! Go to Solution.
Hi @WebPortal ,
If you are using Title in the Combo Box, then you could do this
Patch(
Table,
Defaults(Table),
Title:{""}
)
This should sort at the top.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WebPortal ,
If you are using Title in the Combo Box, then you could do this
Patch(
Table,
Defaults(Table),
Title:{""}
)
This should sort at the top.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WarrenBelz
Actually, it is Entidades, but using the same logic:
Patch(Entidades, Defaults(Entidades), Entidade{""})
Returns:
"Name isn't valid. The identifier isn't recognized"
You can create a Collection OnStart of the App:
Collect(CollTable,{Firstvalue:""});
Collect(CollTable,Datasource)
Then Change your code to";
Sort(CollTable, Title, Ascending)
I thought you might pick up the missing colon (free-typed) - fixed now.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Hi @WebPortal,
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
User | Count |
---|---|
183 | |
105 | |
89 | |
45 | |
43 |
User | Count |
---|---|
229 | |
105 | |
105 | |
67 | |
66 |