Skip to Content
avatar image
Former Member

How to dynamically set view as default in View Set

Hi All,

I have multiple view in a view set of result area, How can i make any view as a default at run time.

Please advice.

Thanks,

Rajan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 03, 2015 at 07:47 AM

    Hello,

    if you have viewset with more views in viewareas, you can redefine method "DO_REPLACE_INITIAL_VIEW" on controller. In this method you can define, which view should be loaded for specific viewarea.

    Or you can change logic in HTML and in some condition you can define, which vieware should be loaded. For example you have 3 viewarea, but only one with name "Load1" should be loaded:

    add condition and this code:

    <bsp:call comp_id = "<%= controller->GET_VIEWAREA_CONTENT_ID( 'Load1' ) %>"

              url     = "<%= controller->GET_VIEWAREA_CONTENT_URL( 'Load1' ) %>" />

    With regards,

    Jiri

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 28, 2015 at 04:46 PM

    Hello, Rajan!

    Sorry, I don't understand what do you want to do? What is the business task?

    Regards,

    Viktor

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 10, 2015 at 10:31 AM

    Thanks Jiri.

    Sorry for delay. I myself figure out your second option and its really work.

    Add comment
    10|10000 characters needed characters exceeded