hi all
i know this should be easy but…
am trying to create a new related record and open a form in dialog (FID) with this new record for more data entry.
using this method:
maintenance_to_log_books.newRecord(false, true);
application.showFormInDialog(forms.logbook_detail , -1, -1, -1, -1, “Log Books”, false, false, true);
this opens the FID but doesn’t show the new record.
using this method:
maintenance_to_log_books.newRecord(false, true);
forms.logbook_detail.controller.showRecords(maintenance_to_log_books);
application.showFormInDialog(forms.logbook_detail , -1, -1, -1, -1, “Log Books”, false, false, true);
show the form with the new record, great! but doesn’t open a FID.
would appreciate any help,
thanks,
IT2Be
April 21, 2006, 5:55am
2
That means you script stops at the 2nd line.
It can be either:
The relationship you use there is wrong. The form should be able to load the data of the table on the right hand side of the relationship…
Or
The form is already on top because you do a showRecords() (should be loadRecords() ) you can not load a form in a dialog that is already showing…
Hope this solves your issue.
Thanks Marcel
the following method works fine:
maintenance_to_log_books.newRecord(false, true);
forms.logbook_detail.controller.loadRecords(maintenance_to_log_books);
application.showFormInDialog(forms.logbook_detail , -1, -1, -1, -1, “Log Books”, false, false, true);
It was the 2nd line “loadRecords” step i should have used.
thanks again,