I have a related list in a tabpanel with an onAction event on the fields.
When I click on a record in the related list (list view and/or list view locked)
[attachment=2]rel_1.png[/attachment]
and change the parent record
[attachment=1]rel_2.png[/attachment]
the previous selection is still displayed!??
[attachment=0]rel_3.png[/attachment]
The phenomenon appears only if there is an onAction set on the fields.
Is onAction set on the related list fields on the right? What does it do exactly?
Is there an onAction on the fields in the left list?
Are both tab panels sitting on top of a third form or on top of each other? Check relations?
Is there a function running at onRecordSelection of either of the forms?
In the second and third screenshot you don’t have that many records or do you? It looks like you have lots of empty records and one of them is selected.
the left list is the parent record, the right one is a list of related records to the left list record.
Both lists are sitting on top of a third form.
The right list mostly have only a few records or no record. There are no empty records between before or after the selected one! The related foundset on pic 2 with the active record on 8th position should be empty and on pic 3 the rel. foundset should only have one record.
If I change to a parent record with more than 8 related records in the right list and e.g. the first record is active, the content of the active (first) record of the foundset is displayed also on the 8th position and not the real content of the related record!?
I tried a lot to find out what this issue occurs. I have checked the relation, set the event functions (onAction, onRecordSelection, …) to default, set application.udateUI() in the onRecordSelection and many more, but always the same.
the left list is the parent record, the right one is a list of related records to the left list record.
Both lists are sitting on top of a third form.
The right list mostly have only a few records or no record. There are no empty records between before or after the selected one! The related foundset on pic 2 with the active record on 8th position should be empty and on pic 3 the rel. foundset should only have one record.
If I change to a parent record with more than 8 related records in the right list and e.g. the first record is active, the content of the active (first) record of the foundset is displayed also on the 8th position and not the real content of the related record!?
I tried a lot to find out what this issue occurs. I have checked the relation, set the event functions (onAction, onRecordSelection, …) to default, set application.udateUI() in the onRecordSelection and many more, but always the same.
Very interesting.
Can you reproduce this in a small sample solution and upload it here or let us play with what you have at the moment?
My solution is too big for an upload, but I will try to reproduce the issue in a sample.
Yesterday I have recreated a concerned form identical to the old one and now the issue is gone.
The solution and the forms who had displayed the issue are more than two years old and were working well in previous Servoy versions. I don’t touched them since over a year…