Skip to content

AB#129357 - Enable calculated fields to select from a child resource and enable sorting and filtering by those calculated fields#2857

Open
Joselgc1 wants to merge 8 commits intonextfrom
AB#129357
Open

AB#129357 - Enable calculated fields to select from a child resource and enable sorting and filtering by those calculated fields#2857
Joselgc1 wants to merge 8 commits intonextfrom
AB#129357

Conversation

@Joselgc1
Copy link
Copy Markdown
Contributor

@Joselgc1 Joselgc1 commented Apr 24, 2026

Description

Builds on top of AB#128193. This change adds a new related-child calculated field syntax. For example, {{data.teststatus(first: 1, sortField: "grade", sortOrder: "desc").grade}}. It wires it into the backend aggregation pipeline early enough for parent grids and cards to display, sort, and filter on it, preserves the newer :text display-mode calculated field behavior, and also updates the Back Office editor autocomplete so users can discover both raw/text field placeholders and reverse child relation selectors.

How to use: create a child resource and form, add a resource field pointing to the parent resource, set a unique relatedName on that field, create child records linked to parent records, then add a calculated field on the parent resource using {{data.(first: 1, sortField: "", sortOrder: "desc").}} and display it in the parent grid or card.

Useful links

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (refactor or addition to existing functionality)

Checklist:

( * == Mandatory )

  • * I have set myself as assignee of the pull request
  • * My code follows the style guidelines of this project
  • * Linting does not generate new warnings
  • * I have performed a self-review of my own code
  • * I have put the ticket for review, adding the oort-backend team to the list of reviewers
  • * I have commented my code, particularly in hard-to-understand areas
  • * I have put JSDoc comment in all required places
  • * My changes generate no new warnings
  • * I have included screenshots describing my changes if relevant
  • * I have selected labels in the Pull Request, according to the changes with code brings
  • I have made corresponding changes to the documentation ( if required )
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

AntoineRelief and others added 8 commits April 13, 2026 18:42
---------

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
Co-authored-by: Jose L. Garcia <42015332+Joselgc1@users.noreply.github.com>
# [2.22.0](v2.21.1...v2.22.0) (2026-04-13)

### Bug Fixes

* clean resources field on clone ([#2836](#2836)) ([6b27fe8](6b27fe8)), closes [AB#118658](https://github.com/AB/issues/118658)
* Custom adorners for panel questions without elements would break form edition ([d3dd7c4](d3dd7c4)), closes [AB#120779](https://github.com/AB/issues/120779)
* custom survey methods using record not always working ([#2834](#2834)) ([2ff86f8](2ff86f8)), closes [Ab#123067](https://github.com/Ab/issues/123067)
* issue with people dropdown / tagbox display ([46ee9c4](46ee9c4))
* Remove button to delete users when displaying auto assigned users ([#2840](#2840)) ([365ea0e](365ea0e)), closes [AB#125619](https://github.com/AB/issues/125619)

### Features

* Add lowercase & uppercase methods to widget templating ([#2827](#2827)) ([8db5524](8db5524)), closes [AB#122364](https://github.com/AB/issues/122364)
* Admins can configure auto redirection after cloning from dashboard ([463ea7a](463ea7a)), closes [AB#118658](https://github.com/AB/issues/118658)
* Allow iterating through records in a text widget ([#2824](#2824)) ([b8928ee](b8928ee)), closes [AB#121364](https://github.com/AB/issues/121364)
* allow to replace any field in widget filters ([#2820](#2820)) ([335bb57](335bb57)), closes [AB#120295](https://github.com/AB/issues/120295)
* Can build custom action buttons in grids ([#2839](#2839)) ([6758be9](6758be9))
* can configure pre filling on select display only resources ([#2832](#2832)) ([f8fb972](f8fb972)), closes [AB#121363](https://github.com/AB/issues/121363)
* Display only resources grid can now be emptied based on condition ([#2846](#2846)) ([090bf3f](090bf3f))
* Display only resources questions ([#2831](#2831)) ([e2c1f31](e2c1f31)), closes [AB#122462](https://github.com/AB/issues/122462)
* Enable menu and account on one line, and icon-only menu items ([#2826](#2826)) ([b6c0082](b6c0082)), closes [AB#121668](https://github.com/AB/issues/121668)
* New expression field to set values on complete ([#2837](#2837)) ([3d940ba](3d940ba)), closes [AB#124987](https://github.com/AB/issues/124987)
* People picker in forms ([#2833](#2833)) ([bd6af42](bd6af42)), closes [AB#68534](https://github.com/AB/issues/68534)
* When there is only one sub-menu item assigned to the current role, hide the menu ([#2830](#2830)) ([d66745d](d66745d)), closes [AB#122254](https://github.com/AB/issues/122254)
…ource and enable sorting and filtering by those calculated fields
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants