Page 3 of 3

Re: [INFO REQ] Group with complex field name

Posted: Tue Mar 07, 2023 3:02 pm
by henrique

Any new about this problem?


Re: [INFO REQ] Group with complex field name

Posted: Tue Mar 07, 2023 5:13 pm
by mats

Fixed now!


Re: [INFO REQ] Group with complex field name

Posted: Wed Mar 08, 2023 9:10 am
by johan.isaksson

Hi henrique,

I think there might be a misunderstanding here, the way we support "complex mappings" is by allowing dot notation in the dataSource, not in the field name.

This for example is (currently) not supported:

fields : [
  { name : 'team.name' }
]

But this is:

fields : [
  { name : 'teamName', dataSource : 'team.name' }
]

Hope that helps getting things to work the way you want!


Re: [INFO REQ] Group with complex field name

Posted: Wed Mar 08, 2023 1:10 pm
by henrique

This solves the problem, but not my problem. If this is the only solution, is necessary to create all this calculated fields, in all my models, this will need a lot of work to map all the calculated fields, because I have a lot of models inside another model. We are developing a large and complex system in my company, and this scheme to acesses complex fields, using the data source, will bring a lot of complexity to the system.

So, if doesn't work directly, I will create an override in the implementation to fix this in my source code.

Thanks for the help.


Re: [INFO REQ] Group with complex field name

Posted: Wed Mar 08, 2023 2:30 pm
by johan.isaksson

Hi,

Unfortunately I don't see any other option currently, supporting complex field names would require a large refactoring and is not something we are planning on doing at the moment.

Hopefully adding dataSource wont be that much of a burden, since you have to add field definitions anyway.

Good luck!