related record refresh in the related tab panel

Hi there,

I have the following tables

student
parent
student_parent (relation between student & parent stored here)

In the studentList form I have another form called studentParent_parentList in a related tab panel showing parent records from student_parent using ther relation student_id__student_to_student_parent

I use a formInDialog to add/delete parent relation to the currently selected student. For deleting records I use a form studentParent_parentList of the table student_parent. I have to do a find and delete that particular record. After that the number of records in that foundset becomes 0. Now I close the formInDialog but the parentList in the tab panel shows 0 records instead of showing the actual related records.

I think this is because I have done a search on the tab panel form.
But I suppose the related records in the tab panel has to be refreshed when it gets the focus and also when going from one record to another.

Any ideas why it is not doing that?

Thanks

When you do a search in the tabpanel, it respects the search and not the relation. You can refresh the relation with:

controller.loadRecords(relationName)

Hope this helps.

ok thanks!

controller.loadRecords()

The above code supposed to load all related records according to the info in “move sample code” for this method.

//3) to reload all last related records again, if for example when searched in tabpanel
//currentcontroller.loadRecords();

But it does not seem to work? Any reasons or am I doing something wrong?

I am using

Servoy Developer
Version R2 2.2rc6-build 324
Java version 1.5.0_02-b09 (Windows 2000)