Building a new query

The following procedure shows how to define a new query. To edit an existing query, you can follow the same procedure. In some cases, a system administrator can navigate to the web page where the results are displayed and click Edit Source Query.

If you have been granted access to an IQA folder, you can edit or create queries in that folder. Do the following to create or edit a query:

  1. Go to RiSE > Intelligent Query Architect.
  2. Edit a query, or select New > Query.
  3. Enter a Name and an optional Description for the query. Do not use apostrophes.
  4. Note: Use a naming convention that ensures that the query has a unique name. iMIS does not require a unique name.

  5. Enter descriptive Caption text. This text will be read by assistant technology to describe the results of your query.
  6. (Sources tab) Choose a common source or query under Add source, or select All Sources to view a full list of sources. Find a business object or query to use as a source for the query (most business objects are located in the Common folder).
  7. Note: Any business object source can be given an Alias to make it easily identifiable when defining the query.

  8. (optional) Select an additional source and click OK. Use the up and down arrows to reorder the data sources as needed.
  9. If you select more than one source, you must define the relationships among the sources. Most sources have a common relationship as a default. Use the default, choose the desired relation from the list, or select Custom from the drop-down list to define a new one.

  10. (optional) (Filters tab) Define the filtering rules:
  11. (Display tab) Define how results columns are displayed.
  12. (Sorting tab) Specify the sort order for each column
  13. Select Run to test the query. If edits to the query are necessary, select Define.
  14. (Security tab) The default setting for a new query is All Staff Full Control. If the query needs to be available to public users, this setting must be changed accordingly. The following options are available:
    • Access mode: Assigns access and privileges to the query and its results:
      • Share (Everyone) - Configures the access list to Everyone Full Control, allowing unrestricted access to all users, including the public, provided they can access the query location. An alert appears reminding you that this query is accessible to public users and a PUBLIC label appears next to the query name.
      • Private – The access list is configured to include only System Administrators and the user creating the query. This ensures that only system administrators and the person who created the query have access to it. A PRIVATE label also appears next to the query name as a reminder.
      • Advanced – Select a security group from the drop-down. The selected users included in the group are listed under the Current Access List. Depending on which security group you choose, a security alert may appear and the label next to the query name will change accordingly.
    • Current Access List – Displays the names of the authorized users. The lists changes based on the selected Access mode.
    • Available via the REST API - This setting will grant API access to individual queries; however, the user trying to access the query via the API must still possess the relevant permissions as specified in the query itself. It is important that Available via the REST API is only enabled for queries that meet at least one of the following criteria:
      • The query does not contain any personally identifiable information, or
      • The query is properly filtered to only show information the requesting party is asking for, or
      • The query is secured so that only staff users have access to it
  15. Click Save. Select the folder in which to save the query.
  16. (optional) Select the Report tab to save this query as a report definition. You can customize these reports and export them to PDF or XLS format. See Reporting in IQA for more information.