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 a comment
10|10000 characters needed characters exceeded

Related questions

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 a 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


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.