Skip to Main Content
Alloy Ideas Portal

Welcome to the Alloy Ideas Portal đź‘‹ Here, you'll be able to browse improvement ideas raised by our community, vote on ideas you agree with or even raise your own ideas. We review all ideas raised and we endeavour to respond to all raised ideas.

Any ideas submitted will be immediately visible on the portal for others to vote on, please do not include anything in your ideas you do not wish to be shared with others.

Status Already exists
Product Alloy Web
Created by Paul Yeatman
Created on Sep 8, 2022

Path finder on Stencil AQS to remove "1 Item" in data explorer

When creating an AQS query and picking the attributes to be displayed when the user select the data explorer icon to move the AQS query into a data explorer view, only the attributes directly linked to object can be chosen, and where a picklist is chosen "1 item" is displayed. I need to be able to use a pathfinder to display the item picked from a pick list and often it would be very useful to navigate via the pathfinder to a linked object.

  • ADMIN RESPONSE
    Sep 23, 2022

    Hi! Thanks for the idea, this is possible through the workaround I mentioned in comments or there is an option at the top of the dropdown of the AQS root node to change the AQS type. If you switch from AQS Query to AQS Join, this will let you use the Pathfinder to select the attributes you want.

  • Attach files
  • Paul Yeatman
    Reply
    |
    Sep 12, 2022

    Hi Jonathan

    I have just tried this and this exactly what I needed. Now I can build full data explorer queries within a stencil.

    Thanks

    Paul

  • Admin
    Jonathan Shaw
    Reply
    |
    Sep 12, 2022

    Hi Paul,

    While we will look at changing the behaviour of the AQS Query Stencil Control to help this, I have a workaround that can help you with this in the meantime.

    There are two different types of AQS query, a Query and a Join. The AQS builder behaves slightly differently depending on which is selected. Queries tend to focus just on a single Design or Design Interface. In contrast, Joins let you, as the name would suggest, join multiple Designs or Design Interfaces together in the resulting dataset. In most cases, these two different Query types are interchangeable.

    In the scenario you are describing, the AQS builder is defining a Query and therefore only allowing you to add attributes that are present on your target Design or Design Interface, but by changing this to a Join will allow you to define linked attributes to display. You can achieve this by changing the AQS itself:

    • In the AQS builder, click the code button to bring up the Advanced Query Editor

    • Change the value next to "type": to "Join"

    • Click Done then when you click the root node in the AQS builder and select Attributes, you'll be presented with the Path Finder instead of just a pick list.

    Hope this helps until we can make the change to this behaviour. Do let me know if you have any questions.