Getting started
Planning your app
Data planning
4min
Why create a data plan? Data is used throughout the , knowing where the data is coming from or going to, how to use that data on the device, whether online or offline, what data you can prefetch and made available on the device, and what data you will fetch just in time is important to design before building apps. This saves developers time and ensures the correct data is used from the beginning.
Data visualization
- Map out the data for the app. This includes the data that will be used on each screen.
- Are you using pre-existing data sets or creating new data sets?
- Decide where the data is coming from or going to, for example, Microsoft Azure SQL, REST, Dynamic Data (local or global), Salesforce or Microsoft OneDrive.
- Map out the tables and joins that will help visualize the data and assist when building the data out.
- Create an entity relationship diagram to model the app data.
- Draw where the data points are needed on your sketch or Miro board created in the solution design step.
- Most importantly, decide when to load data in the app and on the screens. For example, when must you cache fresh data from SQL vs. using local data, this helps with offline capabilities. See When to load data to understand the various options, benefits, and drawbacks.
- Design the data flow with offline in mind. This helps to know when to plan the loading of data on an app.
- Privacy and keeping data safe are important, in this instance, it would be better to use an SQL server that provides this functionality.
- Data grows with time, plan for scalability.
- Data must be structured in the backend. Clean data ensures you show the latest and applicable data to your users. You can add filters and search fields to assist users in the app screens. Using relevant clean data from the start creates a real user experience while developing.
- Having the screens drawn out, as described in the Solution Design section above, helps visualize what data you need and when to load the data.
- Determine when you want to save or send data to a database, for example - only once a submit button is pressed. This is important as it determines what code is required at build time.
- In if the same data is reused in multiple screens, you can decide whether to create a global data source that can be reused in different s. Include this on the data plan as it helps the creator know where to build the datasource. In global data is created under the datasources folder and referenced in multiple s, and local data is created in the file for use in that single .
- Having to create a database can be time-consuming or daunting, use tools such as ChatGPT to create a database, a database script, or build a CSV file for a data structure.
- When using REST or SQL, you need functions and stored procedures. Decide what the functions will do. Use Postman to understand the properties required.
- Be smart in the design of data by thinking of creating experiences, for example, data can be shown as charts rather than lists.
Updated 17 Jul 2023
Did this page help you?
Yes
No