Report based on a view

Hi,
On my page I have a select list with submit (--> computes an application item AI_OEFID) and I have a "form with report" based on a view.
In my Region Source I have added a where condition: where "EMPID" = :AI_OEFID.
When I select an employee in the select list the report only shows data of the selected "EMPID", which is fine.
The "null display value" of my LOV is "Choose employee..."
When I select "Choose employee..." the report shows "no data", BUT at that moment I want all my employees shown in the report.
So, I tried the following: I changed my where condition: where "EMPID" IN (:AI_OEFID) and I created another (conditional: when value of LOV = -1) Page Processing computation which computes my application item AI_OEFID with the result of a SQL query: select EMPID from <<VIEW>>.
When I select "Choose employee..." the report shows only my first EMPID.
How can I show all my employees in the report when I select the "null value" of my LOV ?
Thanx,
Frederik.

Frederik,
Have a look at this example:
http://htmldb.oracle.com/pls/otn/f?p=31517:99
Denes Kubicek
http://deneskubicek.blogspot.com/
http://htmldb.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • BI Publisher report based on VO (View Objects)

    Hi,
    I would like to know, can we generate BI Publiher report based on VO (view Objects ). Actually we are creating VOs for ADF and want to know if that can be used for generting BIP report.
    Thank,s
    Niraj

    Hi Niraj
    Yes, you can, there is a method on the VO to get the data from it in an XML format. Then use our APIs >> documentation to format it with a template.
    Regards, Tim

  • Error when trying to add sort option to a report based on a view

    Hello,
    I have several reports based on a view. Everytime I am trying to soft them by a column or more, I get this error:
    failed to parse SQL query:
    ORA-00911: invalid character
    If I take the sort out, it works just fine. Any idea how to fix it?
    PS: got it... it was from the ; at the end of my sql...
    Thank you
    Anca
    Message was edited by:
    ancag

    You seem a little grumpy. Yes, it has acurred to me that no one knows the solution. And no, I have not called tech support yet as I have been distracted lately and spending an hour on the phone trouble shooting is an hour I could be studying. Its much easier to "bump" this thread and hope someone with a suggest will chime in.
    Anyway, please dont just tell me to delete something without giving me an idea of what Im deleting. I have a feeling that this login.keychain deletion will cause me to loose the information already stored. Is this the truth?

  • Report Based on SQL view not pulling in all parameters

    Post Author: ronhawker
    CA Forum: .NET
    I based a report on a SQL view below:SELECT     TOP (100) PERCENT CorpDirectory.Position, CorpDirectory.PhoneDirect, CorpDirectory.Email, CorpDirectory.Store, CorpDirectory.Name,                       CorpDirectory.PhoneFaxWave, CorpDirectory.Department, Store.StoreName, Store.StoreStreetAddress, Store.StoreCity, Store.StoreState,                       Store.StoreZip, Store.StorePhone, CorpDirectory.DisplayOrderFROM         dbo.CorpDirectory AS CorpDirectory INNER JOIN                      dbo.Store AS Store ON CorpDirectory.Store = Store.StoreORDER BY CorpDirectory.Store, CorpDirectory.Department, CorpDirectory.DisplayOrder, CorpDirectory.Name When the report was created the order by sequence only brought in the first parameter of CorpDirectory.Store. It seemed to ignore the other three order by parameters. I am running 10.2 is VS2005.

    Sharmila,
    Thanks for your response. Maybe I wasn't clear enough in my previous statement. I will give an example of what I am trying to accomplish.
    Let's say I have 2 date fields(SUBMITDATE,COMPLETEDATE) in a table TABLE A
    I want to calculate a field called CYCLETIME with the following conditions:
    If COMPLTEDATE is NULL, then CYCLETIME = SYSDATE-SUBMITDATE
    IF COMPLTEEDATE is not null, then CYCLETIME = COMPLTEEDATE-SUBMITDATE
    Would appreciate any help.
    Thanks
    Dev
    Hi,
    You can do the calculation in the sql query itself. Here is an example which shows the sum of salaray for each department in the scott.emp table.
    select deptno,sum(sal) sal
    from scott.emp
    group by deptno
    Thanks,
    Sharmila

  • Reports based on SQL view contain no data. Reports based on tables work just fine

    When we load a report into Crystal reports server that is based on a SQL view the report will run but will contain no data. A report that pulls data from SQL tables works just fine. Running the crystal report on standalone crystal reports works just fine.
    I am completely lost on this one. If you have any ideas please send them my way.

    Are you missing an ODBC / TNS entry on your CMS (or report processing, if clustered env) server?  This could definately be an issue if the report will run locally within CR client, but not when hosted on the enterprise environment.  Another test would be to run the report from CR client ON the CRS / BOE server..

  • Issue filtering a report (based on narrative view) with a dashboard prompt.

    I used HTML and java-script codes in narrative view to solve the issue of "linking different reports on selecting values from a drop-down". A new issue has cropped up due to that implementation. The issue is that i can't attach a dashboard prompt to such a report. This means, when i put this report on a dashboard page with a dashboard prompt to help filter the report, the report does not gets filtered (it does not seems to be connected to the dashboard prompt).
    Has anyone faced this issue before? If yes, please let me know how to tackle it at the earliest.
    Regards,
    Ramil

    Hi,
    sorry , i could not solve the problem. the below case statement i put in the formula of a date column but i got some syntax error.One more thing is case statement is appearing in the select query not in where condition. Do u mean to say if i will put the same column as is prompted then it will come in where condition.
    Could u plz help me where i am doing wrong .
    case when '@{Period}'='Weekly' then Alerts."Creation Date and Time"  between  '@{PStartDate -7}' and  '@{PStartDate}' end
    [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <between>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: SELECT Alerts."Business Domain(s)", Alerts."Closing Action Type", Alerts.Closer, case when ''='Weekly' then Alerts."Creation Date and Time" between '' and '' end FROM "Common Productivity Reports for Alerts"

  • Interactive report based on complex view

    firefox 24 , apex 4.0 , db11gxe ,
    hi all,
    i created an interactive report with this code :
      select c.client_id , c.client_name , c.age , c.email , c.phone ,
    p.payment_date , sum(p.amount) "summary"
    from clients c , payments p
    where c.client_id = p.client_id
    group by c.client_id , c.client_name , c.age , c.email , c.phone ,
    p.payment_date;
    but the problem was i could not delete any of the rows of the report , because there was no checkbox existed , so i created one with "apex_application.checkbox" , and i have got it now , but
    i still can not delete any rows ,
    i created a button to submit the page , and a process with this code
    FOR i in 1..APEX_APPLICATION.G_F01.count
    LOOP
       DELETE FROM cp
       WHERE client_id = APEX_APPLICATION.G_F01(i);
    END LOOP;
    and sure nothing was deleted , and i am facing this error
    ORA-01732: data manipulation operation not legal on this view

    What is the object "CP" ?
    It sounds like it is a view. If it's the same you've used for the IR, then check out "key preserved views"
    Oracle doc - http://docs.oracle.com/cd/B28359_01/server.111/b28310/views001.htm#ADMIN11784
    Tom Kyte - http://asktom.oracle.com/pls/asktom/f?p=100:11:6474092145067::::P11_QUESTION_ID:548422757486
    There could be another issue once you address the error - depending on how you've defined apex_application.checkbox2 (the other is deprecated)
    You may not be associating the correct value in g_f01

  • How to have rownum in a report based on a view

    How to use rownum in a report or tabular form?
    I wanted to number the rows in a report. The most obvious way would be just stick
    rownum in there. There is a view in a database1. It is merely select a,b,c from various
    things joined together and order by pkey1.
    Apex is in database2 so I have to create a view there across the link
    like:
    create or replace view SOME_VIEW as
    select * from OTHER_VIEW@SOMELINK
    alter view SOME_VIEW add constraint PK_SOME_VIEW
    PRIMARY KEY (pkey1)
    DISABLE NOVALIDATE;
    The problem is if I try to include rownum in the query in the report I always get:
    failed to parse SQL query:
    ORA-01446: cannot select ROWID from, or sample, a view with DISTINCT, GROUP BY, etc.
    There's no rowid, it knows that the primary key is Pkey1 so what is the problem?
    I know it's rownum that it hates. Maybe I can just number these things some other
    way. However it'd be good to figure out what it is griping about.
    Anyone know?
    Edited by: lake on Mar 12, 2011 9:36 AM

    thanks!
    Actually I made a mistake in testing. And it does work to do this:
    in database1:
    create or replace view VIEW1 as
    select
    rownum "SEQ", etc.
    in database2:
    create view VIEW2 as select * from VIEW1@mylink
    How I screwed up testing that I don't know. I was calling the column NUM before....
    this is good because you can create a report about the next so many of something, such as how many of
    the next batch of mailings have address problems? For that you need to know in what order it will be done and
    when to quit.
    But I'm sure I will use the report rownum thing also. thanks very much.

  • Creating a Form with Report based on View

    Hi All,
    I wanted to create a form with report based on two tables so:
    1. I created a view (called COMBO) based on two tables
    2. I then created a form with report based on the view
    Everything seemed fine thus far until I tried to edit existing records - I got the error:
    ORA-20505: Error in DML: p_rowid=2002082600001172, p_alt_rowid=REPATRIATION_ID, p_rowid2=, p_alt_rowid2=. ORA-01776: cannot modify more than one base table through a join view
    Unable to process row of table COMBO.NB: REPATRIATION_ID is the primary key of the Repatriation table. The other table is Applicant.
    & when I tried to create a new record - I got the error:
    ORA-01776: cannot modify more than one base table through a join view
    Unable to process row of table COMBO.Someone please enlighten me!
    Kind Regards
    Kamo
    Edited by: Kamo on 2009/03/12 2:33 AM

    Hello Kamo,
    You need to create an 'instead of' (update/insert/delete) trigger on your view to process the inserts etc into the 'real' tables.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Problem to run the Crystal report inside from SAP B1 based on SQL views.

    Hello,
    I have a problem to run my Crystal report inside from SAP B1 which is based on SQL views.And the SQL views are stored in a separate database in SQL server.The error which i am getting is saying the the tablename does not exist.What i need to do in order to sort this problem.
    Great if somebody can help me to sort out this so that i can run my report based on SQL views stored on separate database other than SAP databases inside from SAP B1.
    Edited by: rozenagrawal on Apr 19, 2011 11:51 AM

    Try using a SQL synonym in your company database for the views outside the company database. I don't know if SBO will let you get away with it, but its worth a shot.
    If your company database is MyCompany and you have a view called MyView in Views database, assuming the view belongs to schema dbo, and you want the synonym to belong to dbo schema in your company database, run this:
    Use MyCompany
    go
    create synonym dbo.OutsiderView for
    Views.dbo.MyView
    go
    select * from OutsiderView
    The select statement should return the contents of MyView in the Views database while you are connected to your MyCompany database.
    For more info, see the Books Online for MSSQL on topic synonym.
    You will need to change your CR options to include displaying synonyms along with tables, views, etc. You may also need to grant select to B1 users.
    Edited by: Cindy Lange on Apr 21, 2011 4:00 PM

  • Unable to Create a QBE report based on View

    I have a view which is based on 4 tables.
    The view by itself works fine.When I create a QBE report based on that view it gives the
    ORA-01445: cannot select ROWID from a join view without a key-preserved table (WWV-11230).
    I am not able to understand what I'm doing wrong.Please help!
    Thanks,
    Hyma.
    null

    Its simple if its a view on one table, but you have a view based on 4 tables. That is what makes it complicated and the need for special set up and a little research. I don't remember what all goes into it, but I do recall that its not just as simple as creating the view.

  • LMS not reporting complete for slide views

    Hi,
    I am trying to get my captivate projects to report competion status as complete to the LMS based on slide views. For testing I have created a very simple two slide Captivate. Both slides have 3 second durations, one caption each and nothing else, so the whole project runs for 6 seconds without any pauses, quizes or interactions of any kind. I have used SCORM cloud to view the SCORM calls being made by the package, and it is not reporting completion to the LMS.
    I am using the following settings in reporting:
    Any help will be really appreciated. Im about to watch http://www.adobe.com/cfusion/event/index.cfm?event=set_registered&id=1775550&loc=en_us to see if that can help. My backup plan is to put an interaction on the last slide but that's going to mess with my quiz results for the projects that do include quizzes (This is also why im reporting Quiz Results and Slide Views).
    Note: with these settings, passing a quiz causes the captivate to report completion.
    Thanks for any help
    Andrew Downes

    I'm not sure of this and defer to any contrary/additional replies that may follow...but...
    Past versions of CP have required some sort of scored interaction in order for the lesson to properly report via SCORM to the LMS.
    If you have a CP lesson without any scored interactions (no 'reporting'), that may be why completion is being recorded to the LMS.
    SO try setting up one scored interaction as you suggest.
    For CP lessons that do have quizzes, you won't need that separate scored interaction.
    You'll also likely want to change you settings to just 'Slide Views Only' if you just want completion reported based on them viewing the whole project, and I suspect Slide View Completion should be 100, not 10...
    Let us know how that goes...
    Erik

  • How to find ECC tables/ reports based on which a DB View is created?

    Hi All,
    We have customized data source created based on a View/ Table.   How can i find the ECC tables/ reports based on which this View has been created and also the logic behind which the different fields extract data from ECC..
    Please advice.
    Thanks & Regards
    Sneha

    Hi Sneha,
    The only logic, i guess, that could be used is either defining the join fields or some restriction put in the selection conditions tab of the view. for e.g. if the view should only return Doc type XYZ, the same could be implemented in selection conditions tab. for transaction to check the view, it was already posted above.

  • To View Report based on Profit Center

    Hi
    I will require Transcation Code to view the report based on Profit center, presently we are using KE5Z T_Code but that report doen't conatin the line items which was derived the data from 1st line item
    For Ex: Expenses Dr
                To, Expenses Payable A/c Cr (Profit center derived from Expenses line)
    these kind of derived line items profit center is not showing in KE5Z, Please let me know where can i get such kind of line items
    Thanks
    Sreenivasulu

    Hi Friends
    The problem has beend solved. It turns out that this is a report writer issue. We raised the issue with SAP and they informed that 'For Report Painter/Writer every item is checked if you have the authori-zation or not. Only the items with authorization fullfilled will be displayed afterwards'.
    Based on SAP answer we created different reports for each profit center/company code.
    I would like to thank you all for your time and inputs.
    Regards,

  • How to biod Crystal Reports based on ABAP Tables/Views

    Hi,
      Can any one post me some document stuff on building Crystal reports based on ABAP Tables/Views please!
    Thanks,
    Madhu.

    Hi,
    Check out the links below for Crystal Reports :
    Re: Crystal report in SAP BW
    http://support.businessobjects.com/documentation/product_guides/
    http://help.sap.com/saphelp_nw04/helpdata/en/86/06a8d3be17fc47aa8d850e50cf5f24/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/46/dfd33b1ed4b47de10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/34/c0523e83464644e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5f72b7c0e943d99f4f5cef2bfacfe1/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/06/00a63b60f26e3be10000000a114084/frameset.htm
    Hope this helps.
    Cheers,
    Kedar

Maybe you are looking for

  • Centering JFrame on desktop problem

    I have this code which centers JFrame on the desktop and which works fine only outside the constructor of the JFrame class. How can I make sure that the JFrame window is centered on the desktop when it opens? GraphicsConfiguration gc = this.getGraphi

  • Cdrom sharing does not appear in system preference

    When I click sharing in system preference, there is no "CDROM" to activate sharing. I dont see it there. what can i do? Please help. yashin.

  • Why does my shape change when I change stroke attribute?

    Hello, I am having problems with my vector shapes automaticly changing shape (the position of every point that makes up the shape) when I increase the weight of the stroke or at color of the stroke. I hope that is clear. For example: I have a Circle,

  • Probleem bij opstarten Lightroom 5

    Tijdens het opstarten van Lightroom krijg ik volgende melding: 'Lightroom heeft een fout aangetroffen tijdens het lezen van de voorvertoningscache en moet worden afgesloten.  Lightroom probeert dit probleem op te lossen als het de volgende keer wordt

  • Ping and ssh don't work after waking from sleep

    Hi! I have been running Arch on my 2010 Macbook since May and there's always been this one annoyance which I can't figure out: after it is woken from sleep, the wireless (using netctl) happily reconnects and I can browse, check email, run pacman, do