Skip to Content
author's profile photo
Former Member

How can I hide a sub-controller's view on the screen?

Hello Experts-

BSP-MVC related question.

I have a main controller with a view. In it I use two HTMLB tray controls to display two sub-controllers (each with their own views).

I want to be able to handle an event in one of these sub-controllers (such a mouse click) and hide both these sub-controllers from the screen.

I then want to display two different sub-controllers (each with their own views) on the screen.

Essentially, I want to handle a sub-controller event and replace two sub-controller views on the screen with two others.

How can I do this?

I am aware of event handling. I just need the appropriate method for the hiding of sub-controller views(ie. I don't know whether I need to use CONTROLLER_SET_ACTIVE or DELETE_CONTROLLER or any other)


- Vik.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on May 04, 2004 at 02:52 PM

    Hello there-

    Here is how I achieved this requirement:

    (1) 'Export' all relevant values (variables/parameters/attributes) into memory [with a declared unique reference].

    (2) Use Navigation object from request handler of action sub-controller to request the "same master controller".

    (3) 'Import' all relevant values (variables/parameters/attributes) from memory into local variables [using the same unique reference].

    (4) Set up sub-controller branching logic in the view for the master controller using Case or If-Else-Endif to <bsp:call> certain controllers/components vs. others.

    (*) Presto! You now have control over the visibility (or invisibility) of certain sub-components/sub-controllers in the main controller. 😊

    Hope this helps,

    - Vik.

    Add comment
    10|10000 characters needed characters exceeded