Skip to Content
0
Nov 04, 2005 at 09:07 AM

DO_HANDLE_DATA is called twice

29 Views

I have a BSP view with a couple of checkboxes. In my controller class, I have a table storing which checkboxes are selected. In DO_HANDLE_EVENT, I first clear this table and then loop over the form_fields to update the table with the new selection.

This does not work because DO_HANDLE_DATA is called twice. Once when leaving the page (which is OK) and once when re-entering the page (which is not OK for me).

In the second case, the form_fields - parameter in DO_HANDLE_DATA is empty. So in this case, my coding clears the selection table and cannot update it with the new selection, so the selection is gone.

What could I do about this? Why is DO_HANDLE_DATA called when entering the page as well?

Message was edited by: Daniel Humberg