Xhtmlb: tabStrip - how to execut a page with flow logic

Hello all, how do I execute a "page with flow logic" from a "tabStrip".  Currently I am using a "page fragment".  But I need to change to a "page with flow logic" becuase of a technical issue. 
Is it possible to tell which tab was selected using event processing?  When I try, I am getting "illegal reference". 
Here is a sample of my current code.
<xhtmlb:tabStrip id            = "TABSTRIP"
                 viewState     = "EXPANDED"
                 viewStateMode = "COLLAPSED_EXPANDED"
                 tooltip       = "Choose tab" >
  <xhtmlb:tabStripItem name  = "Home"
                       title = "Home" >
    <%@include file="home.htm" %>
  </xhtmlb:tabStripItem>
  <xhtmlb:tabStripItem name  = "Medical"
                       title = "Medical" >
    <%@include file="medical.htm" %> 
  </xhtmlb:tabStripItem>
  <xhtmlb:tabStripItem name  = "Dental"
                       title = "Dental" >
    <%@include file="dental.htm" %>
  </xhtmlb:tabStripItem>
  <xhtmlb:tabStripItem name  = "Vision"
                       title = "Vision" >
    <%@include file="vision.htm" %>
  </xhtmlb:tabStripItem>
  <xhtmlb:tabStripItem name  = "FlxSpnd"
                       title = "Flexible Spending" >
    <%@include file="home.htm" %>
  </xhtmlb:tabStripItem>
  <xhtmlb:tabStripItem name  = "Other"
                       title = "Other" >
    <%@include file="home.htm" %>
  </xhtmlb:tabStripItem>
  <xhtmlb:tabStripItem name  = "RevSub"
                       title = "Review and Submit" >
    <%@include file="home.htm" %>
  </xhtmlb:tabStripItem>
</xhtmlb:tabStrip>
What would I replace the "page frament" with?
Thanks in advance for your help, Troy

Hi Troy,
  If i understood your requirement i think you need to move to other pages or views when the tabstrip items or clicked. If your requirement is the above one below is the explanation....
In the layout you include a attribute  onSelect        = "mySelect" in the tag  xhtmlb:tabStrip.
For event handling in the oninputprocessing you write the below code,
   CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
DATA: TABSTRIP TYPE REF TO CL_XHTMLB_TABSTRIP.
Reading Data from Toolbar
TABSTRIP ?= CL_HTMLB_MANAGER=>GET_DATA( REQUEST = REQUEST
                                        NAME    = 'xhtmlb:tabstrip'
                                        ID      = 'tb3' ).
Optional: test that this is an event from HTMLB library.
IF EVENT_ID = CL_HTMLB_MANAGER=>EVENT_ID.
Scenario 1: Read event from manager.
  DATA: EVENT TYPE REF TO IF_HTMLB_DATA.
  EVENT = CL_HTMLB_MANAGER=>GET_EVENT_EX( RUNTIME->SERVER->REQUEST ).
DATA: request_event TYPE REF TO cl_xhtmlb_event.
request_event ?= event.
IF EVENT IS NOT INITIAL AND EVENT->EVENT_NAME =
CL_XHTMLB_TABSTRIP=>CO_EVENT_NAME.
*---here you can handle the event... 
ENDIF.
ENDIF.
Regards,
Azaz Ali.

Similar Messages

  • How to call the Page Fragment in Page with Flow logic

    Hi,
        I am new to BSP, My requirement is to created 1 page fragment which contains the Logo.  and to create 2 pages in flow logic
    The  logo has to apper in Pages with flow logic Pages. My question is how to call the PAge fragment in the 1 &2 pagesin page with flow logic
    Thanks,
    suresh

    Suresh,
    There is a very enriching portal help.sap.com  where you can find all basic and good documentation .
    http://help.sap.com/saphelp_nw04/helpdata/en/77/8a54d7434ff34784272a3df98ab645/content.htm
    the above link is from that portal.
    Before asking such basic questions please at least try to find or do some research yourself.
    There are standard applications like HTMLB_SAMPLES and SBSEXT_HTMLB and more for sample applications.
    Regards,
    Anubhav

  • Calling a BSP page with flow logic from LAYOUT

    Hello all.  I am developing a BSP transaction to update HR data on SAP.  I initially developed this with one 'page with flow logic' and several 'page fragment's.  It has been suggested that I break this out into several pages with flow logic because the code in  the 'OnInputProcessing' Event Handler was getting quite complicated.  I was using the BSP directive to execute my 'page fragments'.  This was very simple to do.  What do I replace the BSP directive to call a page fragment with in order to call a page with flow logic.  I have included the code below.  I have converted the 'body.htm' 'page fragment' to a 'page with flow logic' and I am not sure of the correct way to call the page.  I do not have access to the navigation->goto_page( 'body.htm' ) at this point.  I am new to BSP and appreciate any help offered.
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <%@extension name="phtmlb" prefix="phtmlb" %>
    <%@extension name="xhtmlb" prefix="xhtmlb" %>
    <htmlb:content id     = "content"
                   design = "design2002+design2003" >
      <htmlb:document disableBackspaceNavigation="TRUE" >
        <htmlb:documentHead title="ESS: Employee Self Service" >
        </htmlb:documentHead>
        <htmlb:documentBody>
          <htmlb:form id="OOEform" >
            <%-- Positioning --%>
            <htmlb:gridLayout columnSize = "2"
                              rowSize    = "2"
                              width      = "100 %" >
              <%-- Row 1 - Header --%>
              <htmlb:gridLayoutCell columnIndex       = "1"
                                    rowIndex          = "1"
                                    colSpan           = "2"
                                    width             = "100 %"
                                    verticalAlignment = "MIDDLE" >
                <DIV style="border-bottom-style:solid;border-color:#A5B1BF;border-width:20px">
                <%@include file="header.htm" %>
                </DIV>
              </htmlb:gridLayoutCell>
              <%-- Row 2; Column 1 (Body Area) --%>
              <htmlb:gridLayoutCell columnIndex       = "1"
                                    rowIndex          = "2"
                                    width             = "80%"
                                    verticalAlignment = "MIDDLE" >
                <%@include file="body.htm" %>
              </htmlb:gridLayoutCell>
              <%-- Row 2; Column 2 (Right Area) --%>
              <htmlb:gridLayoutCell columnIndex         = "2"
                                    rowIndex            = "2"
                                    width               = "20%"
                                    verticalAlignment   = "TOP"
                                    horizontalAlignment = "LEFT" >
                <%@include file="right.htm" %>
              </htmlb:gridLayoutCell>
            </htmlb:gridLayout>
          </htmlb:form>
        </htmlb:documentBody>
      </htmlb:document>
    </htmlb:content>

    Hi,
    uhmmm, as it was previously suggested, you should perhaps think about MVC for your development. Working with classes and methods gives you more room for a better looking code. But at this point I´m not sure where your real problem is. You mentioned first that you created one page with logic and several page fragments and then you are worried because the code in the OnInputProcessing event is getting out of control
    First, you cannot insert a page in a page. You can only insert fragments in a page with <%@include file="header.htm" %>.
    Second, if you don´t have idea of MVC or you don´t want to switch to MVC, then create a modules program (SE38) where you´ll enter your code as subroutines and you call these subroutines from OnInputProcessing as follows:
    perform subrout1 in program XXXXXX tables YYYYY using AAAAA.
    In your programm XXXXX you declare the code as:
    form subrout1 in program XXXXXX tables YYYYY using AAAAA.
    This can be a substitute to classes and methods.

  • In MVC, do i need a View or Page with flow logic for POPUP window

    Hi All,
    I have the below scenario using the MVC pattern.
    I have a main view with 3 trays, each tray has two buttons, for example first tray has Create Order button. When I click on this button, I need a popup window to come with a tableview and a button(Create), where I select some rows and click on the button Create  to create order.
    But as per the MVC pattern I canu2019t call the view (popup) from another view(main view).  So should I create a VIEW or PAGE WITH FLOW LOGIC for the popup? .
    I need 6 popup to be called from the main view and once the function is done close the popup.
    Please suggest me the flow for this scenario.
    Cheers,
    Srini.

    Srini,
    1. You can call the view in pop-up because you will be calling the controller using open.window.
    Here is the sample code:
    method DO_REQUEST .
      data:
            li_vw           type ref to   if_bsp_page,
            lv_form_field   type          string,
            li_md           type ref to   zcl_model01.
      dispatch_input( ).
      li_md ?= get_model( 'm01' ).
      lv_form_field = request->get_form_field( 'invoice_create' ).
      if lv_form_field is initial.
    *------ Request to display main page
        li_vw = create_view( view_name = 'main.htm' ).
        li_vw->set_attribute( name = 'model' value = li_md ).
        call_view( li_vw ).
      elseif lv_form_field eq 'true'.
    *------ Request to display Invoice page in pop-up
        li_vw = create_view( view_name = 'invoice.htm' ).
        li_vw->set_attribute( name = 'model' value = li_md ).
        call_view( li_vw ).
      endif.
    endmethod.
    Layout:
          function do_Invoice()
          { var s=0; r=1; w=300; h=300; x=screen.width/2;
            x=x-w/2;
            var y=screen.height/4;
            y=y-h/2;
            popUp=window.open('main.do?invoice_create=true','win','width='+ w
            +',height='+ h +', left=' + x +',top='+ y +');
    Option2:
    Ofcourse you can't bind the model in page becos those are 2 different things. But all you need to do is access the model to get some value. To know how to access the model from Page w/flow logic look at [this link|Passing model reference to a page in a Popup].
    Raja
    Edited by: Raja Thangamani on Apr 14, 2009 11:22 AM

  • Hpw tp call a 'Page with Flow Logic' from within a View

    Within the same BSP, I have the requirment to call a page in the ;Page with Flow Logic' section from a page in the 'View' section.   
    Is this possible and if it is, how do I do it?  I have tried some calls but they all have failed.
    Thanks
    Glenn

    in the view you want to navigate then try
    <bsp: call > or <bsp: goto>  htmlb tags. or else you can use window.open method and open in a new window.

  • Fill select-options in Page with flow logic ???

    Hello All,
              I created a BSP Application using Page with Flow Logic.
    In the first page of my Application I'm using 2 input fields as select-options.
    Now I'm populating a Ranges of that Field using the type :-
    selopttab
    I populated the ranges table like :-
    wa_bname_sel-sign   = 'I'.
              wa_bname_sel-option = 'BT'.
              wa_bname_sel-low    = '*'.
              wa_bname_sel-high   = 'Z'.
            ELSE.
              wa_bname_sel-sign   = 'I'.
              wa_bname_sel-option = 'EQ'.
              wa_bname_sel-low    = p_bname.
              wa_bname_sel-high   = p_bname.
            ENDIF.
            APPEND wa_bname_sel TO p_bname_sel.
            CLEAR  wa_bname_sel.
    But the problem is I checked the corresponding DATABASE Table entries by passing thesame value .
    i.e I passed the low and high values to the field as '*' and 'Z'.
    The total number of entries differ when passing '*' and 'Z' to when passing SPACE.
    I tried even with contains Pattern .This time the total number of records fetching has Increased but the sum is not exact when passed SPACE to the Database Table.
    So what should I pass to the Low and High values of my Ranges Table to get all the entries ????
    DOes this type of building the Ranges work in BSP's ?
    How are u people working out for the select-options functionality in Page with flow logic ?
    Message was edited by:
            deepu k

    Hello Jessy,
    To populate select-options or Ranges in Page with flow logic I used the following code :
    ************************ Bulid the Select-Options**************************************
          DATA: p_bname_sel     TYPE STANDARD TABLE OF selopttab,
                p_bsp_name_sel  TYPE STANDARD TABLE OF selopttab,
                p_tcode_sel     TYPE STANDARD TABLE OF selopttab.
          DATA: wa_bname_sel    TYPE selopttab,
                wa_bsp_name_sel TYPE selopttab,
                wa_tcode_sel    TYPE selopttab.
    * Select-Options for Username
          REFRESH p_bname_sel.
          CLEAR   wa_bname_sel.
          IF ( p_bname IS INITIAL  ).
            wa_bname_sel-sign   = 'I'.
            wa_bname_sel-option = 'CP'.
            wa_bname_sel-low    = '*'.
            wa_bname_sel-high   = ''.
          ELSE.
            wa_bname_sel-sign   = 'I'.
            wa_bname_sel-option = 'EQ'.
            wa_bname_sel-low    = p_bname.  " p_bname is the Input field and the value is taken from it
            wa_bname_sel-high   = p_bname.
          ENDIF.
          APPEND wa_bname_sel TO p_bname_sel.
          CLEAR  wa_bname_sel.
    * Select-Options for BSP_Application
          REFRESH p_bsp_name_sel.        
          CLEAR   wa_bsp_name_sel.
          IF ( p_bsp_name IS INITIAL  ).
            wa_bsp_name_sel-sign   = 'I'.
            wa_bsp_name_sel-option = 'CP'.
            wa_bsp_name_sel-low    = '*'.
            wa_bsp_name_sel-high   = ''.
          ELSE.
            wa_bsp_name_sel-sign   = 'I'.
            wa_bsp_name_sel-option = 'EQ'.
            wa_bsp_name_sel-low    = p_bsp_name.       " Input field
            wa_bsp_name_sel-high   = p_bsp_name.
          ENDIF.
          APPEND wa_bsp_name_sel TO p_bsp_name_sel.
          CLEAR  wa_bsp_name_sel.
    * Select-Options for TCODE
          REFRESH p_tcode_sel.
          CLEAR   wa_bsp_name_sel.
          IF ( p_tcode IS INITIAL  ).
            wa_tcode_sel-sign   = 'I'.
            wa_tcode_sel-option = 'CP'.
            wa_tcode_sel-low    = '*'.
            wa_tcode_sel-high   = ''.
          ELSE.
            wa_tcode_sel-sign   = 'I'.
            wa_tcode_sel-option = 'EQ'.
            wa_tcode_sel-low    = p_tcode.       " Input field
            wa_tcode_sel-high   = p_tcode.
          ENDIF.
          APPEND wa_tcode_sel TO p_tcode_sel.
          CLEAR  wa_tcode_sel.
    * Select all the related entries when either BSP or TCode is choosen
          IF ( ( p_bsp_name IS NOT INITIAL ) AND ( p_tcode IS INITIAL ) )
                     OR
             ( ( p_bsp_name IS INITIAL ) AND ( p_tcode IS INITIAL ) ).
            REFRESH gt_final.
            SELECT bname
                   bsp_name
                   description
                   ldate
                   ltime
                   calls
                   FROM <custom_table>
                   INTO TABLE gt_final
                   AND   bsp_name  IN p_bsp_name_sel
                   AND   ldate          IN p_ldate_sel.
    endif.
    Hope that wud help u !!!
    Regards,
    Deepu.K

  • Calling a page with flow logic from a controller

    Is there any possibility of calling a page with flow logic(x.htm ) from a controller?
    Also I want to know how to apply scrolling to a tableview  in a View as there is no event handler here. Iam able to view the first 30 records but want to navigate from 31 to 60...61to 90 and so on.......
    Thanks and regards,
    Sinu

    Thank you so much...
    but will I be able to call from a controller as we call  a view...similar to the below code.
    lref_first_view = create_view( view_name = 'first.htm' ).
    lref_first_view->set_attribute( name = 'MODEL' value =           mref_model_first ).
    call_view( lref_first_view ).
    I have already set the visibleRowCount....but my issue is to navigate to the next records i.e say 2nd page 3rd page..........
    Regards,
    Sinu

  • MVC model / page with flow logic

    Hi all,
    I have started using MVC model in BSP application. Can anyone tell me the name of the controller methods corresponding to the following event handler methods(in case of page with flow logic):
    onCreate
    onRequest
    onInitialization
    onManipulation
    onInputProcessing
    onDestroy
    Thanks and Regards
    Shilpa

    Hi Shilpa,
    onRequest          -
    > DO_REQUEST
    onInitialization      -
    >  DO_INIT
    onInputProcessing  -
    > DO_HANDLE_EVENT
    onDestroy             ---> DO_DESTROY
    Thanks.

  • Page With Flow Logic x Views

    Hi Guys,
    What is the main difference between working with Page with flow logic and Views? I mean, I may build up my site using only Page with flow logic or just using Views, so Why should I use views or Page w/FL or Both?
    Thank you in advance,
    Alexandre

    Hi ACR,
    You can build your application using only flow logic but not ONLY with views..
    Take a look at below threads for difference in MVC and Flow logic methods...
    [Difference in MVC and Flow logic 1.|Re: diffrence between MVC and Classical Bsp application]
    [Difference in MVC and Flow logic2.|Difference between MVC and PAGES WITH FLOW LOGIC]
    [Difference in MVC and Flow logic3.|MVC model / page with flow logic]
    Kindly search the forum for more details.
    Regards,
    Anubhav.

  • Differences between controller/view & pages with flow logic

    Hi experts!!
    I am trying to create a BSP using the SBOOKSHOP tutorial.
    What i have not understood so far is the differnce between creating a bsp with pages with flow logic,
    and using the controller/ view method.
    When should we use the first and when the other approach??
    Any link to documentation would be appreciated!
    Thank you!!

    Hi Grigoria Koutsogianni,
    I hope the older thread on the same topic could help you understand the difference!
    1. Re: Understanding easy BSP development (MVC vs. Flow Logic and more...)
    2. Re: diffrence between MVC and Classical Bsp application
    -Maheswaran

  • Open a pop-up in the OnInputProcessing part of a web page with flow Logic

    Dears all,
    System used : SAP WebAs 6.20
    I have a html page in my project where every user can choose some options with radio buttons. When the user choose something, he click on a button which send us in the OnInputProcessing part of the page.
    In the OnInputProcessing, we will do a CALL FUNCTION. If the result is Ok, we must display a pop-up with only a OK button.
    From the layout part of the page, I display a pop-up with success using this code :
    SCRIPT language=javascript
       function ConfirmMessage() {
           var bflag = confirm("Are you sure that you want to confirm your offer ?")
           u2026
    /SCRIPT
    FORM
       <input type = "submit" onClickMethod="ConfirmMessage()" name="onInputProcessing(post)" value="Confirm">
    /FORM
    But I can't call this code form the OnInputProcessing. I try with the functions of the class : CL_JAVA_SCRIPT too, but nothing is displayed.
    Someone can help me ?
    Best Regards,
    Nelson
    To Insert the post I was obligated to remove all the ">" and "<" and rename OnClick in OnClickMethod...
    Edited by: Nelson Antunes on Feb 11, 2009 10:02 AM

    Hi Nelson ........ i wrote this test BSP page for you:
    Page Attribute :
    iv_visible type boolean.
    OnCreate:
    iv_visible = 'X'.
    OnInputProcessing:
    DATA:  event TYPE REF TO cl_htmlb_event.
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    CASE event->name.
       WHEN 'button' .
        CASE event->id.
          WHEN 'BUTTON'.
            if iv_visible = 'X' .
              " data status type bollean.
              " call function 'FUNC'
              " EXOPORTING
              " status = status .
              " if status =  'X'.
                 clear iv_visible .
              " else.
              "" do nothing
              "endif.
            endif.
          WHEN 'POPUP_OK'.
            " process action after the user confirm
          WHEN 'POPUP_CANCEL'.
            " process action after user press "cancel"
            " in confirm popup
            iv_visible = 'X'.
        ENDCASE.
    ENDCASE.
    Layout:
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = " ">
        <htmlb:form>
              <% if iv_visible is not initial. %>
               <% else. %>
               <% endif. %>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>    
    <style type="text/css">
        #confirm_popup{
          position: absolute;
          visibility: visible;
          border: 7px solid #001EA1;
          width: 300px;
          height: 50px;
          left: 400px;
          top: 300px;
          background-color: #ECE222;
    </style>
    Edited by: fabrizio gemma on Feb 13, 2009 5:49 PM
    Edited by: fabrizio gemma on Feb 13, 2009 5:51 PM
    Edited by: fabrizio gemma on Feb 13, 2009 5:52 PM
    Edited by: fabrizio gemma on Feb 13, 2009 5:57 PM

  • I bought an iPad and an iTunes card, I want to buy an application from the Apps store but it only gives me the option of credit card.  How can I buy Pages with my iTunes card to my iPad? thank you

    I bought an iPad and an iTunes card, I want to buy an application from the Apps store but it only gives me the option of credit card.  How can I buy Pages with my iTunes card to my iPad? thank you

    Have you redeemed your iTunes card to an account associated with an Apple ID?
    Once you have your iPad associated with an Apple ID AND you have an account with a credit card associated with the same Apple ID AND you have some 'store credit' (from redeeming your iTunes card) then purchases use the store credit before they charge the credit card, so you should be ok!
    Personally, I use 'store credit' as a way to monitor whether or not there have been any 'unauthorised' purchases because as soon as the store credit is zero, the security code from the credit card is needed for further purchases!  It does mean that I have sometimes to top up store credit before making a purchase, but 'better safe than sorry'! 

  • How to populate a page with images in across/down direction?

    Hi,
    Does anyone know how to populate a page with images in across and down direction (for example 6 X 6 )? It seems that I cannot use data table because records are only running downward and each row can have one record.
    Any suggestion would be appreciated. thanks.

    Alex,
    You can create your own tabular form using APEX_ITEM API's
    Create report and you can put similar code to following
    SELECT APEX_ITEM.TEXT(1,col1) pk1, APEX_ITEM.TEXT(2,col2) pk2 FROM your_tableSo data will be displayed in TEXT boxes as if it's a tabular form. Now you need to handle INSERT/UPDATE/DELETE processes manually. You can easily handle INSERT and DELETE. But handling UPDATE can be a nightmare. What if user has updated both the column values?
    Updated details
    One way out would be to use ROWID as Primary key to handle DELETE and UPDATE
    SELECT APEX_ITEM.CHECKBOX(1,ROWID) tick, APEX_ITEM.TEXT(2,col1) pk1, APEX_ITEM.TEXT(3,col2) pk2 FROM your_tablebut yet I suggest to go for proper primary key..
    Regards,
    Hari
    Edited by: Hari_639 on Dec 3, 2009 6:52 PM

  • How to make turning page with ibooks author?

    How to make turning page with ibooks author?

    This question has been answered on this thread
    https://discussions.apple.com/message/17981772#17981772#17981772
    Best regards.
    Alex

  • How to call html page with in the flash

    I am new to action script, can some one guide me how to call html page with in the flash. lets say i have movie clip having instance name as "news_feed", I need to disply the html page in this news_feed. kindly help me, thanks alot

    some one tell me, weather it is possible or not ??

Maybe you are looking for