How to restrict number of column exposed by xsoData service at runtime

Hi All,
I have created one xsoData service over calculation view (imported one BW cube).
I want to expose few characteristics of cube and a key figure.
I want to decide this key figure at run time,means if i have say three key figures say quantity, cost and revenue apart of my characteristics.
when i run this service, i should be able to pass key figure name for which i want to see data.
Can i have a variable for column name for this purpose and how i can pass it its value ?
Please suggest.
Regards,
Rohit

Hi Thomas,
Thanks for the reply.
I have already used to restrict the number of columns using 'WITH' keyword.
Say there are 10 characteristics and 10 keyfigures in my calculation view.
Out of which i have exposed 3 chars and 3 KFs using 'WITH' keyword, for keyfigures i want to have one variable or placeholder in my xS ODATA  service whose value i want to pass from UI( through XS service URL).
So my service should fetch 3 Characteristics and a keyfigure say qty or cost or revenue.
Please let me know if anything is still not clear.
Regards,
Rohit

Similar Messages

  • How to restrict number of rows display using ig:gridView

    Hi
    All
    How to restrict number of rows display using <ig:gridView datasource="{mybean.mylist}">
    i am getting 10 rows using data_row . i wanna show only first 5 rows .
    pageSize ="5" will be ok . but it displays remaining rows in next page. but i want to display only first 5 rows . is there any attribute to restrict number of rows.
    thanks
    rambhapuri

    I have no idea which component you're talking about. If want to discuss here about a non-Sun JSF component, then please mention about the name, version and build in detail. You can also consider posting this question at the website/forum/mailinglist of the component manfacturer rather than here. At least I can tell you that the Sun JSF h:dataTable has the 'rows' attribute for that. I can also suggest you to just take a look in the TLD documentation of the component in question. There should be all possible attributes listed with a detailed explanation about the behaviour.

  • How to incrase number of columns in layout

    hi all,
    i am new to business intelligence my problem is
    how to insert number of columns in report layout
    i am not able to more than 5 or 6 columns then
    a pop-up is appearing as "cannot insert column because there not enough space"
    plz give solution
    thanks

    To get IColumnPrefs assuming you have an IDocument I use
    InterfacePtr<IColumnPrefs> colPrefs(document->GetDocWorkSpace(), UseDefaultIID());
    int32 columnCount = colPrefs->GetNumColumns();
    Mike

  • How to restrict number of concurrent connections etc.

    Hi,
    I'm able to use wi-fi thru WRT54GC.
    I want to know:
    1. How to restrict number of users connecting to the wireless network that is setup thru my router?
    2. I also want to know about any monitoring software which can tell me about connected PCs, user names, bandwidth available, bandwidth utilized etc.
    Thanks in advance
    Rajeev

    1. logon to router's setup page, open I.E. and in the address bar type 192.168.1.1, it would ask for username and password, put "admin" default password without any username... click on the wireless tab >> wireless security >> try setting up wireless security as per the requirements, also you can setup wireless MAC filter and you can setup MAC address of wireless computers which you want to allow to coonect to the network...
    2. not quiet sure about monitoring software which would show you detail log about bandwidth, bandwidth utilized by each computer...however you should view router's logs from linksys "logviewer" utility...go to ftp.linksys.com/pub/network and download the "logviewer" utility.
    let me know if you have any issues.

  • How to restrict number of received e-mails

    how to restrict number of received e-mails at iOS 7 ( at previous iOS there were options to receive last 50 or 100 or 200 messages ) ??

    I have no idea which component you're talking about. If want to discuss here about a non-Sun JSF component, then please mention about the name, version and build in detail. You can also consider posting this question at the website/forum/mailinglist of the component manfacturer rather than here. At least I can tell you that the Sun JSF h:dataTable has the 'rows' attribute for that. I can also suggest you to just take a look in the TLD documentation of the component in question. There should be all possible attributes listed with a detailed explanation about the behaviour.

  • How to restrict number of rows returned in a query

    Hi frnds,
    I'd like to restrict number of rows returned by my query to some 10 rows. how to do that.When I try doing with the rownum<10 its giving results for a particular dept and that too some 6 rows only...btw I'm grouping my table and includes joins from many a table and am ordering the table results by a column.. How to do this..

    776317 wrote:
    Hi frnds,
    I'd like to restrict number of rows returned by my query to some 10 rows. how to do that.When I try doing with the rownum<10 its giving results for a particular dept and that too some 6 rows only...btw I'm grouping my table and includes joins from many a table and am ordering the table results by a column.. How to do this..
    TELL ME HOW MANY ROWS YOU HAVE IN TABLE?
    Because you have only *6 rows* in you column, if you less than 10 rows then it displays only containied/exist rows. nothing much
    select ename,empno from emp where rownum < 10;Thanks

  • How To Restrict Number Of Rows For Multiple Group In Report Output

    Hi ,
    I have a requirement to restrict number of rows in report output.I have three different group , if i use same no of rows to restrict then output is as expected but if i want Deduction group should have 7 rows , earning should have 5 rows and Tax group have 3 rows in report output then XML tag is not working.
    Below is the XML tag i am using -
    First i have declare the variable to restrict the rows -
    <xsl:variable name="lpp" select="number(7)"/>
    <xsl:variable name="lpp1" select="number(5)"/>
    <xsl:variable name="lpp2" select="number(3)"/>
    For Each -
    <?for-each:PAYSLIP?>
    <xsl:variable xdofo:ctx="incontext" name="DedLines" select=".//AC_DEDUCTIONS"/>
    <xsl:variable xdofo:ctx="incontext" name="EarLines" select=".//AC_EARNINGS[ELEMENT_CLASSIFICATION!='Taxable Benefits']"/>
    <xsl:variable xdofo:ctx="incontext" name="EarTaxLines" select=".//AC_EARNINGS[ELEMENT_CLASSIFICATION='Taxable Benefits']>
    <?for-each:$DedLines?><?if:(position()-1) mod $lpp=0?> <xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
    <?if:(position()-1) mod $lpp1=0?><xsl:variable name="start1" xdofo:ctx="incontext" select="position()"/
    <?if:(position()-1) mod $lpp2=0?><xsl:variable name="start2" xdofo:ctx="incontext" select="position()"/>
    Report output is tabular form (one page has two column - Earning and Deduction ) . Tax group comes below earning group.
    Deduction Group -
    <?for-each-group:$DedLines;./REPORTING_NAME?><?if:position()>=$start and position()<$start+$lpp?>
    <?REPORTING_NAME?>
    <?end if?><?end for-each-group?>
    Earning Group -
    <?for-each-group:$EarLines;./REPORTING_NAME?><?if:position()>=$start1 and position()<$start1+$lpp1?>
    <?REPORTING_NAME?>
    <?end if?><?end for-each-group?>
    Tax Group -
    <?for-each-group:$EarTaxLines;./REPORTING_NAME?><?if:position()>=$start2 and position()<$start2+$lpp2?>
    <?REPORTING_NAME?>
    <?end if?><?end for-each-group?>
    Please let me know in case additional detail is require.
    Thanks in Advance.
    Thanks,
    Harsh
    Edited by: Harsh.rkg on Jan 14, 2013 9:43 PM

    variable lpp2 is declare to restrict EarTaxLines -
    <xsl:variable name="lpp2" select="number(2)"/>
    This will help to restrict the no of rows on one page , if we have more then two tax benefits line then layout will roll over to continuation page.
    As part of report output my expectation is if i restrict Earning , Deduction and Tax benefits to same no of line for example - variable lpp ,lpp1 and lpp2 have same value "number(2)" , we can see the layout is continue on next page (restrict every group can have max two lines) .This is the reason we have 4 header grid , deduction and Tax Benefit lines are rolled over to continuation page .But if we restrict different value for each variable then continuation page layout is missing .
    When we tried for <xsl:variable name="lpp2" select="number(3)"/> value continuation page layout is not getting generate for both employee number .

  • How to count number of columns in cross-tab report

    I have created a cross-tab report and have managed to get the data out as below:
                 Jan     Feb     Mar....(display of months will auto expand) Avg/Mo  Total
    UserA     4          3        4                                                                         11
    UserB     6          1        1                                                                          8
    UserC     5          5        5                                                                         15
    Total       15        9        10                                                                        33 
    I want to insert a calculated column (Avg/Mo) into the cross-tab report based on the formula: Total/Number of Months. I used this calculation formula  for Avg.Mo column:
    (GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/GetNumColumns)
    However, I get the wrong average since GetNumColumns count the total number of columns including the column of Avg/Mo and Total.
    How do i get the number of columns, excluding the Avg/Mo calculated column and Total column?
    PS: I can't use hardcode since the number of months/columns will auto expand the months progress...
    Edited by: jutamind on May 26, 2010 9:27 AM

    ok managed to solve this by slightly changing the formula:
    GridValueAt(CurrentRowIndex, CurrentColumnIndex+1, CurrentSummaryIndex)/(GetNumColumns-2)

  • How to find number of columns used in a ALV variant

    I need to know how many column is active ( will be shown in the ALV report ) related to a specific ALV Variant.
    Example :
    The structure of my internal table has 147 columns.
    The user in a specific ALV variant has chosen 25 columns of those 147 colums, so I need to know that this ALV variant will show 25 columns.
    Thanks!   Jo  

    Hi Max,
    Thanks for hints.
    Finnally I did the verification at the beginning of my process.
    Because I need the information before getting the data, so I called the METHOD with a "dummy" table,
    and I received the info of what I need, the number of column related to a specific ALV Variant.
    I used :
      ls_variant-report    = sy-repid.
      ls_variant-variant   = p_alvvar.   "<<<  Select-option field for AVL Variant
      ls_variant-log_group = 'L01'.
        CALL METHOD lo_grid1->set_table_for_first_display
          EXPORTING
            i_structure_name     = 'MY_STRUCTURE'
            is_variant          = ls_variant
            is_layout           = ls_layout
            i_save               = 'A'
            i_default            = 'X'
            I_BYPASSING_BUFFER   = 'X'
          CHANGING
            it_fieldcatalog     = LT_FIELDCATALOG
            it_outtab            = lt_dummy[].      
        CALL METHOD lo_grid1->GET_FRONTEND_FIELDCATALOG
          IMPORTING
            ET_FIELDCATALOG =  LT_FIELDCATALOG.
      loop at LT_FIELDCATALOG into ls_FIELDCATALOG where no_out = space.
              add 1 to LV_NB_COLUMNS.
      endloop.
    Jo  

  • How to know number of columns used in a cursor

    Hi,
    I am using some query in a cursor.
    I want to know the number of columns used in that query.
    Please let me how to do ?
    This is required because I want to export an oracle report into MS Excel.
    For this I need to know, upto which column I should write in excel cell.
    I am using Oracle 9i
    I hope, I am clear in my requirement.
    Regards
    Surendra

    You could use DBMS_SQL.DESCRIBE_COLUMNS :
    SQL> CREATE OR REPLACE
      2    FUNCTION column_count(
      3                          p_stmt VARCHAR2
      4                         )
      5      RETURN NUMBER
      6      IS
      7          v_cur     NUMBER;
      8          v_cnt     NUMBER;
      9          v_rec_tab DBMS_SQL.DESC_TAB;
    10      BEGIN
    11          v_cur := DBMS_SQL.OPEN_CURSOR;
    12          DBMS_SQL.PARSE(v_cur,p_stmt,DBMS_SQL.NATIVE);
    13          DBMS_SQL.DESCRIBE_COLUMNS(v_cur,v_cnt,v_rec_tab);
    14          DBMS_SQL.CLOSE_CURSOR(v_cur);
    15          RETURN v_cnt;
    16  END;
    17  /
    Function created.
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC DBMS_OUTPUT.PUT_LINE('column_count is ' || column_count('select * from emp'))
    column_count is 8
    PL/SQL procedure successfully completed.
    SQL> EXEC DBMS_OUTPUT.PUT_LINE('column_count is ' || column_count('select min(sal),max(sal) from emp'))
    column_count is 2
    PL/SQL procedure successfully completed.
    SQL> SY.
    Edited by: Solomon Yakobson on Sep 20, 2008 4:54 AM

  • How to restrict number of items in billing documents

    hi,
    is there any procedure for restricting number of items in sales order level or any document level.
    regards,
    bala

    Hi,
    You have to maintain the following in addition to our Guru,s reply
    You must also go to copying control for order/delivery to billing document at item level under "Data VBRK/VBRP" and maintain routine 006 "individual invoice limited" or a similar routine that accesses the data maintained here.
    then it will work.
    Regards,
    Ravi Duggirala

  • How to restrict number of rows returned in BIP

    Hi Friends..
    How to restrict no of rows displayed by the report to some 10 rows for example.. in BIP

    If its in RTF you can use position to restrict.
    <?for-each:ROW[position()<11]?>
    You can also restrict it in your sql query using ROWNUM.

  • How to get Number of Column in Excel file

    Hi All,
                   My requirment is to get Number of Column in Excel file which i want to upload,
      so please suggest if there is any possible way to get this functionality.
    Thanks
    Anirudh

    Use FM "ALSM_EXCEL_TO_INTERNAL_TABLE".
    Adjust the values of i_begin_col & i_end_col parameters in this FM.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          FILENAME                      =
          I_BEGIN_COL                   =
          I_BEGIN_ROW                   =
          I_END_COL                     =
          I_END_ROW                     =
        TABLES
          INTERN                        =
      EXCEPTIONS
        INCONSISTENT_PARAMETERS       = 1
        UPLOAD_OLE                    = 2
        OTHERS                        = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards,
    BBR.

  • How to restrict number of hits from a browser, within a specific interval.

    Hi,
    we have a web app in which user clicks on a specific submit continously. This fills up the server threads and other users trying to login either get a timeout or page not found. my questions ---
    1. Is there a way to configure weblogic to timeout the httprequest and also the underlying thead which is doing the work.
    2. Is there a way to restrict number of requests from a client within a specific interval..
    thanks in advance..

    Hello Benita
    Set the dialog type of your search help = 'A' (dialog depends on set of values).
    Regards
      Uwe

  • Matrix Reports - How to restrict no. of columns to be displayed in single page ?

    Hi all,
    This is a problem I have been facing since Reports 2.5.
    In a matrix, I can set a restriction on the number of rows to displayed by specifying Maximum no. of records per page on the repeating frame generating the rows.
    But the same solution on the repeating frame generating columns has a disastrous effect.
    Can any one tell me how to handle this ?
    Thanks in advance.
    Piyush
    null

    Hi
    Try the following link
    http://bipublisher.blogspot.com/2009/06/bi-publisher-conditionally-limiting.html
    Regards
    Debo

Maybe you are looking for

  • Best way to implement a docking container

    Hi everyone, I need to create a docking container that behaves the same way the draggable panel system works in Flex Builder (Eclipse): - Dock other containers to the edges - Automatically layout other containers when the dragged container is docked

  • BAPI in Visual Composer

    Dear all, im using Visual composer 7.0 and trying to build an application for Real Estate. when i goto BAPI transation in ECC 6.0 i can see my bapi bapi_re_sc_create with diffirent input parametrs than those appearing in the visual composer (input po

  • Pls help again ! (Java Certificate Sample Question )

    if("String".toString() == "String") System.out.println("1.Equal"); else System.out.println("1.Not Equal"); if(" String ".trim() == "String") System.out.println("2.Equal"); else System.out.println("2.Not Equal"); if("String" == "String") System.out.pr

  • Connection Problem with Interbase6. HELP PLEASE

    hi every one i am having a problem to connect with Interbase6. I am enclosing code & errors. it manage to get the driver but does not connect. I have found that this exception means that jdk is not consistant or their is security problem. But i have

  • I need help with my code..

    hi guys. as the subject says I need help with my code the Q for my code is : write a program that reads a positive integer x and calculates and prints a floating point number y if : y = 1 ? 1/2 + 1/3 - ? + 1/x and this is my code    This program that