Scheduling WEBI Objects with date as parameters in InfoView

Hi,
We want to know if it is possible to schedule a WEBI Report in InfoVIew passing as parameters the actual day of execution. For example, if we scheduled a report that will run every day, we will want that every instance generated containing the data of the execution date, but when we tried to schedule this execution inside the InfoView the only options that we have is to select one date or a list of dates that will be equal for every execution of the report.
Any ideas?
Thanks a lot.
Kind Regards

Hi,
For oracle you can use hard coded 'sysdate' or 'todays date' as a default text in the prompt and then at the back-end you have to decode it and and write the query that will return the todays system date.
Here is the format not the exact code:
Table.Date = decode(@prompt(.....),'sysdate',query that will fetch the todays date)
OR
Table.Date = @prompt(.....)
Regards,
Rohit

Similar Messages

  • Scheduling WEBI reports with formulas for parameters

    Post Author: David Gordon
    CA Forum: WebIntelligence Reporting
    Hi,
    I am new to this environment. I would like to try and schedule a report monthly with dates (that will change from month to month). ie first and last day of previous month. Is there an easy way of achieving this automatically?
    D Gordon

    Post Author: DebT
    CA Forum: WebIntelligence Reporting
    Needed to do the same thing, with lots of different date ranges - month to date, year to date, last month, last week, fiscal year, etc.  Came up with a solution that takes a bit to set-up but then is re-usable and flexible.  I'll do my best to try and explain. 1)  Within the universe, created a "CurrentDate" derived table that calculates various points in time (yesterday, first of the week, last of the week, first of last month, last of last month, etc.).  Because the product would not let me use an unlinked table in calculations, I used a common table as the "from" in the SQL and included a common identifier so I could link the derived table to an existing table in the universe - I selected a small one with only a few records.  Using Oracle here, not SQL, so you'd need to modify to use SQL date functions, and add/delete the calculations you need:select distinctcommonidentiferfield,trunc(sysdate) as CurrentDate,trunc(sysdate)-1 as Yesterday,trunc(sysdate)1 as Tomorrow,case  when to_char(sysdate,'D')=2 then trunc(sysdate)-3  when to_char(sysdate,'D')=1 then trunc(sysdate)-2  else trunc(sysdate)-1  end as PriorWorkDay,case  when to_char(sysdate,'D')=6 then trunc(sysdate)3  when to_char(sysdate,'D')=7 then trunc(sysdate)2  else trunc(sysdate)1  end as NextWorkDay,case  when to_char(sysdate,'D')=5 then trunc(sysdate)4  when to_char(sysdate,'D')=6 then trunc(sysdate)4  else trunc(sysdate)2  end as TwoWorkDaysFromToday,trunc(sysdate,'D') as StartThisWeek,trunc(sysdate,'D')6 as EndThisWeek,trunc(sysdate,'D')-7 as StartLastWeek,trunc(sysdate,'D')-1 as EndLastWeek,trunc(sysdate,'D')7 as StartNextWeek,trunc(sysdate,'D')13 as EndNextWeek,trunc(sysdate,'MM') as FirstOfThisMonth,trunc(last_day(sysdate)) as LastOfThisMonth,trunc(last_day(add_months(sysdate,-2))1) as FirstOfLastMonth,trunc(last_day(add_months(sysdate,-1))) as LastOfLastMonth,case  when extract(month from sysdate)>=07 then extract(year from sysdate)1  else extract(year from sysdate)  end as CurrentFiscalYear,to_date(concat('07/01/',case                          when extract(month from sysdate)>=07 then extract(year from sysdate)                          else extract(year from sysdate)-1                          end),'mm/dd/yyyy') as StartCurrentFiscalYear,to_date(concat('23:59:59 06/30/',case                                   when extract(month from sysdate)>=07 then extract(year from sysdate)+1                                   else extract(year from sysdate)                                   end), 'hh24:mi:ss mm/dd/yyyy') as EndCurrentFiscalYear,case  when extract(month from sysdate)>=07 then extract(year from sysdate)  else extract(year from sysdate)-1  end as LastFiscalYear,to_date(concat('07/01/',case                          when extract(month from sysdate)>=07 then extract(year from sysdate)-1                          else extract(year from sysdate)-2                          end),'mm/dd/yyyy') as StartLastFiscalYear,to_date(concat('23:59:59 06/30/',case                                   when extract(month from sysdate)>=07 then extract(year from sysdate)                                   else extract(year from sysdate)-1                                   end), 'hh24:mi:ss mm/dd/yyyy') as EndLastFiscalYearfromsmallexistingtable 1a)  Link the derived "CurrentDate" table to smallexistingtable using
    your commonidentiferfield (at least I had to do this, though everything
    parsed ok in designer, when used in a query unlinked, it screamed quite
    unhappily which is why I ended up basing the query on
    smallexistingtable and linking). 2)  Created a "Dates" class and objects for each date in the above table, ie. "Current Date", "Yesterday", "Tomorrow", "First of last month", "Last of last month"3)  Created an object called Prompt - Date Range - Start Date.  This prompts the user to select the date range type they want and also allows for "custom" date ranges for on-demand reports.  For scheduled reports, you just select your response as part of the scheduled instance.casewhen @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Today' then @Select(Dates\Current Date)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Yesterday' then @Select(Dates\Yesterday)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Tomorrow' then @Select(Dates\Tomorrow)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Prior Work Day' then @Select(Dates\Prior Work Day)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Next Work Day' then @Select(Dates\Next Work Day)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Today - Next Work Day' then @Select(Dates\Current Date)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Two Work Days from Today' then @Select(Dates\Two Work Days From Today)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='This Week' then @Select(Dates\Start This Week)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Last Week' then @Select(Dates\Start Last Week)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Next Week' then @Select(Dates\Start Next Week)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Month' then @Select(Dates\First of this month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Last Month' then @Select(Dates\First of last month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Fiscal Year - EOFY' then @Select(Dates\Start of Current Fiscal Year)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Fiscal Year - Today' then @Select(Dates\Start of Current Fiscal Year)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Fiscal Year - Last Month' then @Select(Dates\Start of Current Fiscal Year)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Prior Fiscal Year' then @Select(Dates\Start of Last Fiscal Year)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Custom Start - Current Month' then to_date(@Prompt('Begin Date (Enter any date if N/A)','D',,MONO,free,Persistent,{'01/01/1900'},User:0,))when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Custom Start - Last Month' then to_date(@Prompt('Begin Date (Enter any date if N/A)','D',,MONO,free,Persistent,{'01/01/1900'},User:0,))when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Custom Date Range' then to_date(@Prompt('Begin Date (Enter any date if N/A)','D',,MONO,free,Persistent,{'01/01/1900'},User:0,))end4)  To capture the end date, created a second object, Prompt - Date Range - End Date.  Just be really sure that the wording of all your @Prompts is consistent throughout all the statements so you'll only receive one of each prompt.casewhen @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Today' then @Select(Dates\Current Date)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Yesterday' then @Select(Dates\Yesterday)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Tomorrow' then @Select(Dates\Tomorrow)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Prior Work Day' then @Select(Dates\Prior Work Day)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Next Work Day' then @Select(Dates\Next Work Day)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Today - Next Work Day' then @Select(Dates\Next Work Day)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Two Work Days from Today' then @Select(Dates\Two Work Days From Today)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='This Week' then @Select(Dates\End This Week)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Last Week' then @Select(Dates\End Last Week)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Next Week' then @Select(Dates\End Next Week)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Month' then @Select(Dates\Last of this month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Last Month' then @Select(Dates\Last of last month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Fiscal Year - EOFY' then @Select(Dates\End of Current Fiscal Year)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Fiscal Year - Today' then @Select(Dates\Current Date)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Current Fiscal Year - Last Month' then @Select(Dates\Last of last month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Prior Fiscal Year' then @Select(Dates\End of Last Fiscal Year)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Custom Start - Current Month' then @Select(Dates\Last of this month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Custom Start - Last Month' then @Select(Dates\Last of last month)when @Prompt('Select records for','A',{'Today','Yesterday','Tomorrow','Prior Work Day','Next Work Day','Today - Next Work Day','Two Work Days from Today','This Week','Last Week','Next Week','Current Month','Last Month','Current Fiscal Year - EOFY','Current Fiscal Year - Today','Current Fiscal Year - Last Month','Prior Fiscal Year','Custom Start - Current Month','Custom Start - Last Month','Custom Date Range'},MONO,CONSTRAINED)='Custom Date Range' then to_date(@Prompt('End Date (Enter any date if N/A)','D',,MONO,free,Persistent,{'01/01/1900'},User:0,))end 5)  Created a filter, Prompt - Date Selection that is used to select the appropriate records based on your record date being within the date range selected:@Select(My Date Field) between @Select(Prompt Fields\Prompt - Date Range - Start Date) and @Select(Prompt Fields\Prompt - Date Range - End Date)6)  When you create your query, just use the filter created in step 5.  I also usually include the Prompt - Date Range - Start Date and Prompt - Date Range - End Date objects so that I can use them min(Prompt - Date Range - Start Date) and max(Prompt - Date Range - End Date) in the report header to display the actual date range selected (all the value in Prompt - Date Range - Start Date are exactly the same, I use the min to avoid multiple value errors - same for Prompt - Date Range - End Date, I use max just because logically my brain likes that better).  When you refresh the query, it will ask what date range type you want, a start date and end date - used for custom ranges - you can enter any date if not selecting a custom date as it is ignored. Hope that makes sense and is helpful.  It's worked really well for me.  I also have an even more complicated version (imagine that!) for situations where there may be multiple dates a user can choose from, ie a posting date vs the date of service.  It will ask the user which they want and in the Prompt - Date Range - Start Date, a case statement is added to handle the selection/use of different date fields.Deb

  • How to schedule Webi Documents with Prompts with RESTful Web Services

    Hello,
    I am trying to schedule Webi Documents with Prompts using RESTful Web Services with prompts. I am using Simple Rest Client app provided by Google Chrome. We have Business Objects SP6 Patch 1.
    However the documentation for RESTful Web Services has only examples for the following
    1. Schedule Documents without any Prompts to various destinations and recurrences.
    2. Refresh Documents with Prompts.
    Is there any example for scheduling documents with prompts? Please advise
    Thanks in advance

    Hi Peter,
    With Rest Client, on BI4.0 SP6, you can schedule Webi documents with prompts using the following:
    URL: http://<servername>:6405/biprws/raylight/v1/documents/<docid>/schedules
    Method:POST
    Request Body:
    <schedule>
    <name>Enter values for City:</name>
    <format type="webi"/>
    <destination>
    <inbox/>
    </destination>
    <once retriesAllowed="2" retryIntervalInSeconds="60">
    <startdate>2013-08-26T15:58:51.000+02:00</startdate>
    <enddate>2013-08-27T15:58:51.000+02:00</enddate>
    </once>
    <parameters>
    <parameter optional="false" type="prompt" dpId="DP0">
    <id>0</id>
    <technicalName>Enter values for City:</technicalName>
    <answer constrained="false" type="Text">
    <values>
    <value>Austin</value>
    </values>
    </answer>
    </parameter>
    </parameters>
    </schedule>
    Using the above request you can schedule the Webi document with prompts to inbox destination  and set for once.
    The schedule can be sent in different formats to several destinations and set just for once, daily,
    hourly or monthly.
    You can also check the example for this on page 275 of SAP Webi RESTful SDK user guide for BI4.0 SP6 below:
    http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp6_webi_restful_ws_en.pdf
    Regards,
    Swati
    Message was edited by: Swati Ikhe

  • Web service with multiple out parameters

    Hi Developers,
    I have been playing around with som web services in the developer studio.
    I can create a webservice from a normal ejb.
    But i can only get one out parameter, which is the return parameter of the ejb.
    I tried to make an object to use as return parameter, but then i couldn't use the method for the web service.
    Can anyone tell me how to make a web service with multiple out parameters?
    Br Rasmus

    Hi Developers,
    I have the same question, is it possible to have multiple outgoing parameters?
    When not, does SAP Netweaver knows a IN-OUT parameter? Because I found on the internet that it is possible to have a IN-OUT parameter. But that was with the BEA Weblogic 8.x.
    When not, is then the only solution to return a object? With in this object all the parameters you want.
    Or otherwise is there a other workaround?
    Thanks in advance,
    Marinus Geuze

  • Problem scheduling webi reports with XI3.1 pending forever

    Hello,
    I've got a problem scheduling webi reports with XI3.1 scheduler.
    After confiming scheduling job (loggin in with "administrator" user), status remains "pending" forever(using Infoview or CMC).
    I tried different job recurrence a modalities (attachment formats, destination user etc).
    I also try to add (-javaArgs "Xmx900m,Xincgc,server") wich is the SAP solution found on its portal but it does not work.
    I use BO XI 3.1 in Windows 2003 server, after the install I reduced the maximum memory of Java in the tomcat 5.5.2 server from 1024 to 512 because the server never started with the initial size.
    Please I need Help.
    thanks in advance,
    Samy

    Hi,
    Below SAP solution found found in BOB Forum.
    I applied this solution and now everything works fine !!
    I just add  this -javaArgs "Xmx900m,Xincgc,server"  in the command line of the server
    Hope this helps:
    Symptom
    Scheduled WebIntelligence reports remain stuck in 'pending' status after installing Microsoft windows patches of April 2009. Restarting the Adaptive Job Server, Central Management Server or Server Intelligence Agent has no effect.
    The Event Viewer logs show the following entry: Unable to start the sub-process (Job Server Child). Cause : Couldn't get IJob interface or writing IAudit: Pipe exception. Reason: jobserverchild (WebIJavaSchedulingService ReplicationSchedulingService, 0, Timeout waiting for Child [4716] to register ([120]seconds).
    Reproducing the Issue
    Install Business Objects Enterprise XI 3.x on a French Windows 2003 SP2 32bits server
    Install the following Microsoft windows update patches of April 2009:
    KB923561, KB925336, KB952004, KB956572, KB959426, KB960225, KB960803, KB961373, KB967715
    Schedule a WebIntelligence report
    The report remains in Pending status
    Business Objects Enterprise XI 3.1
    Windows 2003 SP2 32bit (French)
    Microsoft windows patches of April 2009
    Cause
    With Microsoft windows patches of April 2009, the maximum Heap Size for java processes has been reduced to under 1000MB.
    Resolution
    Apply the following steps to fix the issue:
    Launch the Central Management Console
    Select Servers
    Right click on <server_name>.Adaptive Job Server and select Properties
    Add the switch -javaArgs "Xmx900m,Xincgc,server" in the command line of the server
    Click on Save and Close
    Restart the <server_name>.Adaptive Job Server
    Regards .
    Sam.
    Edited by: samouber on Aug 21, 2009 2:54 PM

  • Schedule a report with passing range parameters

    I have wrote a program to run the crystal report in BO server and email to the user. The program can pass the parameter to the crystal report and generate different result/ report. It works well with string parameters, int parameter and date parameter. But when I pass the date range parameters, the CR in BO always displays error "Information is needed before this report can be processed. ", and in the CR history, the Parameters field is "No Parameter"
    For single parameters, I will use the setValue() of IReportParameterSingleValue to set the param value
    IReportParameterSingleValue v = prompt.getCurrentValues().addSingleValue();
    v.setValue(paramValueArray<i>);
    but I dunno how to set the date range value. Anyone ve ideas on this?
    Here is some of my sample code.
    rangeValue.setBeginValue(dateValue1);
    rangeValue.setEndValue(dateValue1);
    rangeValue.getEndValue());
    rangeValue.setLowerBoundType(RangeValueBoundType.inclusive);
    rangeValue.setUpperBoundType(RangeValueBoundType.inclusive);
    newParam.getCurrentValues().add(rangeValue);

    I am not sure if you are using RAS or Enterprise SDK, but here are some code snippets to set range report parameters:
    For scheduling:
    // oReport is IReport object holding the crystal report.
    oReportParameter = oReport.getReportParameters().get(i);
    currentRangeValue = oReportParameter.getCurrentValues().addRangeValue();
    currentRangeValue.getFromValue().setValue(dateParameter);
    currentRangeValue.getToValue().setValue(dateParameter);
    For viewing:
    ParameterFieldRangeValue pfrv = new ParameterFieldRangeValue();
    pfrv.setBeginValue(dateTimeValue);
    pfrv.setEndValue(dateTimeValue1);
    pfrv.setLowerBoundType(RangeValueBoundType.inclusive);
    pfrv.setUpperBoundType(RangeValueBoundType.inclusive);
    pf.getCurrentValues().add(pfrv);
    f.add(pf);
    f is Fields object and pass that to viewer.

  • Unable to schedule webi report with Test user

    Hi All,
    I get the below error when i try to schedule a WEBI report with user id.
    I can schedule with my developer id.
    Error Message: Sorry, you do not have the right to 'Edit objects' (ID: 6) for 'sudes_errors' (ID: 45941). Please contact your administrator if you require this right. 
    Any inputs greatly appreciated.
    Thanks

    Error clearly showing that, Test user need access rights defined @ CMC.
    Contact BO admin, to assign Schedule/Full control rights for that Test user.
    Thank You!!
    H2H

  • Scheduling WEBI reports with API

    Is it possible to schedule a WEBI report with an external API?
    Explanation: our customers can view their data on our internet site. We want to show a list of reports where they can subscribe. For example: report X with parameter Y each monday morning in Excel format to mailadress Z.
    This subscribtion is stored in our Oracle database. The database sends an API to the BO enterprise server. BO schedules and sends the report to the customer.
    Regards,
    Emiel

    Hi
            What is the API ? Is it a Text file ? if so then you can schedule the reports based on an event in BO .
    Regards
    Prashant

  • Searching Web Apps with Data Source fields containing multiple values

    I have a Web App with a field allowing multiple values to be entered similar to the checkbox list. I need to restrict allowed values to a large, finite list of values currently stored in another Web App as the data source. I can't apply the Data Source field type as that only allows single value selection. I also need to be able to use the Web App Search form to search for items containing 1 OR more values in this field (the search functionality of a checklist field type). Here's what I've tried for field types:
    Text (string) or Text (multiline) field type - By saving a list of comma separated values (the same way that checkbox list outputs) to a text input or textarea, the search logic only searches for exact string (including commas) and doesn't parse the individual values.
    List (checkbox list) field type - This allows me to search multiple values using OR logic, but the web app will only store values that have been entered as options in the actual web app field setup. I tried using a checkbox list with minimal or empty options hoping that whatever values I sent over in a comma separated string value would still get stored, but because the values came from my Web App data source and not the list of options stored with the field, they were not saved.
    Has anyone found a way to do this?
    My other question is about how I might use a similar multi-value field as described above but return search results containing items with ALL selected values for that field (AND logic).
    Can anyone enlighten me to the inner workings of BC web app search logic?

    Thanks Robert.
    You'll need to create your own interface to the webapp database for those kind of data operations
    by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
    I'm curious if anyone else has tried this?
    Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
    Web App item field value (as recorded against the List (Checkbox List) field type:
    8294877,8294878
    Web App Search value (for this same field):
    8294879,8294877,8294885
    The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
    The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets).

  • Crystal Report with standard Input-Parameters in InfoView

    Hi there,
    i've created a crystal report which has non-optional input parameters, e.g, Date from ... Date to ...
    I've managed to fill this parameter with standard parameters if the user does not choose a value. e.g. date is today - 14 days.
    If i start the report in crystal and do not enter a input-parameter, it gets it input parameer automatically, see:
    (if not hasvalue({?PARA_TA_von}) then ({PW_BO_HU_TA.LTAP-WDATU}>=CurrentDate-14) else ({PW_BO_HU_TA.LTAP-WDATU}>={?PARA_TA_von}))
    It works perfectly in crystal. But if i start the Report in Webintelligence Infoview, it doesn't work and i get the message to enter the input-parameters....
    Any idea ?
    Thanks,
    Sebastian

    Hi Ingo,
    I have tried the sample reports and other crystal reports created with data sources other than SAP which all work fine. The problem happens on all clients and the server when running reports with SAP data source.
    I did find an error in the Tomcat logs.
    [/SAP].[jsp] Thread [http-8080-Processor24];  Servlet.service() for servlet jsp threw exception
    java.lang.NoClassDefFoundError: com/crystaldecisions/Utilities/LengthLimitedDataInputStream
    I did manage to run one report which had 4 records but the other reports which vary from 432 - 2500 records return the error found in the tomcat logs.
    I will be installing BOE XI 3.1 on my desktop to see if the still issue occurs in this release.
    Thanks and Regards,
    Paul.

  • SQLException Calling Stored Procedure with Date OUT Parameters

    Hi,
    I'm trying to call a stored procedure in Oracle 10.1.0.4 using JDBC driver version 10.1.0.5. Here is the Stored procedure I'm trying to call:
    CREATE OR REPLACE PROCEDURE get_collector_segment_info (
    cid IN eb_collector_segment_iot.collector_id%TYPE,
    cnum IN eb_collector_segment_iot.collector_num%TYPE,
    sct OUT NOCOPY coll_seginfo_segment_codes,
    snt OUT NOCOPY coll_seginfo_segment_names,
    st OUT NOCOPY coll_seginfo_statuss,
    sdt OUT NOCOPY coll_seginfo_start_dates,
    edt OUT NOCOPY coll_seginfo_end_dates
    AS
    coll_id eb_collector_segment_iot.collector_id%TYPE;
    err_msg VARCHAR2 (1000);
    BEGIN
    -- Check if collector_id is present. If not, get the collector ID using collector Num
    IF cid IS NULL
    THEN
    coll_id := eb_collector_segment_get_cid (cnum, err_msg);
    IF err_msg IS NOT NULL
    THEN
    raise_application_error
    (-20001,
    'Error while getting Collector ID for Collector Num: '
    || cnum
    || ', Msg: '
    || err_msg
    END IF;
    ELSE
    coll_id := cid;
    END IF;
    -- Return the Segments
    SELECT ecs.segment_code, es.segment_name, es.status, ecs.start_date,
    ecs.end_date
    BULK COLLECT INTO sct, snt, st, sdt,
    edt
    FROM eb_collector_segment ecs, eb_segment es
    WHERE ecs.collector_id = coll_id
    AND ecs.segment_code = es.segment_code
    AND es.status = '1';
    IF SQL%ROWCOUNT = 0
    THEN
    raise_application_error
    (-20002,
    'No Segment records found for Collector ID: '
    || coll_id
    END IF;
    END get_collector_segment_info;
    ecs.segment_code, es.segment_name and es.status are of type VARCAHR2 and ecs.start_date and ecs.end_date are of type DATE. I wrote the following code to call the above store procedure:
    connection = this.datasource.getConnection();
    oracleCallableStatement = (OracleCallableStatement) connection.prepareCall("begin " + STORED_PROCEDURE_NAME
    + "(?, ?, ?, ?, ?, ?, ?); end;");
    oracleCallableStatement.setNull("cid", Types.VARCHAR);
    oracleCallableStatement.setLong("cnum", collectorNum);
    oracleCallableStatement.registerIndexTableOutParameter(3, 100, OracleTypes.VARCHAR, 100);
    oracleCallableStatement.registerIndexTableOutParameter(4, 100, OracleTypes.VARCHAR, 100);
    oracleCallableStatement.registerIndexTableOutParameter(5, 100, OracleTypes.VARCHAR, 100);
    oracleCallableStatement.registerIndexTableOutParameter(6, 100, OracleTypes.DATE, 0);
    oracleCallableStatement.registerIndexTableOutParameter(7, 100, OracleTypes.DATE, 0);
    resultSet = oracleCallableStatement.executeQuery();
    When I run the code, I get a "java.sql.SQLException: Invalid PL/SQL Index Table" exception on oracleCallableStatement.executeQuery(). I tried many other variations and searched on forums but nothing worked for me. Does anyone have any idea? I'm really desparate. i use JDK 1.4.2_12 and WebLogic 8.1 SP6.
    Thanks,
    Zhubin
    Message was edited by:
    zhoozhoo
    Message was edited by:
    zhoozhoo

    Hi Avi,
    I think you are right and I was using the wrong method. With some help from our DBA the problem was resolved Here is the correct code:
    connection = this.datasource.getConnection();
    oracleCallableStatement = (OracleCallableStatement) connection.prepareCall("begin " + STORED_PROCEDURE_NAME
    + "(?, ?, ?, ?, ?, ?, ?); end;");
    oracleCallableStatement.setNull(1, Types.VARCHAR);
    oracleCallableStatement.setLong(2, collectorNum);
    oracleCallableStatement.registerOutParameter(3, OracleTypes.ARRAY, "COLL_SEGINFO_SEGMENT_CODES");
    oracleCallableStatement.registerOutParameter(4, OracleTypes.ARRAY, "COLL_SEGINFO_SEGMENT_NAMES");
    oracleCallableStatement.registerOutParameter(5, OracleTypes.ARRAY, "COLL_SEGINFO_STATUSS");
    oracleCallableStatement.registerOutParameter(6, OracleTypes.ARRAY, "COLL_SEGINFO_START_DATES");
    oracleCallableStatement.registerOutParameter(7, OracleTypes.ARRAY, "COLL_SEGINFO_END_DATES");
    oracleCallableStatement.execute();
    String[] segmentCodes = (String[]) oracleCallableStatement.getARRAY(3).getArray();
    String[] segmentNumbers = (String[]) oracleCallableStatement.getARRAY(4).getArray();
    String[] segmentStatuses = (String[]) oracleCallableStatement.getARRAY(5).getArray();
    Timestamp[] startDates = (Timestamp[]) oracleCallableStatement.getARRAY(6).getArray();
    Timestamp[] endDates = (Timestamp[]) oracleCallableStatement.getARRAY(7).getArray();
    segments = new Segment[segmentCodes.length];
    for (int i = 0; i < segmentCodes.length; i++) {
    System.out.println(segmentCodes[i] + ' ' + segmentNumbers[i] + ' ' + segmentStatuses[i] + ' ' + startDates[i] + ' '
    + endDates);
    segments[i] = new Segment();
    segments[i].setSegmentCode(segmentCodes[i]);
    segments[i].setSegmentName(segmentNumbers[i]);
    segments[i].setStatus(segmentStatuses[i]);
    if (startDates[i] != null) {
    segments[i].setStartDate(new java.util.Date(startDates[i].getTime()));
    if (endDates[i] != null) {
    segments[i].setEndDate(new java.util.Date(endDates[i].getTime()));
    Thanks,
    Zhubin

  • Remove fields from ODS objects with data

    Hi
    Is there a smartway to delete the infoobjects from an ODS without deleting contents? These fields are just added to ODS, and activated the ODS. But, now we donot want them and want to delete these objects from ODS. Any ideas???
    Thanks

    Hi,
    If it will not be possible for you to reload the data to the ODS after deleting, you can try to create a copy of this ODS, move the data from original to copy, delete data in original, make changes and reactivate, and then move data back from copy to original.
    Hope this helps...

  • Web Gallery with Date (dd-mm-yyyy) and Caption metadata only

    Aperture is a great product.
    I would like to add the date (dd-mm-yyyy) and caption to my photos but do not have that combination in the metadata drop down.
    How do I customize this?
    Thanks, Paul.
    iMac Intel Core Duo 20", 2 GB RAM   Mac OS X (10.4.4)   Nikon Coolscan V ED, Nikon D200, Iomega MiniMax Drives

    I want to put caption and date (but not time) on each photo in a photobook. I've finished laying out the book and only just discovered that I can't do it. The metadata button has many options but not caption and date together.
    Any ideas?
    Thanks
    John
    iMac Intel 20"   Mac OS X (10.4.5)  

  • Script to schedule webi report with prompts

    Dear experts,
    I need to schedule about 300 reports to run on a monthly basis. Those reports have to prompts to be filled: year and month.
    How can I schedule it and fill the prompts automatically? I thought of scheduling a script that would run those reports but I'm not able to find a script that fills the prompts.
    Can you help me?
    Thanks!
    Inê

    What version of BOE are you on? In any case, you'd need to use the ReportEngine SDK. You might be better off posting this to the appropriate  Business Intelligence SDK  forum.

  • Using data web beans with data tags

    I've a master-detail relationship, and i use a view current record to show the master record and a row tag in create mode, to insert a record in the detail table.
    Do i need to populate the primary key of detail table or they are automatically populate like edit current record?
    Thanks
    null

    Your DataWebBean is using a different application module instance thatn your datatags. Make the following changes:
    1. remove the calls to
    <%
    // make sure the application is registered
    oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session , "PrjSegJSP_PkgSeg_PkgSegModule");
    %>
    2. change the following statement
    tb.initialize(application,session, request,response,out,"PrjSegJSP_PkgSeg_PkgSegModule.KssegtrolesView");
    to
    tb.initialize(application,session, request,response,out,"PkgSegModule.KssegtrolesView");
    3. Add a releaseAppResources tag to the end of both pages. The KssegtrolesView_Insert.jsp page should use reserved mode and the KssegtrolesView_SubmitInsertForm.jsp should be suing stateful mode.
    You have now told the DWB to use the same am pool and application instance as the DataTag.
    null

Maybe you are looking for

  • HP Laserjet 1320 stopped queue

    I recently purchased an HP Laserjet 1320 to connect via USB to my iMac (10.4.3). The computer recognizes the printer and automatically installs it into the printer setup utility and everything. It looks as though it is ready to print, but when I send

  • My iphoto'09 is not working, version 8.2.1 (424). Any suggestions?

    Message is: Your photo library is either in use by another application or has become unreadable Shut down and restart your computer, and then open iPhoto again. If the problem persists, try rebuilding your photo library. To do this, quit iPhoto, and

  • I can't restore my ipodclassic.how can i restore?

    i mistakenly formated my 160gb ipodclassic 2 momth ago.then after every time i connect my ipod with my pc,itune says"itunes has detected an ipod that apears to be corrupted.you may need to restore your ipod.....".when i try to restore,it says sometim

  • Russian (cyrillic) text visualization in datagrid through flex-amfphp-mysq

    Hi to all!!! Here's the scenario. I've got a mysql db with several products stored in several languages (english,french,deutsch,italian and russian). The table is stored in utf8 and through phpMyAdmin or mysql GUI client I'm able to see correctly all

  • Can't Compile Digikam

    I'm trying to compile Digikam beta for KDE 4.1. This is the error I'm getting when I run "cmake ." [vg@vg-arch digikam-0.10.0-beta1]$ cmake . -- Found Qt-Version 4.4.0 (using /usr/bin/qmake) CMake Error at /usr/share/apps/cmake/modules/FindX11.cmake: