Skip to Content
author's profile photo Former Member
Former Member

Pop up data not visible when using Iterator ?

Hello All,

I'm having a wierd situation ! It's like this :

1. I have created a BSP Application and this shows the output in a table view .

my main page is default.htm and the popup page is details.htm.

2. When I select one of the record from the table view of default.htm page and press the Button called DETAILS a popup must open with the details of the selected row.

3. I created a page details.htm and I'm calling this page from my main page i.e default.htm as follows :

m_script = 'window.open("details.htm",null,"top=300,left=300,height=200,width=900,status=no,toolbar=no,menubar=no,location=no");'.

The Button Layout code is :

          <htmlb:button design        = "emphasized"
                        disabled      = "false"
                        id            = "details_id"
                        onClientClick = "<%= m_script %>"
                        text          = "<%= otr(/BSHP/FM_BSP/DETAILS) %>"
                        width         = "20" />

The layout code of the details.htm is :

 
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title="<%= otr(/BSHP/FM_BSP/DETAILS) %> " >
    <htmlb:form>
      <br>
      <htmlb:tableView id                  = "details_tab"
                       table                = "<%= gt_stad_details %>"
                       visibleRowCount     = "15"
                       width               = "100%"
                       design              = "alternating"
                       footerVisible       = "TRUE"
                       selectionMode       = "singleselect"
                       columnHeaderVisible = "TRUE"
                       *iterator            = "<%= iterator %>"*
                       filter              = "server" >
      </htmlb:tableView>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>

** Initialization Event :*

****************************************************************
* Get Details of the Execution
****************************************************************
  REFRESH gt_stad_details.

  CALL METHOD cl_bsp_server_side_cookie=>get_server_cookie
    EXPORTING
      name                  = 'details_list'
      application_name      = runtime->application_name
      application_namespace = runtime->application_namespace
      username              = syst-uname
      session_id            = runtime->session_id
      data_name             = 'gt_stad_details'
    CHANGING
      data_value            = gt_stad_details[].

************************************************
* Column Headings
************************************************

  CREATE OBJECT iterator TYPE /BSHP/FB_PORTAL_STAT_ITERATOR.

4. Now the problem is : When I use the iterator for the table in the details.htm page I'm not able to see the data but when I remove the iteratot then I'm able to see the data .

Can anyone tell me what's gng on there ?

Regards,

Deepu.K

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 30, 2008 at 07:54 PM

    Can you post your Iterator code here?

    Also check your itab gt_stad_details[] has value after reading from server side cookie.

    Raja T

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Raja,

      Thanks for ur reply.

      Actually the problem was with the field names which I used to build the iterator.

      I corrected the field names and now it's working fine.

      Sorry for the trouble.

      Regards,

      Deepu.K

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.