Skip to Content
author's profile photo Former Member
Former Member

DO_HANDLE_EVENT in sub-controller?

Hi there,

Please can someone help me....this main / sub-controller way of doing things is great BUT I'm battling to get the DO_HANDLE_EVENT to fire in my sub-controllers. How do you specify a controller to be a sub-controoler when you create it? I'm busy doing a BSP application and have all the code in the right place but can't get the DO_HANDLE_EVENT in the sub-controllers to fire at all (but the application probably doesn't even see them as sub-controllers!!!)

I've got a "default.htm" page that is my "main view" has the following code in it...

<htmlb:tray id = "documentTypeTray"

title = "Document Type"

design = "form"

width = "100%"

isCollapsed = "false" >"

comp_id = "findDocument" />


Now if you can imagine the view called by "" has a button on it and when the user clicks on it I want the code to break in the sub-controllers DO_HANDLE_EVENT BUT it always breaks in the main controllers DO_HANDLE_EVENT....

I've obviously lost the plot somewhere....please help!!!



Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 26, 2003 at 03:08 PM

    Hi Lynton,

    Have you write a "dispatch_input( )." at the do_request of the main controller??

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Regina Breuer

      Hi Regina,

      Thanks so much for the reply...much appreciated!!

      I did call "dispatch_input()" in the main controller and it still didn't work....I did debug the application at runtime and the sub-controllers where NOT in table m_subcontrollers...

      And yes, I've just realised that the application was stateless....seems when you make a new BSP application it is stateless by default....

      You other explanations make lots of sense as well.....I have used create_controller before but not in the DO_INIT method of the maincontroller...

      Thanks again for your help