I currently have a Dashboard view for a task management app, containing Not Started, Ongoing , Pending Approval tasks , and a Detail View (Task Detail). The thing is, even if nothing is selected, the detail view shows the columns of the first row.
Is it possible to have the detail view show nothing if nothing is selected ? I checked out some samples, that does exactly this, but could not figure out how.
Sorry, poorly worded question on my part. I meant to ask if both the collection view and detail view were on the same Slice (including both being on the same base table, if not a slice). I believe I’ve seen the behavior you’re describing when one view is on one slice while the other view is on another.
Try to make a dummy record in your table that has blank values everywhere except for the key column. And make sure it is the first record in the table. “First” can mean different things for different sources, on a spreadsheet it just means on the first row (or rather, row number 2), but on a SQL database, it’d mean it’s key value would need to be alphabetically first, so something like “00000000”. In at least one app of mine, this works to initially display this record in the detail view until the user actually selects something else. I also went a step further to add a little graphic into that record, and a text that says “Select a record to view” or similar.
Desktop View is currently a preview feature and under active development. Preview features are not yet suitable for use in important apps. Until it has achieved greater stability, I recommend against using this preview feature except for testing and to help the AppSheet developers in their efforts. To follow the progress of and contribute to the development effort, please visit this dedicated Community topic:
I had the same problem and played around with scenarios in my app where it actually does show “No items selected” and where it shows the first record. What I have done to achieve the “No items selected” view in the detail view is to have the detail view linked to a slice where one of the filtered conditions of the slice is based off a virtual column. In my scenario the virtual column calculates the total order value of the project and I made the filter condition on the slice NOT([Project Value]=“Random Text”). The result of the virtual column will never be of type text and therefore the filter condition will always be true, so it doesn’t mess with my data. I then go to the system generated detail view, create a duplicate and change the reference table to the slice mentioned above and there we have it, solved.
Not sure if this works all the time, but it works for me.