2 column definitions for a single table view

Hi Experts,
I have a requirement in which i need 2 column definitions for a single table view.
The requirement is :
..............Week1...........              |....................Week2...............
01/01/2007 |  02/01/2007  |    15/01/2007 | 16/01/2007 | 17/01/2007
data.......... |  data..........  |    data.......... | data..........  |   data..........      
data.......... |  data..........  |    data.......... | data..........  |   data..........    
data.......... |  data..........  |    data.......... | data..........  |   data..........   
the weeks shud be displayed for the corresponing dates below......
Is it possible to have 2 column definitions
Please help me out.
Thanks in advance

Hi Balaiji,
proceed as follows:
Create a structure in the dictionary called ZSTRU_USR02_F
  with  field1 type int4
          field3 type int4
          field3 type int4
Create a table type in the dictionary:
zusr02  line type ZSTRU_USR02_F.
Create a structure in the dictionary:
ZSTRU_USR02
  with tab1  type zusr02
  and tab2  type zusr02
Create a table type in the dictionary:
zttusr02 line type ZSTRU_USR02
Create a controller (table.do) in a BSP-application
Add the controller class to this controller.
Add a attribute (table) instance public type zttusr02
redefine method do_request, add the following coding:
  FIELD-SYMBOLS: <fs_tab> LIKE LINE OF table,
                 <fs_row> TYPE zstru_usr02_f.
  DATA: lirv_view TYPE REF TO if_bsp_page,
        lv_int    TYPE i.
* Dispatch Input for event handling
  dispatch_input( ).
* Navigation requested during Event handling?
  IF is_navigation_requested( ) IS NOT INITIAL.
    RETURN.
  ENDIF.
* get some data into the table.
  INSERT INITIAL LINE INTO TABLE table ASSIGNING <fs_tab>.
  DO 3 TIMES.
    INSERT INITIAL LINE INTO TABLE <fs_tab>-tab1 ASSIGNING <fs_row>.
    ADD 1 TO lv_int.
    <fs_row>-field1 = lv_int.
    ADD 1 TO lv_int.
    <fs_row>-field2 = lv_int.
    ADD 1 TO lv_int.
    <fs_row>-field3 = lv_int.
  ENDDO.
  DO 3 TIMES.
    INSERT INITIAL LINE INTO TABLE <fs_tab>-tab2 ASSIGNING <fs_row>.
    ADD 1 TO lv_int.
    <fs_row>-field1 = lv_int.
    ADD 1 TO lv_int.
    <fs_row>-field2 = lv_int.
    ADD 1 TO lv_int.
    <fs_row>-field3 = lv_int.
  ENDDO.
* Create the view
  lirv_view ?= create_view( view_name = 'table.htm' ).
* Hand over the data
  lirv_view->set_attribute( name = 'table' value = table ).
* Call the view
  call_view( lirv_view ).
Create a view called table.htm. Add your controller class as controller class for the view and add the attribute table type zttusr02.
Add the following to the layout:
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
  <htmlb:page title = " ">
    <htmlb:form>
<htmlb:tableView id             = "tableToDisplay"
                 table          = "<%=table%>"
                 emptyTableText = "No Data"
                 iterator       = "<%=controller%>"
                 footerVisible  = "FALSE"
                 encode         = "TRUE"
                 width          = "100%"/>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>
Go back to your controller class. Add the interface IF_HTMLB_TABLEVIEW_ITERATOR
Implement the method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS
  DATA: lwa_column  LIKE LINE OF p_column_definitions.
* Column 1
  CLEAR lwa_column.
  lwa_column-columnname          = 'TAB1'.
  lwa_column-title               = 'Column 1'.
  lwa_column-tooltipheader       = 'Tooltip Column 1'.
  lwa_column-width               = '50%'.
  lwa_column-wrapping            = 'FALSE'.
  lwa_column-horizontalalignment = 'LEFT'.
  lwa_column-verticalalignment   = 'MIDDLE'.
  APPEND lwa_column TO p_column_definitions.
* Column 1
  CLEAR lwa_column.
  lwa_column-columnname          = 'TAB2'.
  lwa_column-title               = 'Column 2'.
  lwa_column-tooltipheader       = 'Tooltip Column 2'.
  lwa_column-width               = '50%'.
  lwa_column-wrapping            = 'FALSE'.
  lwa_column-horizontalalignment = 'LEFT'.
  lwa_column-verticalalignment   = 'MIDDLE'.
  APPEND lwa_column TO p_column_definitions.
Implement the method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START and add:
  DATA: lr_tview   TYPE REF TO cl_htmlb_tableview.
  FIELD-SYMBOLS: <fs_row> LIKE LINE OF table.
  ASSIGN p_row_data_ref->* TO <fs_row>.
  CASE p_column_key.
    WHEN 'TAB1'.
      CREATE OBJECT lr_tview.
      lr_tview->id = p_cell_id.
      GET REFERENCE OF <fs_row>-tab1 INTO lr_tview->table.
      lr_tview->footervisible = ''.
      lr_tview->width = '100%'.
      p_replacement_bee = lr_tview.
    WHEN 'TAB2'.
      CREATE OBJECT lr_tview.
      lr_tview->id = p_cell_id.
      GET REFERENCE OF <fs_row>-tab2 INTO lr_tview->table.
      lr_tview->footervisible = ''.
      lr_tview->width = '100%'.
      p_replacement_bee = lr_tview.
  ENDCASE.
With this you get a table in a table. Now if you create a second iterator you'll be able to adjust the apperance of the inner table, as well as you can add column headers.
Hope that helps.
Best Regards
Michael

Similar Messages

  • How to set dbms_stats parameters for a single table

    Hi,
    I see that dbms_stats has the following procedure:
    PROCEDURE SET_PARAM
    Argument Name Type In/Out Default?
    PNAME VARCHAR2 IN
    PVAL VARCHAR2 IN
    Is there a way to change the parameters only for a single table?
    I need to set METHOD_OPT=>'FOR ALL COLUMNS SIZE 1' only for a specific table...

    I'm sorry, mate. It looks like setting individual table preferences was introduced in 11g (and doesn't seem to work all that well).
    You can still:
    1. Explicitly specify any of the supported parameters by using DBMS_STATS.GATHER_TABLE_STATS() for the individual table and run it along.
    2. Write a PL/SQL wrapper for let's say DBMS_STATS.GATHER_SCHEMA_STATS/GATHER_DTABASE_STATS that would gather the stats for the whole schema but ignore this particular table. Then gather the stats for the table with the METHOD_OPT parameter of your choice that could be different from the one used for the rest of the schema.
    This could be achieved by locking particular table stats with DBMS_STATS.LOCK_TABLE_STATS, running GATHER_SCHEMA_STATS with force=>FALSE (which is the default). That parameter will make the procedure ignore any tables with locked stats. As the last step of the wrapper you can execute DBMS_STATS.GATHER_TABLE_STATS for the table in question with the desired METHOD_OPT and force=>TRUE.
    It's a little more work, but may solve your problem.
    Max
    Edited by: Max Seleznev on Nov 28, 2012 6:21 PM
    Edited by: Max Seleznev on Nov 28, 2012 6:22 PM

  • Maximum Number of Columns Allowed in OBIEE Answers Table View?

    Was wondering if anyone knew the maximum number of columns allowed in OBIEE Answers Table View? I could not find it in documentation.
    Thanks in advance

    Hi,
    You can increase the maximum columns in a view by add some tags to instanceconfig.xml file.
    check this...http://obiee101.blogspot.com/2008/02/obiee-controling-pivot-view-behavior.html
    Regards,
    Srikanth
    Edited by: Srikanth Mandadi on Oct 15, 2010 10:04 AM

  • Column definition for a specific column in a view

    Is there a way to query the metadata to get the definition of a single column in a view? I can see the complete DDL for a view from USER_VIEWS.TEXT, and I can see the column listing in USER_TAB_COLUMNS to give the datatype etc. However, what I'm looking for is the DDL that defined a specific column.
    So, given:
    create table PERSON (
    SSN VARCHAR2(12),
    FIRST_NAME VARCHAR2(25),
    LAST_NAME VARCHAR2(25),
    STREET VARCHAR2(40),
    CITY VARCHAR2(30),
    STATE VARCHAR2(30),
    ZIP VARCHAR2(15),
    COUNTRY VARCHAR2(35))
    create view PERSON_VW as
    select SSN,
    FIRST_NAME,
    LAST_NAME,
    FIRST_NAME || ' ' || LAST_NAME FULL_NAME
    from PERSON
    I expect the query might look something like:
    select DDL from metadata where table_name = 'PERSON_VW' and column_name = 'FULL_NAME'
    and the result would be: "PERSON.FIRST_NAME || ' ' || PERSON.LAST_NAME"
    or select DDL from metadata where table_name = 'PERSON_VW' and column_name = 'FIRST_NAME'
    and the result would be: "PERSON.FIRST_NAME"
    Thanks!

    >
    Hi again Barry,
    When I queried user_tab_columns (or dba_tab_columns or all_tab_columns), I have the following list of columns:
    TABLE_NAME
    COLUMN_NAME
    DATA_TYPE
    DATA_LENGTH
    DATA_PRECISION
    DATA_SCALE
    NULLABLE
    COLUMN_ID
    DEFAULT_LENGTH
    DATA_DEFAULT
    I don't see anything resembling the DDL for the view column. Somewhere underneath some
    cover I haven't peeked under, Oracle must be keeping track of what it is supposed to be giving
    for, in my example, FULL_NAME.Unless I'm very much mistaken, these columns' data (per table) looks pretty much like DDL to me.
    Maybe what you need is just SQL Developer (great tool, if you don't have it, get it!).
    And it's free (as in beer - not as in speech! :( )
    Beside the connections tab is a "Reports" tab with various, as you might expect ;), reports.
    One of them is on the Tables - with (some) DDL. This will work as a once-off if that's what
    you need?
    Otherwise there's the SQL tab if you open a table under connections - it's very complete - sample
    at bottom of post.
    HTH,
    Paul...
    (Ultimately, I'm diagnosing problems in existing databases that have views already created so
    I don't have the option of considering virtual columns.)Quelle surprise ;(
    Paul...
    -Barry
    CREATE TABLE "HR"."COUNTRIES"
        "COUNTRY_ID"   CHAR(2 BYTE) CONSTRAINT "COUNTRY_ID_NN" NOT NULL ENABLE,
        "COUNTRY_NAME" VARCHAR2(40 BYTE),
        "REGION_ID"    NUMBER,
        CONSTRAINT "COUNTRY_C_ID_PK" PRIMARY KEY ("COUNTRY_ID") ENABLE,
        CONSTRAINT "COUNTR_REG_FK" FOREIGN KEY ("REGION_ID") REFERENCES "HR"."REGIONS" ("REGION_ID") ENABLE
      ORGANIZATION INDEX NOCOMPRESS PCTFREE 10 INITRANS 2 MAXTRANS 255 LOGGING STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
      TABLESPACE "USERS" PCTTHRESHOLD 50;
    COMMENT ON COLUMN "HR"."COUNTRIES"."COUNTRY_ID"
    IS
      'Primary key of countries table.';
      COMMENT ON COLUMN "HR"."COUNTRIES"."COUNTRY_NAME"
    IS
      'Country name';
      COMMENT ON COLUMN "HR"."COUNTRIES"."REGION_ID"
    IS
      'Region ID for the country. Foreign key to region_id column in the departments table.';
      COMMENT ON TABLE "HR"."COUNTRIES"
    IS
      'country table. Contains 25 rows. References with locations table.';

  • Unable to reorder/change column names on interactive single row view

    I have created an interactive report and grouped my columns to display nicely in a single row view report. However, once I initially add the columns to a group, I am unable to reorder them. I can move them up and down the list, but the changes don't save. Also, I have gone through column by column and unchecked the box that says Use Same Text for Single Row View and expanded the column name. However, the single row view still displays what is in the master report. I've tried closing out my browser completely and reopening, but I am still not seeing my changes. Any suggestions?

    I also just stumbled about the "Use Same Text for Single Row View" option actually doing nothing - in Single Row View I still get the label text from "Column Heading", no matter what I enter in "Single Row View Label".
    I had to adjust a column width using a span tag in the heading (as this seems to be the only way to do that - any other suggestions I found adding style information to the region header had no effect), and now that tag is displayed in the Single Row View label.
    I can live with that for now, but it's not really nice.
    Is this a known bug? Didn't find anything else in the forum regarding this problem so far.
    Holger

  • How to create editable tablecells for a single table row dynamically?

    Hi
    How to make the cell of a tablerow editable based on flag in backing list object bound to row? I can't decide the editable property while creating table columns. So i can't use setCellFactory() during creation. However setCellFactory() makes all cells in table column editable.How to make non-editable table row cell editable and vice-versa based on flag?

    hi
    good
    if you want to create two different view for a same table than you cant give the same name for the same view,otherwise it would allow you to create the view.Try out with different view name as well as the function group name,i hope this ll work.
    thanks
    mrutyun^

  • Getting last year column value from a single table

    I am having the following columns in my table
    BRANCH_CD
    YYMM
    VNDR#
    VGROUP#
    SALES_TRGT_AMT
    SALES_ACTL_AMT
    CUM_TRGT_AMT
    CUM_ACTL_AMT
    i need to get sales_actl_amt from this year and sales_actl_amt from last year from a single table
    pls help
    thank you
    Edited by: 960991 on Nov 19, 2012 11:13 PM

    Hi ashish,
    but i can't use unions in my reports.
    once view my query :
    select t.branch_cd,b.branch_e_name,t.vndr#,v.vndr_name,
    sum(nvl(t.sales_actl_amt,0)) sales_actl_amt
    from inv_sales_trgt_val t,branches b,vendor v where
    t.branch_cd=b.branch_cd and
    t.vndr#=v.vndr# and
    (t.yymm between :fiscal_month and :fiscal_month2) and
    (:fiscal_month<>trunc(:fiscal_month2,-2)) and :fiscal_month2<>trunc(:fiscal_month2,-2)) and t.branch_cd between :from_branch and to_branch and
    t.vndr# between :from_vndr and :to_vndr
    group by t.vndr#,v.vndr_name,t.branch_cd,b.branch_e_name
    order by t.vndr#,t.branch_cd;
    how can i get last year sales_actl_amt .

  • Table Alias for a single table query

    Hi,
    What is the difference between using table alias and not using for a query involving single table.
    Say
    select empno, ename from emp where empno = 1000;
    select e.empno,e.ename from emp where e.empno = 1000;
    select 1 from emp e where e.empno = 1000;
    how above three queries shall be parsed/executed. Can anyone please explain the process ......

    Since the 3rd query doesn't access any column values the execution differs from the others:
    SQL>  explain plan for select empno, ename from emp where empno = 1000
    Explain complete.
    SQL>  select * from table(dbms_xplan.display)
    PLAN_TABLE_OUTPUT                                                                                  
    Plan hash value: 2949544139                                                                        
    | Id  | Operation                   | Name   | Rows  | Bytes | Cost (%CPU)| Time     |             
    |   0 | SELECT STATEMENT            |        |     1 |    10 |     1   (0)| 00:00:01 |             
    |   1 |  TABLE ACCESS BY INDEX ROWID| EMP    |     1 |    10 |     1   (0)| 00:00:01 |             
    |*  2 |   INDEX UNIQUE SCAN         | PK_EMP |     1 |       |     0   (0)| 00:00:01 |             
    Predicate Information (identified by operation id):                                                
       2 - access("EMPNO"=1000)                                                                        
    14 rows selected.
    SQL>  truncate table plan_table
    Table truncated.
    SQL>  explain plan for select 1 from emp e where e.empno = 1000
    Explain complete.
    SQL>  select * from table(dbms_xplan.display)
    PLAN_TABLE_OUTPUT                                                                                  
    Plan hash value: 56244932                                                                          
    | Id  | Operation         | Name   | Rows  | Bytes | Cost (%CPU)| Time     |                       
    |   0 | SELECT STATEMENT  |        |     1 |     4 |     0   (0)| 00:00:01 |                       
    |*  1 |  INDEX UNIQUE SCAN| PK_EMP |     1 |     4 |     0   (0)| 00:00:01 |                       
    Predicate Information (identified by operation id):                                                
       1 - access("E"."EMPNO"=1000)                                                                    
    13 rows selected.

  • Search Help for Domain in Table View

    Hi,
    I have to give a search help for one column in a table view, and the values in the search help should come from a domain. I wrote this code, but it doesn't seem to work:
      lv_str_index = iv_index.
      CONDENSE lv_str_index.
      CONCATENATE 'table[' lv_str_index '].OP1A' INTO ls_map-context_attr.
      ls_map-f4_attr      = 'OPERATOR'.
      APPEND ls_map TO lt_inmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZOPERATOR'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_dtel
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    the ZOPERATOR is my domain. OP1A is the context attribute. I am actually not sure what to give for F4_ATTR.
    Please help...
    Thanks....

    Hi
    Instead of the Domain , use the Data Element which uses that particular Domain ZOPERATOR.
    For Example ZDE_OPERATOR is the data element which uses the Domain ZOPERATOR.
    then
      lv_str_index = iv_index.
      CONDENSE lv_str_index.
      CONCATENATE 'table[' lv_str_index '].OP1A' INTO ls_map-context_attr.
      ls_map-f4_attr      = 'OPERATOR'.
      APPEND ls_map TO lt_inmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZDE_OPERATOR'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_dtel
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.

  • How do you get the column names for a given table from an SQL LocalDB programmatically in Visual Basic.

    Just new to this and unable to find answers

    My solution
        Public Function GetTableColumnNames() As Boolean
            Form1.ListBox1.Items.Clear()
            _MDFFileName = String.Format("{0}.mdf", _DatabaseName)
            _sqlConnectionString = String.Format("Data Source=(LocalDB)\v11.0;AttachDBFileName={1};Initial Catalog={0};Integrated Security=True;", _DatabaseName, Path.Combine(_DatabaseDirectory, _MDFFileName))
            Dim cn As New SqlConnection(_sqlConnectionString)
            'put the table name in brackets in case it has spaces in it
            Dim SQLString As String = "SELECT * FROM [" & _TableName & "]"
            Try
                cn.Open()
                Dim cmd As New SqlCommand(SQLString, cn)
                Dim rdr As SqlDataReader =
                cmd.ExecuteReader(CommandBehavior.KeyInfo)
                Dim tbl As DataTable = rdr.GetSchemaTable
                'This shows all of the information you can access about each column.
                For Each col As DataColumn In tbl.Columns
                    Form1.ListBox1.Items.Add(col.ColumnName)
                    Debug.Print("col name = " & col.ColumnName & ", type = " & col.DataType.ToString)
                Next
                'Get each column.
                For Each row As DataRow In tbl.Rows
                    Form1.ListBox1.Items.Add(row("ColumnName"))
                Next
                rdr.Close()
            Catch
                MessageBox.Show("Error opening the connection to the database.")
            Finally
                cn.Close()
            End Try
            Return _Success
        End Function

  • Is there a  reference for the flows tables/views?

    Hi,
    for my own htmldb-forum I want to find the last login time of somebody, so I could determine which will be new forum messages for this user.
    Where can I find these informations? Is there a reference for the Flows tables and views?
    Bye,
    Jens

    heheh for learning purpose I been thinking of developing an app like what you have there.
    Is yours done ?
    Can we get have a look ?
    thanks

  • Default Max rows for pivot and table view that can display

    Hi Experts,
    what was the Maximum number of pivot table records,Maximum number of pivot table populated cells,Maximum number of table view rows by default in OBIEE.
    If i want to see where i can found all these things in OBIEE.
    If i want to change the default range of these rows is there any maximum limit for setting manually also or we can set any number of records.(i.e. if i want to display 100000 records will accept or there will be any range for setting also)
    Thanks,
    Edited by: RAJ.bi on Aug 5, 2012 8:12 AM

    Check the below link for the same
    http://docs.oracle.com/cd/E25178_01/bi.1111/e10541/answersconfigset.htm
    If you are going with 100K records per view, I think there is a limit for downloading into spread sheet.
    Pls mark correct or helpful

  • Selecting a column goes for a full table scan

    Hi,
    Oracle version 10.2
    I have the below query:
    SELECT   c.companyid,
             c.contactid,
             c.contactlname
        FROM contact c,company ic
       WHERE UPPER((c.contactlname)) LIKE CASE
               WHEN 'test' IS NULL THEN
                UPPER((c.contactlname))
               ELSE DECODE(1,
                       1,
                       '%' || 'TEST' || '%',
                       2,
                       'TEST' || '%',
                       3,
                       '%' || 'TEST',
                       4,
                       'TEST')
             END
         AND c.activeflag = DECODE('Y', 'N', 'Y', c.activeflag)
         AND ic.companyid=c.companyidthis is using the index on table company.
    Explain plan:
    SELECT STATEMENT, GOAL = ALL_ROWS               68     3523     176150     
    NESTED LOOPS               68     3523     176150     
      TABLE ACCESS FULL          CONTACT     65     3523     155012     
      INDEX UNIQUE SCAN          COMPANY_PK     0     1     6          Now if i include two more columns from the company table in the select statement the plan changes and it goes for a full table scan...
    Query:
    SELECT   ic.companyname,
             ic.companystatustypeid,
             c.companyid,
             c.contactid,
             c.contactlname
        FROM contact c,company ic
       WHERE UPPER((c.contactlname)) LIKE CASE
               WHEN 'test' IS NULL THEN
                UPPER((c.contactlname))
               ELSE DECODE(1,
                       1,
                       '%' || 'TEST' || '%',
                       2,
                       'TEST' || '%',
                       3,
                       '%' || 'TEST',
                       4,
                       'TEST')
             END
         AND c.activeflag = DECODE('Y', 'N', 'Y', c.activeflag)
         AND ic.companyid=c.companyidExplain Plan:
    SELECT STATEMENT, GOAL = ALL_ROWS               2126     4121     403858     
    HASH JOIN               2126     4121     403858     
      TABLE ACCESS FULL          CONTACT     108     4121     185445     
      PARTITION LIST ALL               1959     1031340     54661020     
       TABLE ACCESS FULL          COMPANY     1959     1031340     54661020     Any ideas why?

    dont think so.
    i tried removing the filters also:
    Query:
    SELECT  -- ic.companyname,
           --  ic.companystatustypeid,
    c.companyid,
             c.contactid,
             c.contactlname,
             c.contactfname,
             c.contactpositionid,
             c.contactroledesc,
             c.updateddate
        FROM contact c,company ic
       WHERE ic.companyid=c.companyidplan:
    SELECT STATEMENT, GOAL = ALL_ROWS               109     73346     3520608     
    NESTED LOOPS               109     73346     3520608     
      TABLE ACCESS FULL          CONTACT     51     73346     3080532     
      INDEX UNIQUE SCAN          COMPANY_PK     0     1     6     Query:
    SELECT   ic.companyname,
             ic.companystatustypeid,
    c.companyid,
             c.contactid,
             c.contactlname,
             c.contactfname,
             c.contactpositionid,
             c.contactroledesc,
             c.updateddate
        FROM contact c,company ic
       WHERE ic.companyid=c.companyid
         Plan:
    SELECT STATEMENT, GOAL = ALL_ROWS               2462     73346     6894524     
    HASH JOIN               2462     73346     6894524     
      TABLE ACCESS FULL          CONTACT     51     73346     3080532     
      PARTITION LIST ALL               1348     973674     50631048     
       TABLE ACCESS FULL          COMPANY     1348     973674     50631048     Does the columns selected have an impact on the plan?? I thought the plan is derived on basis of the join conditions...

  • Exclude column from ir in single row view

    Hi Folks,
    my prob: I have a very long long column (url) in my ir. In my report view I want to show it shortended and in my single row view I want to show the whole value.
    So my query looks like:
    select long_url, substr(long_url, 1, 30)||'...' short_url
    from something;
    Then I exclude the long_url column interactively with the "select columns" option in the Actions menu and save the report as standard.
    Now my ir shows only the short_url in the report view, what is ok. But in the single report view it show both long_url AND short_url.
    I want to get rid of the short_url in single row view. Is there any way without creating a custom form page?
    Thanks!

    same question in other words: is there an apex variable to distinguish the report view from the detail view?
    please help!

  • Save functinality for a zcomponent (table view)

    Hi ,
    I have created a zcomponent with a table view in it.
    i have include the zcomponent(table view) in BP page.
    Now when i press on save button of BP page ,i need to save the data entered in the custom table view.
    so i need to redefine the save evenet (which is there in bp_head).
    How could i access the conents of table view in bp_head?
    thanks,

    The ideal code should look like this .. where BUILHEADER is the context node in the component controller
    and PARTNER is the context node in the custom component. Remember that the context node name in '' should match the exact name as it is declared in the method create_++++++ method. check in debugging if binding works.
    e.g.
    lr_model = owner->create_model( class_name = 'CL_BT112H_S_BSPWDCOMPONEN_CN01'
                                      model_id   = 'BTAdminH' ). "#EC NOTEXT
    wd_usage code should be like this.
      CHECK iv_usage IS BOUND.
      CASE iv_usage->usage_name.
        WHEN 'CU_ZBTV2'.
          iv_usage->bind_context_node( iv_controller_type  = cl_bsp_wd_controller=>co_type_component
                                       iv_target_node_name = 'BUILHEADER' "
                                       iv_node_2_bind      = 'PARTNER' ).
        WHEN OTHERS.
          CALL METHOD super->wd_usage_initialize
            EXPORTING
              iv_usage = iv_usage.
      ENDCASE.
    if binding is success. go the save method
    access the component controller code like this
    data: lv_comp_controller type ref to CL_BSP_WD_COMPONENT_CONTROLLER." u might have to change this to refer to the zclass of the comp controller.
    lv_comp_controller ?= me->COMP_CONTROLLER.
    then access the partner context node of the comp controller like below
    lcl_ent ?= lv_comp_controller->typed_context->partner->collection_wrapper->get_current( ).

Maybe you are looking for

  • Dead router....again

    Am I the only user that seems to have to buy a new linksys router every 8 months to a year?  I love linksys and will buy them forever since they tend to last longer than most routers out there, but I seem to have to buy a new one every year or so bec

  • Using Search Feature

    I have a brand new black Classic and used the Search feature for the first time to find a song/artist and ran into a problem that baffled me. I was looking for "Rock the Boat" by "The Hues Corporation". I first searched for "HUES" and it returned not

  • Need help with my podcast

    So here is my issue. My podcast work the site works but when I send it to itunes I keep getting this error bad http result code: 502.. Now in my inspector in iweb I have the rss feed saying allow in itunes store. What am i doing wrong. I am also host

  • Consistant Brush Lag in Photoshop, need help solving

    I know there have been others who've had this problem in the past, and I have researched and looked through various possible causes and finding nothing. I'm using a laptop with pretty good standard graphics and memory, more than what I was using spec

  • Reg : Oracle Certification

    Hi all, Two months before I did Oracle Certification . I dint get my certificate right now even mail also . I have the mark sheet with register number . Please let me know , How to get my certificate ? To whom I contact regarding this? Thanks in Adva