Date (Range) Prompt to update page reports

Hello,
First I'd like to say that I am a beginner sql developer and completely new to apex. I've been thrown into it and I am learning as I go. With that in mind please forgive me for asking some, probably, obvious questions. Thanks in advance for any help.
My page has one prompt, Time Period, a drop down box with the following values: Select Time Period (Null Display Value), Last Week, Last Month, Last Quarter, Last Year, Select Dates. Based on this selection I want to do a couple of things.
My prompt is built off a static list of values and returns 1,2,3,4,5 according to the selection.
How or where do I need to use a case or if/else statement to first check that prompt value and then define my start and end date? I'm quite confused as to whether I should be using a computation or a process or maybe something else..
Thanks.

If you want to show or hide items(or regions) on the page depending on what choice the user made, use(and learn) dynamic actions.
If you need to change server session state, you'll do it in a computation to change one item or do it in process for everything else.
IF and CASE statements are similar in functionality and you'll find good descriptions on the net using the keyword "PLSQL CASE IF".
Note: There is a difference between a CASE statement and a CASE expression even do their syntax are almost the same.

Similar Messages

  • ACI  - Date Range issue for Sales Details report

    I am working on ACI setup for one of my client. I set everything us as per documentation.
    This is regarding ‘Sales Details’ (Public Folders > ATG > Commerce > Sales > All Sales) report.
    Report is being generated if I select ‘Date Range’ under ‘Time Period’; but if I select ‘Predefined’ I get below errors:
    RQP-DEF-0177
    An error occurred while performing operation 'sqlPrepareWithOptions' status='-9'.
    UDA-SQL-0107 A general exception has occurred during the operation "prepare".ORA-32035: unreferenced query name defined in WITH clause RSV-SRV-0042 Trace back:RSReportService.cpp(758): QFException: CCL_CAUGHT: RSReportService::process()RSReportServiceMethod.cpp(239): QFException: CCL_RETHROW: RSReportServiceMethod::process(): promptPagingForward_RequestRSASyncExecutionThread.cpp(774): QFException: RSASyncExecutionThread::checkExceptionRSASyncExecutionThread.cpp(211): QFException: CCL_CAUGHT: RSASyncExecutionThread::run(): promptPagingForward_RequestRSASyncExecutionThread.cpp(824): QFException: CCL_RETHROW: RSASyncExecutionThread::processCommand(): promptPagingForward_RequestExecution/RSRenderExecution.cpp(593):
    Has anybody come across this issue?
    Any help in this regard will be highly appreciated.
    Thanks,
    Mukesh

    Contact Oracle support. I think we've seen this one before if using a particular version of Oracle(11.1?). There's a particular version of Oracle that doesn't support queries in a WITH clause that aren't referenced in the main query. Cognos seems to generate these types of queries not knowing that the version of Oracle doesn't support it. According or Support Article ID 1063400.1 you can patch this particular problem with Oracle or you can upgrade to Oracle 11.2. I also think that was a to get Cognos to generate an alternative query that doesn't use the WITH clause at all. Something about disabling the use of WITH in all queries by making a change to the report definition or alternatively a global change to the metadata model.
    Good luck...
    Andrew

  • Lost prompt to update pages that use template..

    Yes I know I should not use templates but I do on very small sites with under 10 pages. When making adjustments to the templates I used to get a prompt asking me if I want to update pages that use that template, but I no longer get that. I must have changed something but I am wondering how I can change it back. I can manually update but I always forget and I do not wantto go that route....anyone know how I can get that prompt back to update pages that use template? Thanks much!

    Well you have suggested SSI's before instead Murray....
    No, I've suggested SSI's instead of Library items, or a combination of SSI's and a template instead of nested templates, but I've never suggested using SSI's instead of templates, although it is a workable solution.
    I dont think it matters what I have in the code. It used to prompt me whenever I changed ANYTHING and had to save.
    I do.  However, try this simple test -
    1.  Create a new, blank HTML file.
    2.  Save it with FILE | Save as Template... (verify that the page is saved in the "Templates" folder)
    3.  Spawn a new child page from this template with FILE | New > Page from Template.
    4.  Save this page with any name you prefer.
    5.  Return to the template page and change the title from Untitled document to "Whatever".  Save it.  Are you prompted?  You should be.
    If you are not prompted then there is something systemically wrong with your DW installation.

  • Date range as variable values in report selection

    On a report selection screen, how can we save range values as variant?
    For example, S_ALR_87012341, I want to save the values of from- and to- dates for posting date using dynamic date calculation as selection parameter. 
    From date:  current date u2013 365 days
    To date:  current date
    I can only put one value at a time but not both.  Any value I input to the Name of Variable field, it is populated as a from-date value
    How can we put both names of variable for the from- and to- dates to the variant attributes?

    Hi,
    For the example you gave, choose Variable 'Current date - xxx,current date + yyy' , enter 365 and 0 for xxx and yyy and save the variant. When you call up that variant, you will see both 'From' and 'to' are populated.
    Regards,
    Ming

  • Issue in Date Range Prompts

    Hi,
    We have two fields in our Bex Query u2013 First Date of Current Month and Current Date. The fields are populated using the logic below
    First Date of Current Month u2013
    Current Date - This is populated using the Customer Exit function in BW Query.
    We have created  three  universe level prompts based on the above queries
    First Prompt:
    <FILTER KEY= "@Select(Debit Memo Date\Debit Memo Date LOV)">
    <CONDITION OPERATORCONDITION= "Between">    
    <CONSTANT CAPTION= "@Prompt('Enter\Select DM Start Date: ','D','First day of Current Month\First day of Current Month',mono,free)"/>
    <CONSTANT CAPTION= "Select(Date2\Today)"/>
    </CONDITION></FILTER>
    Second Prompt:
    <FILTER KEY= "@Select(Debit Memo Date\Debit Memo Date LOV)">
    <CONDITION OPERATORCONDITION= "Between">    
    <CONSTANT CAPTION= "@Select(First day of Current Month\First day of Current Month)"/>
    <CONSTANT CAPTION= "@Prompt('Enter\Select DM End Date: ','D','Date2\Today',mono,free)"/>
    </CONDITION></FILTER>
    Third Prompt:
    <FILTER KEY= "@Select(Debit Memo Date\Debit Memo Date LOV)"><CONDITION OPERATORCONDITION= "Between">     <CONSTANT CAPTION= "@Select(First day of Current Month\First day of Current Month)"/>
    <CONSTANT CAPTION= "@Select(Date2\Today)"/>
    </CONDITION></FILTER>
    The First prompt is running fine and giving records from the Start date entered by user to Current date, but we are not getting any records when we use second and third prompt. 
    Thanks,
    Pankaj G

    It's interesting using the same format mask for the application format mask fixed your issue, you mean to say after using the format mask in application you are able to enter time between 00:00 am and 00:59 am. I had filed a bug on this and will be working on this issue. Thanks for reporting this issue.

  • Project Online - offline project plan prompts for date range to be entered when accessing Resource Usage view

    When I save a project plan to my local computer from Project Online and open it up in an offline mode and access Resource Usage view I get prompted with Date Range dialog boxes with the first one saying "Show resources/assignments that start or finish
    after:" and the second one with "And before:".
    I don't have any filters that are setup in Project Online that are not available in offline mode to trigger these prompts.
    Please let me know what could be causing the date range prompts. Thanks.

    Hi,
    You probably retrieve an enterprise filter into your local file. Just open the organizer from MS Project, go to the filter tab (be sure to have your project selected in the drop down menu at the top left of right of the organizer) and delete the date range
    filter.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Supress details in subreport based on date ranges in main report

    I am using Crystal XI R2 and am working with Human Resources Data.
    The main report is grouped on and generates a list of temporary teaching positions like this:
    Smith, John
         FTE_____Start Date_______End Date
          .3 ______09/01/2007______10/20/2007
          .2 ______10/05/2007 ______04/15/2008
          .2 ______04/01/2008 ______06/30/2008
    The subreport (generated from a different source, but linked to main report on ) generates a list of days the employee worked as a Teacher on Call:
         TOC Date______ Portion of Day Worked
         09/05/2007______1.0
         09/19/2007______0.6
         10/08/2007______0.4
         10/09/2007______1.0
          04/08/2008______0.6
          04/18/2008______1.0
    Employees are granted seniority for TOC days worked, EXCEPT when they are already employed in a Teaching position >=.4 FTE  (because they are already granted full seniority for that period), so I need to be able to suppress records that fall within date ranges listed in the Main Report where the combine FTE is >=.4.     
    I believe this question has two parts:
    1. how do I evaluate the date ranges to combine overlapping periods?  Results would look like this... (I don't need to be able to see this, but I'm assuming I'd have to create a date range with the results in order to answer question #2 - but I haven't worked much with ranges.)
        FTE_____Start Date______End Date
          .3______09/01/2007______10/04/2007
          .5______10/05/2007______10/20/2007 
          .2______10/21/2007______03/31/2008
          .4______04/01/2008______04/15/2008
          .2______04/16/2008______06/30/2008
    2. how do I supress the TOC dates in the Subreport that fall within the start and end dates of all the employee's positions >= 0.4 FTE ?  Supreport results for this example would look like this...
         TOC Date______ Portion of Day Worked
         09/05/2007______1.0
         09/19/2007______0.6
         04/18/2008______1.0
    (I will sum the "portion" values and mulitply them by a constant variable to complete the seniority calculation.)
    Thank you in advance for any assistance you may be able to provide!

    Thanks for your help Graham, I have continued to work with this and I took the BO Crystal III course.  Your suggestions gave me a sense of  direction.
    I was not able to share a date range array with the subreport (kept getting error messages saying "call BO" , but I WAS able to share the startdate array and the enddate array.  I also shared the fte values array. 
    I had wanted to use a loop  to check
    if TOCdate in startarray[x] to endarray[x]
    then ftearray[x]
    and  sum the new range of fte[x] values so that I could suppress any TOCdates where fte was >=0.4.   But I couldn't quite get there, I kept coming up with formulas that displayed only the first value or the last or zero.
    So I used the following formula for each index (returnindex value had to be changed for each case), then added them all together.
    shared datevar array startArray;
    shared datevar array endArray;
    shared numbervar array FTEArray;
    local numbervar arraylength:= ubound(startArray);
    local numbervar i;
    local numbervar returnindex :=-1;
    If arraylength >=1 then
    if not({AAATDDET.Date} in startarray[1]to endarray[1])then
    0 else
    if {AAATDDET.Date} in startarray[1]to endarray[1] then
    (returnIndex:= i;);
    i:=i+1;
    if returnindex =0 then
    ftearray[1]

  • XL Reporter: Date Range issues

    I would like to setup a P&L to get the data from a date range.
    At the "Advanced Report Buider", tab "Report Default", I entered the following code into "Complete Selection":
    PER( Code >= @PeriodStart Or Code <= @PeriodEnd )
    @PeriodStart: parameter point to "Code" of "Financial Period" table
    @PeriodEnd: another parameter point to "Code" of "Financial Period" table
    Everytime I run the report, it gave me the latest balance instead of the balance within the specified date range.
    Please kindly advise.
    Thanks in advance,
    Vivian

    Or is not correct.  It should be And.
    Thanks,
    Gordon

  • Date Range - CM14 and BI Publisher

    Is there a way to make a date range prompt for reports for CM14 with BI Publisher.
    I can get it to work in BI Publisher but it does not transfer to CM14.
    Any ideas?

    Hi,
    The prompt for criteria will need to be added to report's data model within BI Publisher.  After logging into the Oracle BI Publisher User Interface, do the following:
    1.- Click the Edit link for the data model that is associated with the report that you want to add the prompt to.  If you are prompted that the Default Data Source is invalid, select the correct data source from the available drop down list.
    2.- Click the Parameters link located towards the bottom left of the screen.
    3.- Click the green plus symbol to add a new, blank row.
    4.- For the Parameter Name field, enter the following: CRITERIA
    ***Note - Ensure that the Parameter Name field is populated with all capital letters***
    5.- For the Data Type, select String
    6.- For the Default Value, you will enter information about every field you would like to prompt on.  The format for this information will be: table_name.column*datatype(length)^.  This will be repeated for as many columns as you would like to be able to prompt on.  Here is an explanation of each component:
    table_name - The table or view that the field being prompted on exists in.
    column - The column name of the field being prompted on.
    * - The asterisk connects the field's database information with the field's input specifications
    datatype - The data type of the field being input.  This tells Contract Management how to handle the input. For example, if you use datetime, it will know to put a calendar picker in the Prompt for Criteria window when printing.
    length - The maximum length that a user will be able to input in the Prompt for Criteria text box.  This value will not always be required, as datetime do not allow manual entry, only picker selection.
    ^ - The carrot denotes the end of the column specification.  Any other columns could then be added after in a continuous string. You can add as many as you like.
    Example: The following would be used to be able to prompt on a Contract's To Vendor, Total Cost, and/or Document Date:
    cnmt.to_vendor*char(8)^cnmt.total_cost*int(16)^cnmt.document_date*datetime^
    7.- For the Parameter Type, select Text
    8.- Click the Save (Floppy Disk) icon in the top right to save the changes and test the report further.
    9.- Log into the Contract Management Administration page (http://server_name:port/exponline/adminlogon.jsp)
    10.- Click the Server Configuration link and then click the Import Reports & Forms button
    11.- Restart the Contract Management web server to make this new prompt available to your end users.
    Best regards,
    Matías G. Uribe

  • Identify all Quarters associated with a Given Date Range

    Hi,
    I am trying to create a Crystal Report that shows all Quarters data for a give date range. For E.g. the user defined date range is 02/20/2013 - 01/15/2014, the report should include the data for Q1-2013 till Q1-2014. Is there a simpler way to achieve this functionality.
    I will really appreciate your help/guidance on this.
    Regards,
    acb

    Hi Chandra,
    Do you have a Date Range prompt or two separate prompts for Start Date and End Date? If it's a Date Range prompt, use this as the Record Selection Formula:
    datevar start := Minimum({?Date_Range_Prompt});
    datevar end := Maximum({?Date_Range_Prompt});
    {Date_Field_in_Database} >=
         If start in Calendar1stQtr then
             Minimum(Calendar1stQtr)
         else if start in Calendar2ndQtr then
             Minimum(Calendar2ndQtr)
         else if start in Calendar3rdQtr then
             Minimum(Calendar3rdQtr)
         else if start in Calendar4thQtr then
             Minimum(Calendar4thQtr)
    AND
    {Date_Field_in_Database} <=
         If end in Calendar1stQtr then
             Maximum(Calendar1stQtr)
         else if end in Calendar2ndQtr then
             Maximum(Calendar2ndQtr)
         else if end in Calendar3rdQtr then
             Maximum(Calendar3rdQtr)
         else if end in Calendar4thQtr then
             Maximum(Calendar4thQtr)
    -Abhilash

  • Date range formula

    Post Author: Drumcode
    CA Forum: Formula
    Hello,
    My first post, I'm a total newb using CR11, I hope you forgive me if I'm asking a very simple question here. Is there a generic formula for date range I could use in the page header based on the date range from selection expert? I can probably get away with just the text field up there, but it'd be nice to automate it on my other reports. Thanks for any help you can provide.
    Jack

    Post Author: Drumcode
    CA Forum: Formula
    Alright, so I've created the parameter fields for the date range. It pulls the data correctly but now, how do I make this date range visible in the page header?I want it to look this way:
    Report Title                                              Date Range: 00-00-0000 to 00-00-0000                    Company Name                                                                                Print Date
    DataDataData----
    Again, I can live with that date range to be a text object but how can I have it use the same data range as the parameter field?

  • Updating Pages, Numbers and Keynote in OS X Yosemite

    I have a mid 2009 white MacBook, on which I have just installed OXS Yosemite.  I am prompted to update Pages, Numbers and Keynote in the Mac App store.  When I try to do this (also when I try to update via software update notifications), I am then told they can't update because they were not purchased with this Apple ID.  I presume I set up my Apple ID after I'd purchased this MacBook with iWork preinstalled.  I'd even be happy to repurchase these apps, but the app store won't let me because it just says 'update' instead of giving me a price.  Any thoughts?

    Here is a link to App Store Support. Apple iWork applications were never preinstalled on Apple hardware prior to 2014. This was a separate purchase, either earlier on via iWork '09 DVD, or later by OS X App Store purchase. Your preinstalled comment suggests to me that your Mac was pre-owned, and someone else installed iWork '09 applications using their Apple ID — which would block you from updating through your own Apple ID.
    The iWork ’09 applications that are currently installed have considerably more functionality than the new (rewritten) applications that prompt those update notices. You do not have to update to Pages v5.5.1, Numbers 3.5, and Keynote 6.5. You should however, update the iWork '09 applications via the Apple iWork 9.3 updater.
    If you want to disable the nagging update to newer software messages in Yosemite, I suggest you visit System Preferences > App Store. Check Install system data files and security updates, uncheck Download newly available updates in the background, and then uncheck Automatically check for updates.

  • Date Range Parameter's Restriction

    Could you someone please tell me how BO restricts date range parameter when the users tries to run a query?  Often times, users simultaneously try to get several years of data dumped into a single query.  Some users even forget to enforce the date range, which causes the query to try to get the data from the beginning of time. 
    How do we as a BO developer create some sort of date range restriction so that it can prevent users from overloading a query?  If the users want to get several years of data, he/she has to run a query in batches instead of doing it all at once.
    I hope there is a way that we can create a custom informational error message for each report to prevent users from trying to query too many months or years of data.  Some reports may hit small and well-indexed tables that allow large date range queries.  But, some reports query against large and poorly indexed tables, which can potentially cause adverse effect on performance without date range restriction. 
    Any thoughts or advices on how to implement such things (if possible).  I am also afraid that the answer will be "currently not doable".  If so, any ideas if the next version of BO will allow such functionality, or if it is at least in the plan at all?  Thank you so much for your insight and sharing.  Have a great day!

    Dear Amr,
    Thanks so much for your quick reply!  The field I want to create a restriction on is called RESULT_DT_TM.  When I saw the "where" section of the field, I just don't see how I can apply my START_DT_TM and END_DT_TM parameters on this field so that START_DT_TM and END_DT_TM cannot be more than 365 days apart.  If my query does not use parameters called START_DT_TM and END_DT_TM, this "where" section will not be valid? 
    I don't think the solution has to be on the field itself but rather on the parameter START_DT_TM and END_DT_TM.  What I want is that as long as START_DT_TM and END_DT_TM are more than 365 days apart, it does not matter what field these parameters are running against. The screen would then display something saying "your date range parameters for this report must be within 365 days.  Please revise your date range on query".
    Sorry, I am PL/SQL report programmer, and not familiar with what BO can do.  So, is there anyway that can make my dream come true?  Thanks a bunch again, Amr.

  • Date range in the view

    Hi Team,
    I created one sales report but here my requirement is it as to show the date range i.e (1-07-2012 To 30-07-2012) in the title view.
    Is this possible by using variables can any one send clear steps how to achieve this.
    Thanks,

    Hi User,
    May i know how did you created the sales report.
    You said that you dont have any date range or date fields in your tables/report.
    Then, what are the results... how do you know for which date range did you created the report ?
    Is it default report which generated for the entire database without selecting dates ?

  • Code or idea of adding date range parameters

    Thanks guys for answering all my past queries.
    Another question arises
    I don't know how to write code for date range value parameters for a report.
    i-e
    I have a report that takes a start date and end date range parameter.
    I can pass all the other parameters to CrystalReportViewer through code but dont know how to write code to pass date range parameters.
    Please help!

    Hi,
    I assume you are using JRC on CR XI or XI R2.
    For Single Range Values:
    Calendar calendar1 = Calendar.getInstance();
    calendar1.clear();
    calendar1.set(yyyy,mm,dd);
    Date date1 = calendar1.getTime();
    Calendar calendar2 = Calendar.getInstance();
    calendar1.clear();
    calendar.set(yyyy,mm,dd);
    Date date2 = calendar2.getTime();
    // use yyyy,mm,dd,hh,mm,ss for DateTime parameter.
    ParameterFieldValue rangeVal = createSingleRangeVal(date1, date2, RangeValueBoundType.inclusive, RangeValueBoundType.inclusive);
    paramFieldController.setCurrentValue("", "<Parameter Name>", rangeVal);
    For Multiple Range Values:
    Object [] beginVals = {date1, date2, date3};
    Object [] endVals = {date4, date5, date6};
    //Where  date1 - date4 is range 1, date2 - date5 is range 2 and date3 - date 6 is range 3.
    RangeValueBoundType [] beginBoundTypes = {RangeValueBoundType.inclusive, RangeValueBoundType.exclusive, RangeValueBoundType.noBound};
    RangeValueBoundType [] endBoundTypes = {RangeValueBoundType.noBound, RangeValueBoundType.inclusive, RangeValueBoundType.exclusive};
    ParameterFieldValue [] multiRangeVal = createMultiValRangeParameter(beginVals, endVals, beginBoundTypes, endBoundTypes);
    paramFieldController.setCurrentValues("", "<Parameter Name>", multiRangeVal);
    I hope this helps.
    Thanks
    Aasavari

Maybe you are looking for

  • Please help to read the XML document with XMLTable

    Hi Gurus, I am not very familiar with XML parsing. It seems to me it should be very easy to get the data. For some reason, I am having a problem to get the data. SELECT * FROM util.hlsr_online_entries e, XMLTABLE(   xmlnamespaces(    'http://tempuri.

  • Need to find from where email are triggering

    Hi  All, I got a one request to find from where emails are triggering , user simply said it is from SCCM SQL Server and i tried to find in all SCCM ms sql server databases using syscomments and ROUTINE_DEFINITION , but i am unbale to find , actually

  • I get the following Error

    Hi All, I have created a Search Input in which when i enter the Table Name, It should show up the Field Name, Field Text, Length, Offset and Type. But when i debug the Widget it is showing me the following error. I'm working on Eclipse Europa.. Can s

  • Archiving PO

    Hello SRM Expert, System: SRM 5.0 Classic Scenario Problem: We create a PR in EBP, after running the report CLEAN_REQREQ_UP the Java Applet for following docs show that: + SC 100044807/1 Document create I PR 200014509/10 I PO 4500257551/10 archived+ 

  • BPEL Installation Issues and Eclipse Plugin Issue

    I'm trying to evaluate BPEL and encountered the following issues: (1) Installation of patch 4343748: MISSING_COMPONENT : oracle.j2ee, 10.1.2.0.0 This Oracle Home does not have components/versions required by the patch. ERROR: OPatch failed during pre