Hi!
I am creating a phone book for different locations in my company.
When opening the app, people can choose Location 1, Location 2, …
If they choose Location 2, they will enter a Gallery which show the different departments/categories for the location.
At the moment these are in a table called «Departments» with the following columns:
- Location
- Department
Because I want the first entry of the gallery to be «all numbers» (for every location), I choose to make a collection where I manually create the first entry and then collect the rest of the departments depending on chosen location.
I need help with:
Per location there is one data administrator.
How can I create a simple way for the administrator to choose which department will show on top (below All numbers)?
I know the following code will give the desired order:
SortByColumns( DataSource, Column, [ " Not Started","In Progress","Approved","Rejected","On Hold " ] )
But when different locations have different departments, this will not work.
What is the best solution? Create an extra column in the Departments table called sort number?
Dropdown menu with a choice of numbers for each department?
How can I make sure that 15 different numbers are chosen if a location have 15 different departments?
If two new departments are added and wanted as number 2 / 3, how can we make this happen without having to manually change the numbers of each department?
I hope there is a simple solution for this which I do not know about, yet! 🙂