Page item as month

Hi All,
I'm working on a table/graph report and i have the following fields:
Snapshot date total amount
and i have a page item fiscal year: its a drop down and i want to set it as a parameter (from date, to date) and when they enter the from and to date's in the graph they have to see the bars for each month that fall between those dates. Any idea how to do it?
Thanks

Hi,
I think you'll still need a parameter when initially running the report. As you're comparing months you could create 2 calculations for from date and to date, formatting Fiscal Year the Month and Year. These will be your page items. I am assuming that Fiscal Year is already a date item??
From Date
TO_DATE(Fiscal Year, 'FmMonth-YYYY')
To Date
TO_DATE(Fiscal Year, 'FmMonth-YYYY')
Set up an amount calculation using the total amount sum as below, this will replace the total amount sum that you have.
Amount
CASE WHEN TO_DATE(Snapshot Date,'FmMonth') BETWEEN From Date AND To Date THEN Total Amount ELSE 0 END
The report will contain Snapshot date and total amount with the two page items.
Hope it works. Please let me know if there are any problems.
Regards,
Lloyd

Similar Messages

  • Page Item

    Hi All
    I have a cross tab report and on the left axis , i have a field "county" and on the top axis i have two fields "month income" year income".I have to show only counties which have "month income".My question how can i create a new page item which has "No"
    "Yes"
    "All"
    In the drop down box, so that the end useer can choose .Please any kind of help is greatly appreciated.
    Thanks

    Hi,
    You could have a status kind of calculated column with a case statement. In your calculation for Status calc you could say something like below:
    case when month_income is null or month_income = 0 then 'No'
    else 'Yes'
    end
    Now, you can pull this calc Status as a page item and the user has the choice of picking a value from the drop-down and run the report.
    Hope this helps,
    -Esther

  • Random page item data corruption

    I designed an APEX page for a service request processing application with several date page items. Our database is Oracle 10g. The application is in production and the users have reported that data in some date page items become corrupted randomly. For example, the user enters ’07/04/2011’ in the date page item “Planned Start Date” among other values and submits the page. The date somehow winds up ‘07/04/0011’ that is, year 11. (A corrupt date increases the risk that these transactions will not be processed in a timely manner and will negatively impact the level of customer service the user wishes to provide.)
    I have identified three possible areas that may hold the key to underlying cause: 1) page item edit mask, 2) page process(es), 3) DB column constraints. Inasmuch as this is a random problem and has affected a handful of rows it may not be possible to trace the logic as the pages are processed. Has anyone encountered this problem and can suggest a possible remedy? For the sake of clarity I placed the setups for the affected page item below.
    Selected setups for P14_PLANNED_START_DATE, all unlisted attributes are blank or null:
    Settings - Value Required: No; Format Mask: MM/DD/YYYY; Show: on icon click; Show Other Months: No; Navigation List for: None
    Source - Source Used: Always, replacing any existing value in session state; Source Type: Database Column; Maintain Session State: Per session; Source Value or Expression: PLANNED_START_DATE
    Default - Default Value: to_char(sysdate, ‘MM/DD/YYYY’); Default Value Type: PL/SQL Expression
    Sample page processes are:
    Validation - Name: P14_PLANNED_START_DATE not null; Type: Item specified is not null; Validation expression: P14_PLANNED_START_DATE; Always execute: No
    Conditions – Condition Type: SQL Expression; Expression 1: :REQUEST IN (‘SAVE’, ‘CREATE’)
    Validation – Name: P14_PLANNED_STARTEND_OKAY; Type: Function Returning Boolean:
    Validation Expression:
    IF SIGN(to_date(to_char(to_date(:P14_PLANNED_START_DATE,'MM/DD/YYYY'),'YYYYMMDD-') || :P14_PLANNED_END_TIME,'YYYYMMDD-HH:MI AM')
    - to_date(to_char(to_date(:P14_PLANNED_START_DATE,'MM/DD/YYYY'),'YYYYMMDD-') || :P14_PLANNED_START_TIME,'YYYYMMDD-HH:MI AM')) > 0
    THEN RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    Conditions – Condition Type: PL/SQL Function body returning Boolean
    Expression 1:
    IF :REQUEST IN ('SAVE','CREATE') THEN
    IF (:P14_PLANNED_START_TIME IS NULL OR :P14_PLANNED_END_TIME IS NULL)
    THEN RETURN FALSE;
    ELSE RETURN TRUE;
    END IF;
    ELSE RETURN FALSE;
    END IF;
    Database: The attributes for the database column are
    Column Name: PLANNED_START_DATE
    Data Type: DATE
    Nullable: No

    Ligon,
    You're right to think this is pretty laborious stuff. A co-worker wanted to do the same, to make sure users didn't lose a change when clicking Cancel. I suggested he look at calculating the query checksum before and after, which he tried. But it got very cumbersome very fast and he ended up dropping the idea. He's fairly new with Apex, but he's also a quick study, so it's not like he's a novice coder.
    I don't have his implementation details anymore to even share with you.
    Sorry I couldn't be more help.
    Good luck,
    Stew

  • Apex 4.2  200 Page Items limit

    Hi,
    I have a master-detail form which was getting close to the 100 items per page limit in Apex 4.0 which I then scaled back and got to work properly. I had thought that I could start adding more columns to the detail part of the form since 4.2 was supposed to have increased that limit. I am finding that this does not seem to be true at least in the case of this particular form. I tried increasing and started getting 404 errors when trying to save data--same symptom I had had with 4.0. I am back nearly to the same # of columns I started with--and nowhere near the 200 limit. Columns are month by month projection data that I had hoped to extend with the increased page item limit.
    Am I missing something required to take advantage of larger page items limit? Do I need to use one of the new templates?
    Any pointers would be appreciated!!
    Pat

    Hi Pat,
    changing the compatibility mode will have no affect in your case. First I would check the real reason for the HTTP 404 error. See http://www.inside-oracle-apex.com/oracle-apex-got-404-not-found-2/
    I assume it's not the page item limit you are hitting, instead I think you are running into the 2,000 parameter limit of mod_plsql, because your tabular form has too many rows/columns. See mod_plsql:/pls/apex/wwv_flow.accept HTTP-400 too many arguments passed
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Report- Pl/sql function returning sql query parsing page items as text?

    Hi Team,
    I am facing a strange issue .
    I have four page items namely
    1)JOB_CODE
    2)MIN_EXP
    3) MAX_EXP
    4) SOURCES1
    I have a report of the type "Pl/sql function returning sql query"
    declare
    v_sql varchar2(4000);
    begin
    if (:JOB_CODE IS NOT NULL and :MIN_EXP IS NOT NULL and :MAX_EXP IS NOT NULL and :SOURCES1 IS NOT NULL) then
    v_sql:= 'select v_candidate_id, v_fname,v_current_employer,v_Experience_years from candidature where V_REQUIREMENT = :JOB_CODE and v_experience_years >= :MIN_EXP and v_experience_years <= :MAX_EXP and source like ' || '''' || '%'|| ':SOURCES1' || '%' || '''';
    elsif (:JOB_CODE IS NULL and :MIN_EXP IS NOT NULL and :MAX_EXP IS NOT NULL and :SOURCES1 IS NOT NULL) then
    v_sql := 'select v_candidate_id, v_fname,v_current_employer,v_Experience_years from candidature where v_experience_years >= :MIN_EXP and v_experience_years <= :MAX_EXP and source like ' || '''' || '%'|| ':SOURCES1' || '%' || '''';
    elsif (:MIN_EXP IS NULL and :JOB_CODE IS NOT NULL and :MAX_EXP IS NOT NULL and :SOURCES1 IS NOT NULL) then
    v_sql := 'select v_candidate_id, v_fname,v_current_employer,v_Experience_years from candidature where v_experience_years <= :MAX_EXP and V_REQUIREMENT = :JOB_CODE and source like ' || '''' || '%'|| ':SOURCES1' || '%' || '''';
    elsif (:MAX_EXP is null and :JOB_CODE IS NOT NULL and :MIN_EXP IS NOT NULL and :SOURCES1 IS NOT NULL) then
    v_sql := 'select v_candidate_id, v_fname,v_current_employer,v_Experience_years from candidature where V_REQUIREMENT = :JOB_CODE and v_experience_years >= :MIN_EXP and source like ' || '''' || '%'|| ':SOURCES1' || '%' || '''';
    end if;
    insert into query_list values (v_sql);
    insert into debug values (:JOB_CODE , :MIN_EXP , :MAX_EXP , :SOURCES1);
    return v_sql;
    end;
    Please not that I am insertin the query into a table called Query_list and the page item values into the table called Debug thru the pl/sql function which returns teh query.
    Now I select the data from the debug tables.
    select unique(query) from query_list;
    select v_candidate_id, v_fname,v_current_employer,v_Experience_years from candidature where V_REQUIREMENT = :JOB_CODE and v_experience_years >= :MIN_EXP and v_experience_years <= :MAX_EXP and source like '%:SOURCES1%'
    select * from debug;
    JOBCODE     MINEX     MAXEX     SOURCE
    21     1     10     donkeyHire
    And if I run the query in sql I get some records returned
    select v_candidate_id, v_fname,v_current_employer,v_Experience_years from candidature where V_REQUIREMENT = 21 and v_experience_years >= 1 and v_experience_years <= and source like 'donkeyHire'
    V_CANDIDATE_ID     V_FNAME     V_CURRENT_EMPLOYER     V_EXPERIENCE_YEARS
    2     Vengu     Andale Tech     4
    But the record does not show up in the report!
    does this type of report parse page items as text?
    Why is it so?
    Waiting for an early reply.
    Thanks,
    venkat

    Venkat - You don't want to put ':SOURCES1' in quotes like that.
    Scott

  • Text wrap on Master Page items

    RE:  InDesign CS2 on Windows Vista
    Hello,
    I inserted a graphic on both of my master pages and applied a text wrap to them.  However, on my document pages, my text does not wrap around the graphics.  (In the Text Frame Options dialog box, the "Ignore Text Wrap" box is not checked.)  I know I can either override my master page items (and insert the graphic again) or control-shift-click on the graphic and force the text to wrap around it.  But that puts another link to the graphic in my document...and I'm trying to minimize the file size.
    Do you have any ideas on how to make the text wrap on the master pages work on the document pages?

    Text wrap on masters is not honored on live pages in CS2. It was added as feature in CS3.
    Bob

  • Set page item from a stored procedure

    Dear reader
    We would like to have a stored procedure to run every 10 minutes. When the procedure starts, the user has to be warned that the update process is running.
    When the procedure is finished, the user should receive a message that the update process is finished.
    What I had in mind was to set a Page 0 item 'P0_REFRESH' and set his value depending on the status of the update. Then add a dynamic action with a change event. So everytime the value of this page item changes, the user will receive a correct message.
    Does anyone know if it is possible to set a page item from a stored procedure?
    Kind regards
    Xnni

    AndyPol
    I found a solution by querying the user_jobs table. In Apex, I created two page 0 items that hold the current status of the job (online, offline) and the old value of the job.
    Online of offline in the current status item is determined by a decode on "this_sec".
    The enext step was to include a html region in P0 that contains some javascript. This javascript will display a message when the values of the new status is different from the old status ;)
    Many thanks for bringing up the ideas.
    Greetz
    Xnni

  • Problem with dynamic change a page item value

    Hi,
    I'm trying to dynamically calculated the value of an item based on a simple formula that involves the multiplication of two elements from the same page.
    To do this, create dynamic action as follows:
    Event: Change
    Selection Type: Item(s)
    Item(s): P19_DURATION
    Action: Set value
    Fire on page load: TRUE
    Set Type: SQL Statement
    SQL Statement: SELECT :P19_DURATION * :P19_RATE FROM DUAL
    Page items to submit: P19_DURATION
    Selection Type: Item(s)
    Item(s): P19_AMOUNT
    When altering the P19_DURATION get no change in P19_AMOUNT
    Since my knowledge of javascript is almost zero, I'm trying to do this with pl / sql or sql. Try the dynamic action with a function or a PL / SQL statement and nothing works.
    Have to use javascript for this?
    Searching the forum I think it's something simple, but I did not find an example similar to what I need.
    Regards

    Event: Change
    Selection Type: Item(s)
    Item(s): P19_DURATION
    Action: Set value
    Fire on page load: TRUE
    Set Type: javascript
    javascript Code:
    amount = $v('P19_DURATION') *  $v('P19_RATE');
    $s('P19_AMOUNT',amount);

  • Discoverer Viewer Report with Page Items Slow Performance

    I created a report in Discoverer User that has page items and parameters and runs fine (under 3 minutes) in Discoverer User, but when I try and run it in Discoverer Viewer it takes a long time. It took over 70 minutes before manually terminating it. I made a copy of the report and removed the page items and tried to run it again in Discoverer Viewer and now the report runs in under 3 minutes. Any idea why a report with page items would run in Discoverer user fine, but not discoverer viewer?
    I am using Oracle Business Intelligence Plus 10g (10.1.2.55.26)

    As long as you can access the middle-tier server where Discoverer Viewer is running, you should be able to run and view Discoverer worksheets.
    While it is difficult to even start guessing what the problem might be, if the machine you installed Discoverer on has DHCP addressing, you will run into problems.
    Thanks
    Abhinav
    Oracle Business Intelligence Product Management
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN : http://www.oracle.com/technology/products/bi/
    Discoverer : http://www.oracle.com/technology/products/discoverer/
    BI Software : http://www.oracle.com/technology/software/products/ias/devuse.html
    Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
    BI Samples : http://www.oracle.com/technology/products/bi/samples/
    Blog : http://oraclebi.blogspot.com/

  • Report row highlight based on a page item

    Is there a way to highlight a report row based on the value of a page item?
    In my case I have a report where the application user requests data in a detail report using a column link in the master report. This loads an id number from my report into a page item (say :P8_ID for example). If this item is null, I want the report rows to all render normally (nothing is selected or the detail report has been closed). If there is an id in that field then I want the row containing the information about that item to highlight (its column link has been clicked selected it to bring up a detail report).
    At first glance, this looks similar to Vikas solution (Change the Report row color when clicked but I am trying to make the connection between what has already been done and where I need to be.

    After looking back, I discovered my value was being set after the report rendered. When I re-organized my calculations and the rest, it worked.

  • IR Report based off of page item value

    Hey all,
    I want to create an IRR region and have the report update based off of a a page item.
    The page item will be a drop down of the tables I want to show, so something like:
    Select * from '||v('P1_TABLES')
    This will work with the normal report but not with the IRR. Is the syntax incorrect?
    Help is appreciated!
    Edited by: Ben C on Feb 23, 2012 6:42 AM

    Zooid,
    but always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always
    use bind variables !!!!
    Regards,
    Richard
    blog: http://blog.warp11.nl
    twitter: @rhjmartens
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Print page items on Interactive Report

    Hello,
    I have an interactive report showing employees detail for the department number passed in as parameter.
    On interactive report, I have page items showing department name and location on the top under report title.
    When I print or export the report, it just exports the data rows, not the report title and department name and location.
    Is it possible to include the report title, department name and location as well in the export file?
    Thanks.

    For printing in specific layouts I use Anton Sheffer As_PDF package. Maybe it can help you out.
    I tell about it in dutch: http://mraoul.com/?p=86
    or you can go to antons page: http://technology.amis.nl/blog/8650/as_pdf-generating-a-pdf-document-with-some-plsql

  • SkillBuilders Modal 2.0 plugin with a page-item button - pass parameters

    Hi all.
    I have an employee table, which is connected with a 1:N relationship to two tables: Emp_Tech_Fields and Emp_Kids.
    I've created a form to update / insert employee data, and I want to add two modal pages: one for kids and one for tech_fields. I think this will be the most usable way for this form.
    I've created two page-item buttons on that form, which open the respective modal pages successfully, but I can't dynamically pass them the EMP_ID in order to filter the data in them.
    Iv'e uploaded an example to http://apex.oracle.com/pls/apex/f?p=64921:1:6401028834215::::: guest / gu12est3
    Document Types is a report with a link-column which opens a modal page with data filtering, as it should.
    Employees (click an edit link) has two buttons: Kids, which open the modal form, but does not filter, and Tech Fields, which is filtered hard-coded with EMP_ID = 1 (see in the dynamic action definition).
    As far as I understand, this should be something quite easy and day-to-day, so I don't know why I did not find a way to do this. What am I missing?
    Any help will be greatly appreciated,
    Dovi.

    Hi Dovi,
    I had a look at your application and can see the link your using for the kids and tech fields modal isn't passing the session ID which is why it is asking you to log in again.
    Below is an example URL for your issue, it isn't tested though.
    f?p=&APP_ID.:20:&APP_SESSION.:::19:P20_EMP_ID:&P19_EMP_ID.:: You will need to change the page numbers of the pages and items to match the page numbers of yours. This is using the statically defined url inside the plugin itself, I have also only done this in an earlier version of plugin but believe the functionality is very similar.
    Hope this helps.
    Paul

  • Creating page items from pl/sql procedure and using them on a page

    I have a page containing 2 select lists (P21_DEPARTMENTS and P21_DATE). Originally I added them as items that were "select list with submits". The problem is that based on the clearance level of the currently logged on user I only wanted the P21_DEPARTMENTS to be a select list if the user was an administrator. If however the user is not an admin then I want the page to have a hidden form field called P21_DEPARTMENTS that stores the user's department and has a label item that has the department name.
    There is also a report region that generates a table based on the department selected from the select list (if the user is an admin) or the value stored in the hidden form field if the user is not.
    My problem is that I cannot have both those items on the same page and use the HTML built-in authentication to determine which item should be rendered because I need to use the same ID for both items so that the stored procedure in my report region doesn't break. HTML does not permit items to share the same ID.
    I tried to circumvent the problem by creating a stored procedure that performs all of the item rendering in the procedure and uses "htp.p()" to output all of my HTML code. This solution would allow me to pass a parameter into the procedure informing me as to whether or not the user is an administrator. If the user is an administrator the procedure would use a conditional statement and render a select list. If not, the hidden form field and label option would be used instead.
    I finally got the stored procedure working perfectly. Now I am encountering the most bizarre thing. Since the "select list with submit" was not working (I used the same code that gets generated when I created other items using htmlDB's GUI) I decided to use a JavaScript function instead that gets triggered by the onChange event. I send along the value that is currently selected in the select list and in the function I set:
    location.href='http://www.myoraclesite.com/pls/htmldb/f?p=111:21:729740000000000000::NO::P21_DEPARTMENTS:1';
    In theory this should work. The problem is that it doesn't. The page reloads and the P21_DEPARTMENTS select list is not pre-selected.
    The only thing I can think of is that when htmlDB generates page items that you've created with it's own admin tool it assigns some internal guid or something as opposed to when someone tries to generate dynamic page items of their own from a pl/sql procedure it's like the application doesn't even know they exist.
    Any help would be GREATLY appreciated.
    My only other solution would be to create a totally separate page (one for admin and another for non-admin). I would really like to avoid this.
    Thanks in advance.

    I would love to be able to generate my menus and
    various other items in my htmlDB applications in much
    the same way I can using ASP, PHP and Cold Fusion.
    Users should have the ability to write server-side
    code wherever they feel like it. The way htmlDB works
    right now I spend more time trying to figure out how
    to create simple effects and generate simple
    interfaces when I need to be building a portal. Ami - it's important to understand that HTML DB is not like other languages. Thus, trying to force concepts which are common in other languages into HTML DB will often result in more work.
    It's definitely worth the time to go over the HTML DB 2-day Developer, which can be found here: http://www.oracle.com/technology/products/database/htmldb/pdf/B14377_01.pdf
    I can build a portal using Classic ASP, C#, PHP or Cold
    Fusion in like 1/10 of the time that it takes me to
    build one using htmlDB. I understand that this is not
    meant for the hard-core programmer but no web
    programming application in today's day and age should
    prevent experts from getting under the hood.And I can build a Portal in HTML DB in 1/10 the time it will take me to do it in any other language. It's like anything else - proficiency comes with practice and work.
    As for getting under the hood, there is plenty of places you can do that with HTML DB. Keep in mind that HTML DB itself is an HTML DB application, so the limits on what you can build with HTML DB are virtually limitless.
    Sorry for the vent there. After spending the last 2
    days trying to figure out how to implement such a
    straightforward thing and now being informed that it
    can't be done kind of bugged me.I understand your frustration, as I've been there before. My rule for beginners is that if you are writing more than a line or two of code in the first week, you're doing something wrong. Stop, take a break, and then use the ample resources (including searching this forum) to help solve your problem. There are plenty of resources available for you to learn about HTML DB on the HTML DB home page: http://otn.oracle.com/htmldb
    Good luck,
    - Scott -

  • How to retrieve a page item value in another page?

    Hi,
    how to retrieve a page item value in another page?
    say P55_COURSES_TO_EVALUATE is my page item name and it is a select list.Based on the value selected,in the next page i shd show details related to the selected value and for this i need P55_COURSES_TO_EVALUATE value in the next page.How Do I get it?When I try to retrieve the values it simply returns nothing.
    Any pointers would be really helpful.
    Thanks in advance.

    Hi,
    Could you please tell how you try use it ?
    If you set value to item P55_COURSES_TO_EVALUATE and submit page, value is saved to session state.
    Then you can use that item in any page like
    :P55_COURSES_TO_EVALUATEYou can not access page value in javascript/jQuery from other pages like
    $v('P55_COURSES_TO_EVALUATE')
    document.getElementbyID('P55_COURSES_TO_EVALUATE')
    $(#P55_COURSES_TO_EVALUATE)Because item is not in other pages. In javascript from other pages you can use
    var a = '&P55_COURSES_TO_EVALUATE.';Regards,
    Jari

Maybe you are looking for

  • OBIEE 11g 11.1.1.6.0 installation on Windows 7 64 bit laptop issue

    I have managed to install the suite but during the final stages: 13 of 14 configuration process I got an error with the restarting of the Admin Server. I aborted the installation. Now it took hours to get to this point so I was wondering if there is

  • Is Acrobat the product I need?

    Thought I would through this out there.  I am looking for a product to facilitate and streamline document flow and management. Specifically: When we hire an independent associate, they must fill out redundant contracting paperwork with multiple (5-50

  • 3GS THUMPING noise when hooking up to home stereo

    New issue that hasnt happened before. Two different 3GS phones both running most recent upgrade to IOS. When i plug the iphone via microphone jack into the computers RCA jacks a loud thumping occurs in the speakers. I've changed iphones, cables even

  • In java ,how to access the  user-defined type of pl/sql?

    in my application,i using the following code to access the pl/sql type self-defined,but it throws run-time exception,how can i resolve it?String sqlStr="{call BossStat.dunStat(?,?,?,?,?,?)}"; OracleCallableStatement ocstmt=(OracleCallableStatement)co

  • Adobe Please Explain

       Dear Adobe I can find instructions and a list of needed  for modifying Apache to work with HLS for Apple/IOS devices. However I cannot use .dll on Linux but I can possibly use the .so files ....so can you verify that FMS 4.5  HLS  for Apple/IOS de