Make definition query's toggle more intuitive

833
5
12-11-2022 09:17 AM
Status: Closed
Labels (1)
Bud
by
Notable Contributor

@KoryKramer Feel free to close this idea. Support is submitting bug reports for these issues.

 

Edited: I removed the part about hovering over the definition query.

Regarding the definition query window:

For an existing definition query that is enabled, the toggle makes it look like it's disabled.

Bud_0-1670777771324.png

GIF:

definition query.gif

Could the UI be improved so that it's clear that an existing enabled definition query is displayed as being enabled? 

Thanks.

 

ArcGIS Pro 3.0.3; mobile geodatabase.

5 Comments
JohannesLindner

I think you're missing something.

 

The query has 4 states:

  • active, normal
    JohannesLindner_2-1670828316977.png

     

  • active, hover
    JohannesLindner_3-1670828341360.png

     

  • inactive, normal
    JohannesLindner_1-1670828299931.png

     

  • inactive, hover
    JohannesLindner_0-1670828285884.png

     

The grey checkmark in the inactive hover state is meant to tell you "Hey, click here to activate this query!"

 

 

You have something different going on there: The query shows as inactive, although it apparently is active. Could be that this is due to your more complex query. Try a simple one.

Bud
by

Here's the data and SQL expression -- in case someone wants to reproduce that UI behavior:

Standalone table named roadinsptable:

ASSET_ID: Text
DATE_: Date
CONDITION: Long

ASSET_IDDATE_CONDITION
12016-04-011
12019-03-012
12022-01-013
22016-04-014
22022-01-015
32022-01-016
32022-03-017
32018-03-018
32013-03-019
32010-06-0110
32022-03-0111
32022-03-0111

 

SQL Expression:

roadinsptable.objectid IN (
     SELECT objectid
       FROM roadinsptable r2
      WHERE r2.asset_id = roadinsptable.asset_id
   ORDER BY date_ DESC, condition DESC
      LIMIT 1
            )

 ArcGIS Pro 3.0.3; mobile geodatabase.

Bud
by

Esri Canada Case number #03255222 “Definition query with subquery shown as inactive (incorrect)”

Bug number: BUG-000155660
Synopsis: Definition queries do not appear as active after enabling the query and reopening the definition query again.

 

Related: Modifying existing SQL expression disables definition query

alex_friant

From the video it's clear there is a bug with that type of complex SQL query. The bug being that when you open the DQ in Properties, it automatically disables itself. 

I can't replicate it though. I had a similar SQL query (nested, but no joins) on a mobile geodatabase and it didn't bug out like this. I'm using Pro 3.0.3, btw.

KoryKramer
Status changed to: Closed