I'm seeing something happen for the first time in my Alpha experience. After a user deletes a child record, that record appears to be duplicated! Moreover, one of those two duplicate records cannot be selected nor scrolled to! If there are records before and after that record on the browse, it will simply skip over that "dead" record.
When I browse the child table alone, only one such record appears. But when I browse the set, both of them appear and, again, one of them cannot be scrolled to. Hmmmm? This is very odd!
When the user deleted the record, she used a button which I set up to assure that the parent record would not get deleted. In the button script, I assign tbl to the child table using a table.get() and verify that it is pointing to the record the user wants to delete. The code then follows with:
My only speculation is that maybe by using table.get() for the tbl pointer it is locked into the current session and cannot behave the way it would if it independently used table.open(). Regardless, why would the set indicate a record which the child table does not show?
BTW, when I packed both the parent and child tables, the "dead" record went away. But later when another child record was deleted, the same thing happened.
Steve
When I browse the child table alone, only one such record appears. But when I browse the set, both of them appear and, again, one of them cannot be scrolled to. Hmmmm? This is very odd!
When the user deleted the record, she used a button which I set up to assure that the parent record would not get deleted. In the button script, I assign tbl to the child table using a table.get() and verify that it is pointing to the record the user wants to delete. The code then follows with:
Code:
if dlg_result = UI_YES_SELECTED nRcd = tbl.recno() nMode = tbl.mode_get() if nMode = 0 tbl.change_begin() end if if nRcd = tbl.recno() tbl.delete() end if if nMode = 0 tbl.change_end() end if topparent:Browse2.refresh() else ui_msg_box("Nothing Deleted","User cancelled request for deletion.") end if
BTW, when I packed both the parent and child tables, the "dead" record went away. But later when another child record was deleted, the same thing happened.
Steve
Comment