cancel
Showing results for 
Search instead for 
Did you mean: 

TabStripItem OnSelect does not jump to Do_Handle_Event

daniel_humberg
Contributor
0 Kudos

I have a view and a corresponding controller.

The view has a Htmlb:Link with onClick="oc" and a Htmlb:TabStrip with 2 TabStripItems. The 2nd TabStripItem has onSelect="os".

If the user clicks on the link, Do_Handle_Event of the controller is excecuted. However, if he selects the 2nd tabstripitem, Do_Handle_Event is NOT executed (only Do_Request).

Shouldn't Do_Handle_Event be called in this situation? What could be the reason why it is not?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Can you post the code of your tabstrip just the definition?

I had a similiar problem and it was because I missed 1 of the parameters.

daniel_humberg
Contributor
0 Kudos

<htmlb:tabStrip width="590" >

<b> <htmlb:tabStripItem id = "tab_common"

index = "1"

tooltip = "..."

title = "a"

onSelect= "test"></b>

<htmlb:tabStripItemHeader>

<htmlb:textView text = "title" />

</htmlb:tabStripItemHeader>

<htmlb:tabStripItemBody>

bla

</htmlb:tabStripItemBody>

<b> </htmlb:tabStripItem></b>

<htmlb:tabStripItem id = "tab_all"

index = "2"

tooltip = "..."

title = "b"

onSelect= "all_components">

<htmlb:tabStripItemHeader>

<htmlb:textView text = "other" />

</htmlb:tabStripItemHeader>

<htmlb:tabStripItemBody>

blub

</htmlb:tabStripItemBody>

</htmlb:tabStripItem>

</htmlb:tabStrip>

Former Member
0 Kudos


<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title=" " >
    <htmlb:form>

      
      <htmlb:tabStrip width="590" 
                      id="MyTabs">
        <htmlb:tabStripItem id       = "tab_common"
                            index    = "1"
                            tooltip  = "..."
                            title    = "a"
                            onSelect = "test" >
          <htmlb:tabStripItemHeader>
            <htmlb:textView text="title" />
          </htmlb:tabStripItemHeader>
          <htmlb:tabStripItemBody>
            bla
          </htmlb:tabStripItemBody>
        </htmlb:tabStripItem>
      
        <htmlb:tabStripItem id       = "tab_all"
                            index    = "2"
                            tooltip  = "..."
                            title    = "b"
                            onSelect = "all_components" >
          <htmlb:tabStripItemHeader>
            <htmlb:textView text="other" />
          </htmlb:tabStripItemHeader>
          <htmlb:tabStripItemBody>
            blub
          </htmlb:tabStripItemBody>
        </htmlb:tabStripItem>
      
      </htmlb:tabStrip>

    </htmlb:form>
  </htmlb:page>
</htmlb:content>

I only made one change. I change this line


      <htmlb:tabStrip width="590" >

to this


      <htmlb:tabStrip width="590" 
                      id="MyTabs">

daniel_humberg
Contributor
0 Kudos

Cool.Works.

))

Former Member
0 Kudos

Glad to help out

Answers (0)