How to write if condition in Interactive reporting

Hi,<BR>Following function is existing in cognos<BR>if ( Calculation in the Report starts with M ) then ( 1 ) else ( months-between ( FolderItemRef[Prompts.Common.Dates.EffStartDt],FolderItemRef[Prompts.Common.Dates.EffEndDt] ) + 1 ) <BR><BR>I need to incorporate same in the Interactive reporting.I can keep Calculation in the report,EffStartDt,EffEndDt as the prompt and can get the value. But at query request line how can i incorporate the above expression so that i can get the output as the column in result set.<BR><BR>In addition to creation of computed column what else need to be done. Nullif function cannot be useful.<BR><BR>Let me know your points.<BR><BR>Regards<BR>R.Prasanna

<p>Hi prsan,</p><p>When you create a computed item column you can add standardJavaScript into the definition. To find out whether the valuestarts with an 'M' we can use the Substr built in function whichtakes a string, the start position of the substring and the numberof characters, for the else part of your conditional we can use theMonthsBetween built in function.</p><p>So if the column you are referencing is called Calc_In_Report wecan define the computed item as the if statement below.</p><p>Cheers,</p><p>--Ryan</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • How to create sub columns in interactive report

    can u tell me , how to create sub columns in
    interactive report. i really need it.i search lot but i dont get proper information.
    help plz...
    example : -
    |_____total_ persons _____|
    | persons | male | female |
    100 200 3000
    400 500 600

    i am nile.
    select id as id,
    male as male,
    female as female
    from persons.
    i want interactive report with main column total persons(static text) in that male , female.
    e.g.
    |___total persons_| - - - - -> main cloumn
    | male | female | - - - - -> sub columns
    100 200
    300 400
    Edited by: user9512075 on Aug 29, 2008 1:46 AM
    Edited by: user9512075 on Aug 29, 2008 1:47 AM
    Edited by: user9512075 on Aug 29, 2008 1:48 AM
    Edited by: user9512075 on Aug 29, 2008 1:49 AM

  • Get condition from interactive report

    Hi all!
    I have an interactive report.
    After the user has set some filter conditions I would like to write the ID's of the selected datasets into a table.
    This should take place in an "after-submit-process" in pl/sql.
    Something like:
    INSERT INTO #OWNER#.log_table (OBJT_ID) VALUES (SELECT ID FORM #OWNER#.source_table WHERE
    ":APEX_REPORT_CONDITION");
    My question:
    Is there an apex-object like ":APEX_REPORT_CONDITION"?
    Thanks for your help!
    Kai

    Hi Jari,
    thank you for your reply. But I need s.th. different:
    If I load my report-page and display "Debug" the SQL behind the report looks like:
    select
    null as apxws_row_pk,
    +"ID",+
    +"NUMBER",+
    +"TITLE",+
    +"ENTRY_DATE",+
    +"PRIOPRITY",+
    +"PROBABILITY",+
    count(*) over () as apxws_row_cnt
    from (
    select  *  from (
    select
    r.ID,
    r.NUMBER,
    r.TITLE,
    r.RPRI_NAME,
    r.ENTRY_DATE,
    r.PRIORITY,
    r.PROBABILITY
    from #OWNER#.MY_TABLE r
    where r.usr_name = :APP_USER
    +) r+
    where ("PROBABILITY" = :APXWS_EXPR_1*
    and "PRIORITY" = :APXWS_EXPR_2)*
    +) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)+
    +0.44: binding: ":APP_USER"="APP_USER" value="USER"+
    +0.44: IR binding: ":APXWS_EXPR_1"="APXWS_EXPR_1" value="(10-50%)"+
    +0.44: IR binding: ":APXWS_EXPR_2"="APXWS_EXPR_2" value="Hoch"+
    +0.44: IR binding: ":APXWS_MAX_ROW_CNT"="APXWS_MAX_ROW_CNT" value="10000"+
    As we can see, apex put an own select-statement around the original statement.
    What I need is the part in bold letters and the APXWS_EXPR_x-values. How can I get it?
    Has anyone any ideas? Thanks in advance!
    Kai
    Edited by: user610935 on Nov 25, 2009 11:27 PM
    Edited by: user610935 on Nov 25, 2009 11:27 PM

  • How to write a condition in BEX Query Designer

    Hi
    How can i write a condition in Query Designer
    Scenario
    An employee can purchase any no of policies in a day or month.each policy will have start date and expiry date.
    My requirment
    Count all the policies(valid) by employee on a ranges basis exception reporting
    (0-10;10-20;20-30;30-40) and then able to drill down by policy start date and expiry date.
    As per the requirment is to show policies which are not yet expired (active) i need to write a condition that will count only policies whose Expiry date is > Current calender day
    As Policy Expiry Date is a char i am converting it to KF using fourmala variable so that i can write a condition on it using current cal day formula variable sap exit
    But i char assigment of a condition i find 4 option
    How can i achieve this
    Thanks

    Hi Aurun,
    Thanks for the help,Really appreciated
    As this is my first enhancement using ABAP & CMOD
    What type of key (either Access or developer ) do i require to perform the following  enhancement......so that i can raise request with basis team
    I shall be great ful if u can asnwer below question
    First, you need to create a variable for expiry date with processing type as customer exit, and then give the necessary info.
    In details tab, unchk ready for input as we wont be taking the value from the prompt.
    Now go to CMOD transaction.
    Open the correcsponding project which has the exit code
    (How can i identify the project which has exit code)
    and go to ZXRSRU001 module inside taht.
    Go to the module where u write the exit.
    (How to locate the required module)
    Then, under i step 1, write the code:
    IF I_STEP = 1.
    CASE V_NAME  (What is 'V_NAME',Is it my variable technical name)
    WHEN 'X' " X is the variable u created for the exit
    l_s_range-low = SY-DATUM.
    l_s_range-opt = 'I'.
    l_s_range-sign = 'GT'.
    APPEND l_s_range TO e_t_range.
    END CASE.

  • Getting active filter conditions from interactive reports

    I have been having trouble with how to properly get the filter conditions that a user has applied to an interactive report. I have tried to get at this information using the Apex defined view APEX_APPLICATION_PAGE_IR_COND. However, the problem I am running into is if the user ends their session without first removing their filter conditions, those conditions remain in this view the next time (and any future times) the report is accessed. I can not seem to determine how to tell which filter conditions are actually active in the report. Any help would be greatly appreciated.

    I've done several tests, and the results I'm getting are not like that, if it were there would be no problem. The exact steps I'm doing is setting an arbitrary filter on an interactive report, and then logging out. When I log back in the view still shows those filter conditions, but no records are filtered on the actual report. I've tried this on two separate installations of apex (one 3.1, the other 3.2) and the results are the same. Is this irregular? Or has anyone else found a workaround for this.

  • How do I retrieve the Current Interactive Report Tab Identification

    I have found the FLOWS_030100.Tables.WWV_FLOW_WORKSHEETS and related tables which contain the information relating to the Interactive reports.
    I am writing a Procedure which need the 'Conditions' relating to a Saved Report tab of a Interactive report.
    I am able to retrieve the some current info via 'Substitution Strings' like:
    Flow_ID via APP_ID
    Page_ID via APP_PAGE_ID
    Session_ID via APP_SESSION
    This info will get me to the WWV_FLOW_WORKSHEET_RPTS table which relates to the individual Saved Reports for a IR.
    But if I have multiple Saved Reports on a single IR, I need to find the WWV_FLOW_WORKSHEET_RPTS.ID to be able to find the related rows on the WWV_FLOW_WORKSHEET_CONDITIONS table.
    Is there a location where I can find the current IR information like the 'Substitution Strings' I listed above that will get me this info?
    How would you attack this problem?
    Thanks

    Trying to report off of an interactive report conditions reliably will lead you down a long road of frustration. Getting the current tab ID is not too tricky here is some JS to get you started:
    function getCurTab() {
      //alert('function called');
      //Populate the array with all the page tags
      var tabs = $x('apexir_REPORT_TABS').getElementsByTagName("span");
      //Cycle through the tags using a for loop
      for (i=0; i<tabs.length; i++) {
        //alert(tabs.className);
    //Pick out the tags with our class name
    if (tabs[i].className=='current') {
    //Manipulate this in whatever way you want
    alert(tabs[i].id);
    setTimeout("getCurTab()",5000);
    getCurTab();
    This is just a rough and dirty example. This could greatly be improved by using jQuery and an onclick event rather than the timeout. So dont use this in any sort of production environment.
    Cheers,
    Tyson Jouglet                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to change font size in Interactive report

    Hi I am using Apex 4.02 version I need to get all reports into single page but it displayed excess the page limit. Example If report having more than 15 columns it should display in single page so I tried "break" option in all report column headers still it exceed the page. Can any one help me for this ..?
    How to reduce the font size or table width in Interactive report?
    Thanks
    Edited by: Sara254 on Jul 9, 2012 11:29 PM
    Edited by: Sara254 on Jul 9, 2012 11:30 PM

    Hi,
    you can do this in your style sheet.
    Look for class .apexir_worksheet_data and change the font-size.

  • How to modify standard or custom Interactive Reports

    Hello everyone!
    Is there a possibility to modify SAP standard Interactive Reports? Where can this be done?
    Also if I create a new custom Interactive Report using Wizard in WebUI I don't find any transaction where I can modify it. Should I use some SAP GUI transaction to do this? Or even BEX    Analyzer? Perhaps there is SAP Documentation about how to do it but I wasn't able to find it.
    Many thanks in advance for any help! Kind regards,
    Sasha

    Sasha
    To do this, you need to be logged in with the ANALYTICSPRO business role (standard). Once you access the web UI you will have the option to Search reports. Doing this will show you both the standard reports and the ones modified by you. If you want to modify the SAP delivered reports, select the report, click the Copy button and then rename it etc. You then walk through the wizard and make the changes you need.
    You can also modify the ones you created by clicking on Edit.
    Once you have created your new reports, go to t-code ordywb, then make sure the Show Custom Reports checkbox is clicked. This will show you the identifier for your custom report - this is what you put against your logical link in the nav bar profile to enable the users to run the reports.
    Hope this helps!
    Lisa

  • How to disable edit link in interactive report

    Hi,
    How to disable edit(e3.gif image) link interactive report.
    Thanks,
    nr

    Hi Jari,
    Apex Version:3.2
    I created on Interactive report on emp table I have created edit link on empno using Icon5 image.
    Report Attributes>Column Attributes>Column Link.
    I can Hide the Icon5 using following script but I need to disable only. I did not get any disable() method in Jquery.
    Region Id:R812581842900385833
    $(document).ready(function() {
    var viewOnly=document.getElementById('P1_ITEM1').value;
    if(viewOnly == "0")
    $("#R812581842900385833 img").hide();
    thanks,
    Nr
    Edited by: pnr on Mar 13, 2012 6:09 AM

  • How to create index/summary for Interactive Reporting report

    Hello everybody,
    Platform: Hyperion System 9.3.1.
    Is it possible to automatically create the document index/summary in an Interactive Reporting report?
    Any help will be very appreciated.
    Thank you!
    Daniela

    I will take a bit of work.
    You need to figure out how many records per page and how many pages your report may become then by doing a bit of math you can build the index on the Report Header/Footer

  • How to export everything from dashboard(Interactive reporting)

    Hi I have question regarding exporting dashboard as pdf(selcted values as well as results section).Can someone help me how to write a java script code export everything from dashboard from inaeractive reporting.
    Thx

    I have same problem. How you solved the problem? Could you provide the instruction?
    I exported the Dump file without any problem, but when I tried to import it to different instance, I got this error message.
    ORA-39125: Worker unexpected fatal error in KUPW$WORKER.PUT_DDLS while calling DBMS_METADATA.CONVERT []
    ORA-06502: PL/SQL: numeric or value error
    LPX-00007: unexpected end-of-file encountered
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 6235
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    2DF0B4B4 14916 package body SYS.KUPW$WORKER
    2DF0B4B4 6300 package body SYS.KUPW$WORKER
    2DF0B4B4 12279 package body SYS.KUPW$WORKER
    2DF0B4B4 3279 package body SYS.KUPW$WORKER
    2DF0B4B4 6889 package body SYS.KUPW$WORKER
    2DF0B4B4 1262 package body SYS.KUPW$WORKER
    2EC3C9F8 2 anonymous block
    Job "SYSTEM"."SYS_IMPORT_SCHEMA_04" stopped due to fatal error at 13:24:12
    Here is my import parameters:
    impdp userid=SYSTEM/password@ORA88T directory=data_pump_dir DUMPFILE=FULL_V25P.DMP SCHEMAS=EDCS, EDCS_RPT, UPLV LOGFILE=ImpV25P.LOG TABLE_EXISTS_ACTION=APPEND EXCLUDE=STATISTICS
    Edited by: user9532474 on Jul 24, 2009 12:49 PM
    Edited by: user9532474 on Jul 24, 2009 12:52 PM

  • How to Use MAX condition using Query Report

    Hi SAP Abap Expert,
    Can we use the MAX condition in Query Report (SQ01/SQ02) ?
    I have created one sample query using table VBRP and VBRK then i need to use max condition to get the MAX record in VBELN.
    Please Help ???

    Hi Ashishsingh,
    According to your description, you want to know how to use MAX function in SQL Server Analysis Services MDX Query, right? In this case, please refer to the link below which describe the syntax and sample of MDX function.
    http://technet.microsoft.com/en-us/library/ms145601.aspx
    http://www.mdxpert.com/Functions/MDXFunction.aspx?f=64
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to combine three tables in interactive report in apex

    Hi All,
    How to display the below Query in interactive report apex!!
    select distinct market d, marketid r from (
    select market, marketid,p.productid, h.hubid, s.begin_date, s.stripname
    from d_st s, d_ma x, d_hu h, d_pro p
    where s.ice_strip_id=x.ice_strip_id
    and x.baseproductid=p.productid
    and x.hubid=h.hubid
    and h.hubid=nvl(:P2__HUBID,-2)
    and p.productid=nvl(:P2__PRODUCTID,-2))g
    order by 2
    Thanks,
    Anoo..

    just paste your query into the source field of the interactive report.. thats it.

  • How to Prevent Sorting on Hyperion Interactive Reporting ?

    Dear All ,
    I am having an outline in specific order , When I make the OLAP query to use my Alias table in Hyperion Interactive reporting ,
    The data retrieved in a sorted way for the outline but sorting alias
    So how to stop sorting ? and how to make retrieve 2 columns near each other ; one for members name and its corresponding Alias

    add a stage covering rectangle to the lowest layer of your external swf and make sure the stage sizes of the loading and loaded swf are the same.  convert that shape to a movieclip and assign an instance name (eg, bg_mc).  in the actions panel, you can use:
    bg_mc._alpha=0;
    bg_mc.onRelease=function(){
    bg_mc.useHandCursor=false;

  • How to write the condition

    Hi guys, I wonder how to do this in Disco Desktop( not in admin). How to write the exists like a statement in “where close”
    select * from emp
    where exists (select 'x' from emp_1
    where emp_1.sal>2999
    and empno=emp.empno)
    Thank in advance.

    Hi
    In order to use a subquery in a condition there has to be an existing worksheet already in the workbook. If you don't have an existing worksheet then you will still see the Create Subquery option but you won't be able to use it.
    Here's a workflow to try it out using SYSDATE:
    1. First of all, make sure you open Desktop, not Plus.
    2. Create a new Table worksheet containing only a calculation, SYSDATE - you do this by continually clicking Next until you get to step 6 of the wizard, ignoring the message which says you have no items in the worksheet
    3. In step 6, click the New button
    4. Leave the calculation name as Calculation0 and add SYSDATE into the calculation
    5. Click the OK button
    6. Click the Finish button - you now have the current date in your worksheet
    7. From the menu bar, select Sheet | New Sheet and select Table
    8. Once again continually click Next until you get to step 6 of the wizard, ignoring the message which says you have no items in the worksheet
    9. In step 6, click the New button
    10. Leave the calculation name as Calculation1 and once again add SYSDATE into the calculation
    11. Click the OK button
    12. Click the Finish button - you now have the current date in your second worksheet
    13. Staying in the second worksheet, from the menu bar select Tools | Conditions
    14. Click the New button to create a new condition
    15. In Item use the drop-down and select Calculation1
    16. Under the drop-down for Value(s) you should see Create Subquery
    17. Notice how Discoverer has automatically selected Calculation0? This is the only item so naturally it will be selected. However, if you have more than one item Discoverer picks an item of the same data type
    18. Nothing more to do now except click the OK button a couple of times
    What you have done is said that the SYSDATE in worksheet2 is dependent upon the formula in sheet1 which happens to be also SYSDATE.
    To prove this working, go back into sheet1 and change the formula to SYSDATE -1, then go back to sheet 2 and refresh it. This time you should get no data returned showing that the subquery is working.
    By the way, any worksheets you create in Desktop that use subqueries will still work in Plus even though you cannot edit the subquery itself in Plus.
    Best wishes
    Michael

Maybe you are looking for