Page 1 of 1

Relation sort

PostPosted: Tue Jul 02, 2019 6:07 pm
by jbrancoIF
Hello,

I have a main form with a tab panel containing a table view with linked records (relation).

If I change the sort of the relation (in code or by clicking on the header of a column), everytime the main record changes, the relation sort is reset.

We can save the sort and reapply it every onRecordSelection, but that's not very efficient.
Does anyone solved this other way or am I missing something?

Thanks in advance,
João

Re: Relation sort

PostPosted: Mon Jul 08, 2019 7:04 am
by jbrancoIF
BUMP

Re: Relation sort

PostPosted: Mon Jul 08, 2019 8:59 am
by mboegem
Hi,

I don't think anyone will know the answer, since you are only describing behaviour but there are no details on client type, components etc.

So:
1) which client type is this (smart / web / ng?)
2) in case of NG: which component do you use to display the related records, or are you still using a native Servoy table view for this?

Afaik, this didn't happen before, so this might be different behaviour in a specific situation.

Re: Relation sort

PostPosted: Mon Jul 08, 2019 6:30 pm
by jbrancoIF
Thank you for your reply.

I tested this using a plain old smart client with a native servoy table view.
But I didn't mention any client because that's the behavior you have while dealing directly with a foundset object.

foundet.some_relation.sort('pk asc')

only affects the current record.