Relation sort

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

BUMP

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.

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.