Configure app attributes
The Attribute tab allows you to perform basic customization at the app level, such as configuring your app's banner, state, and extra data sources.
Branding
You can add a logo, a title, a subtitle, and links to the banner.
- The app
logo defaults to the logo defined by your organization when available. Otherwise, click the logo icon and choose Custom to open the file browser and select an image file after clicking Upload. Input a hyperlink to the image in the Link text box. If you don't want to have a logo in the app, click the X icon on the logo to remove it.
When the application starts, expand your browser, if necessary, to see all of the above items, especially when the text size is large.
- Click the Customize font style button to customize the font style for the title of the app.
- Click the Customize font style button to customize the font style for the subtitle of the app.
- Click Add new link to add a hyperlink to the banner, and provide a name and valid URL. The link can be any protocol supported by the browser, such as HTTPS, MAILTO, and FTP.
Caution:
A maximum of four links can be added.
App state
Check the App state check box to keep the map extent and layer visibility when you exit the app. It is turned on by default. This option is not available when you build 3D apps.
Note:
This option is only available for 10.5 or later.
Loading screen
You can configure the background and loading icon for the loading screen of your app. This option is only available in the developer edition.
- Click the Loading screen button.
- Click the button under Background color to choose the background color.
- Optionally check Use background image to upload an image by clicking Select file.
- Under Show loading icon, select a predefined GIF file from the drop-down menu, or choose Upload an image.
Extra data source
The extra data source option allows you to configure custom data shared at the app level so all the widgets in the app can quickly access and respond to it simultaneously. Once the app starts, all configured data sources are queried from the server and loaded to the browser client.
There are two types of data sources you can add: Layer and Statistics. Layer is a subset data of a feature layer, table, or an image service vector layer. Statistics stores the feature count of group data (if specified) and calculates the sum, average, maximum, and minimum values of the group (if specified) based on one or more numeric fields.
Note:
Currently, only the Infographic widget has a configuration option to use the extra data source.
Add a layer data source
- Click Extra data source, and click Add new. Choose Layer in the pop-up menu.
- Choose a layer from the map or portal, or input a service URL. Feature layers, tables, and image service vector layers are supported, which can originate from a feature service, map service, or an image service.
- In the Configure data source window, do the following:
- Specify a name for the data source under Name.
- Click the Set button under Filter to define query criteria by an expression or a set. You can also enable and disable the filter based on the map extent. If Only the features within the current map extent is checked, data will be updated when the map extent changes.
- Click the Set button to specify which fields will be retrieved.
- Under Records, specify how many records will be retrieved, and in what order. The following three options are available in the Number drop-down menu:
- Service limit—The maximum number of records specified when the service is published.
- All—All the records from the service.
- Custom—The number of records you want to retrieve from the service.
- Under Refresh interval, specify the refresh interval of the data source when applicable.
- Click Preview to preview the data you configured through the previous steps.
- Click OK.
Add a statistic data source
- Click Add new, and choose Statistics in the pop-up menu.
- Choose a layer from the map or portal, or input a service URL. Feature layers, tables, and image service vector layers are supported as the input. They can originate from a feature service, a map service, or an image service.
Note:
The data source must contain at least one numeric field.
- In the Configure data source window, do the following:
- Specify a name for the data source under Name.
- Click the Set button under Filter to define query criteria by an expression or a set.
- Under Statistics, choose the group on which the statistics are based, and set fields on which the statistics are calculated, such as their sum, average, min, and max values.
- Under Refresh interval, specify the refresh interval of the data source when applicable.
- Click Preview to preview the data you configured through the previous steps.
- Click OK.
Edit the data source
- Hover over the existing data source in the table and click the pencil button to open the Configure data source window. Make changes accordingly.
- To remove the existing data source, click X.
- In the Set refresh interval drop-down menu, choose how you want the interval set for your data source.