Hello,
I am making my admin tables to allow for in app edits for dropdowns that exist throughout my app. As most of the sharepoint lists consist of a single collum called Title, I am attempting to reuse the same gallery control to reduce the number of Items I have to recreate. My admin screen consists of 2 galleries, a menu which has a defined list of items listed below, and the gallery where the edits are made. The lists I wish to edit are defined as part of the table function under "AdminListName" The aim is to have the second gallery pull the SharePoint list name from the 1st gallery named Admin_Menus run the Items command below. I am getting errors as the app is reading the table name as a text vaule.
Admin_menu (Select the table to edit)
SortByColumns(Filter(
Table(
{
AdminMenuText: "Users",
AdminMenuLevel: 5,
AdminMenuOrder: 0,
AdminSingleColumn: false,
AdminListName: "Admins_for_Tracker"
},{
AdminMenuText: "Fiscal Year",
AdminMenuLevel: 1,
AdminMenuOrder: 1,
AdminSingleColumn: true,
AdminListName: "FYs"
}{
MORE TABLES TO EDIT EXIST HERE
}
),AdminMenuLevel <= var_admin),"AdminMenuOrder",SortOrder.Ascending)
GAL_Admin_Single_Column (Gallery to be used when a single Item column exists)
SortByColumns(Filter(Admin_Menus.Selected.AdminListName,StartsWith(Title,Admin_Search_Box.Value)),"Title",SortOrder.Ascending)