Single row report?
My company is using APEX 4.1 but I'm an APEX newbie (I have a Oracle Forms background). My user wants an APEX app that displays a couple of fields to enter search criteria and then display a single record report based on the search criteria. The query would return a bunch of columns so they would like to see them in a page format rather than on a single row. This would be read only data. Does anyone know if there are any examples of doing something like this?
There is a vertical report template for the most of the clasic reports. As far as I know there is no such template for Interactive Report. However, you can use Interactive Report for the purpose you described. Interactive Report can use "Link to Single Row View" and it will display all the columns included in the query below each other - just like a form does it. Look under Report Attributes > Link Column
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
http://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
-------------------------------------------------------------------
Similar Messages
-
HTMLDB_ITEM.date_popup on single row report does not work
Dear HTML DB Team,
On a report wit a single( one ) row the "HTMLDB_ITEM.date_popup" does not fill the selected date to the cell. (Same for wwv_flow_item.date_popup)
On the same report with 2 or more rows HTMLDB_ITEM.date_popup works fine.
Any suggestions?
Erik
testcase:
create region:
select htmldb_item.hidden(1,empno) empno,
ename,
htmldb_item.select_list_from_query(3,job,'select distinct job, job from emp') job,
htmldb_item.popupkey_from_query(4,mgr,'select ename, empno from emp',10) mgr,
wwv_flow_item.date_popup(6,null,hiredate) hiredate,
htmldb_item.text(7,sal,10) sal,
htmldb_item.text(8,comm,10) comm,
htmldb_item.select_list_from_query(9,deptno,'select dname, deptno from dept') deptno
from emp
delete 13 rows from emp ( 1 row left ):
delete from emp
where ename <> 'KING';
=> date_pop does not workUsing the htmldb_item API vs. built-in multi-row update functionality:
I can't speak to the question about the date for the next HTML DB release. But I'd like to add a few comments to this discussion regarding the use of the htmldb_item API package. It is generally advisable to use the built-in multi-row update functionality instead of htmldb_item function calls when implementing tabular forms. While I do acknowledge that some display types such as date popups are not yet available, I would nevertheless recommend working with what's available on the report column attributes page (i.e. using a text field for the date columns) as opposed to using htmldb_item functions whenever possible. Please keep in mind though that they are mutually exclusive, so they can't be combined on the same report.
The reasons for my recommendation are simple: first of all, if you use htmldb_item calls as part of your SQL statement, the HTML form elements are rendered for all rows in your result set. The built-in types on the other hand only render HTML form elements for those rows shown on your current page, thus you get better performance. Secondly, htmldb_item calls make your SQL statement quite complicated, not only has the engine to jump back and forth between executing your SQL and calling the PL/SQL functions, you also need to take extra care implementing your PL/SQL processes according to the item IDs you assigned in your htmldb_item function calls. When working with e.g. popup LOVs, this gets even more complicated because that type actually results into two html form elements for each column (one storing the hidden ID, one storing the display value). And lastly, by using the multi-row update functionality, you would get lost update detection automatically built. That means, that you can't accidentally overwrite another person's changes in the event that you should both be working on the same data. Implementing this kind of functionality with your htmldb_item based tabular forms would take a lot more effort than simply go with what's already provided.
So please carefully weigh the benefits of additional display types that you'll get by using the htmldb_item API against all the functionality you'll get by using the built-in tabular form and multi-row update features.
Regards,
Marc -
All,
I am trying to create a horizontal layout report like this here => http://apex.oracle.com/pls/otn/f?p=11933:108:12215694848998::NO:RP::
but i cant see the report template indicated in this sample, where are these custom report templates i can only see wizard or no template not even the sendings for the before/after row attributes,
i did try no template and put the < style >....< / div > < / style > but what about the row settings?
any help please?
thanks.Hello,
You can use the Detailed View of the Interactive Report. Review the Sample Database Application. or, e.g: http://famproperties.com/apex/f?p=DUBAI:RESIDENTIAL_SALE:0
Or, if you insist on using Classic report,then you need to create a new custom REPORT template, with the option of:
> Named Column (row template)
Then you can read the help on the template page for more info ...
Best Regards,
Fateh -
Hi experts...
I want single row in alv report.
I have use loop for fatch data into internal table using loop when i am passing data in alv report then the data comes according loop. i want onlu one data in alv row.
how can i do such, plz help me.decleare two internal table.
read table itab into wa index 1.
append wa to itab2.
pass itab2 only one record display. -
How to add A single row at the middle of the table in a Webi report
Hi,
I created a Webi report using Universe(Created universe using bex query).Now i have a requirement to display a row at the middle of a report. Can you please tell me ,how to add a sigle row at the middle of a Webi report.
Thanks in advance
Regards
MonikaHi Monika,
It is not really possible to add a row (I assume you mean of unrelated data) to the middle of a table in a report. You can add a new table with a single row between two tables. For instance you could add a new one row table, or even single cells which are positioned relatively between two tables. Possibly a block on top of another. But this gets tricky.
Can you explain in more detail what you are trying to do?
Thanks -
-How to restrict Description into single row in the report
Hello Colleagues
I have a report which shows Material number versus Revenue. In the row, material is displayed with Technical name and description.
Here, the view of the report shows the description in single line. While, in the report, description of the report runs 3 to 4 lines though description contains 5 to 6 words (which can fit easily into single line).
Let me know how to restrict each row descrption into single line.
Regards,
NingarajuHello Colleagues
Please find the format it is currently appearing in the web reports.
Material Num Material Description Revenues (In Eur)
1000001 "SAP
ERP
Professsional
User" 111
Wanted to change above format into as below in which it has to show material description in single row.
Material Num Material Description Revenues (In Eur)
1000001 "SAP ERP Professsional User" 111
Regards,
Ningaraju -
Deleting a single row in a report using checkbox
Hi,
Can anyone please help me on how to perform a deletion of a single row/multiple rows in a report when one clicks on a checkbox ..
I went throught the HOWTO's guide .. But when i select a checkbox and say delete i get the following error:
ORA-20001: Error in multi row delete operation: row= 12, ORA-01403: no data found,
Waiting for your replies soon
Thanks in advance
Rakeshjabalsad wrote:
Hi,
I am fairly new to JSF so please bear with me if the answer is obvious :D. I'm using a dataTable component to display data from a database and would like to add a commandLink component to every row in the table that deletes that row from the database. What is the most effective way of doing this?
I'm thinking of using a ListDataModel with some function that removes the correct row (though I'm not sure how it will tie in with a commandLink and exactly where the database will be updated). I'll appreciate any pointers or perhaps even an online example of something similar.
Alternatively I suppose you could pass an "id" parameter on with the commandLink that somehow gets read in the request and the appropriate row is removed accordingly. This solution seems cumbersome however.Yes, your instincts are correct there. Binding the data model to a backing bean to get the UIData instance for the table. Then use UIData.getRowData() to get the object corresponding to the row containing the link/button. Then execute your business logic to delete the row from the database. Then you need to ensure the data model is updated to reflect the new state of the database. -
Bold a single row in a Report based on SQL Query
Should be easy? So, how do I bold a single row in a report based on SQL query without creating a new template or writing Java for the page? What is the Tabular Form Element "Element Attributes" field for? Or what am I supposed to put in there to make it do anything?
One way to do this is to add a hidden column to your report which contains the formatting value, for example:
select empno
, ename
, sal
, decode(empno,1,'font-weight:bold','font-weight:normal') style
from emp
Hide the STYLE column.
Then you can use this column for each column in Column Formatting > HTML expression in this way:
<span style="#STYLE#">#SAL#</span>
Unfortunately you have to do this for each colum you want to appear bold.
good luck,
Dirk Dral -
Interactive report: Can I exclude a particular column from single row view?
Hi -- I posted on this yesterday (Possible to exclude interactive report column from single row display?
a bit anxious for suggestions, I guess!
I've added a column with edit-link functionality to my interactive report query (that is, the link
is not attached to the database data... it's an additional column and shows an icon). It's also
in addition to the default single row view link. (We need both.)
Unfortunately, the Edit link column shows up in the single row view. I've pared it down as much
as I can: the label is empty, and the null value shows as "-". But an extra row with "-" is pretty
ugly. Is there a way to always, completely exclude this column from the single row view?
I know I could put the edit link on a data column, but:
1) I want the link to always be to the left of the data (and the user can re-order columns)
2) when the user doesn't have edit privileges, the link will need to be disabled or just not
be displayed, and I think that would be a problem if the link were on the data. (true?)
Thanks,
CarolPlease disregard this thread, and the one it refers back to. I see a flaw in the design of what I was attempting to do! Creating the link for Editing as a column means the user could inadvertently not display it, or move it, or... any number of problematic scenarios.
Thanks,
Carol -
Possible to exclude interactive report column from single row display?
hi -- I have an interactive report that I've added a column to (in addition to the table columns that are selected).
The added column is a link to a form for editing a single row. This column/link is in addition to the default link
that goes to a single row view. So, a row of the report has 1) the single row view link, 2) the Edit link,
3) the columns in the table.
The edit link column is named "Edit" (so Edit appears above the "pencil" link icon). Problem is that when the
user goes to the single row view, the Edit column is displayed. (I've set the label in the view to a blank space,
and the value is null (displayed as "-" in the single row view)... but it's generally ugly, and adds that nonsensical
line to the single row view.
Is there any way to never display that column in the single row view, but always display it in the report?
I've considered putting the edit link on the first column of the table... but I don't like that the link will move
if the user changes the column order. It seems it should always be at the left of the row, like the single row view
link.
Thanks,
CarolPlease disregard this thread. I see a flaw in the design of what I was attempting to do! Creating the link for Editing as a column means the user could inadvertently not display it, or move it, or... any number of problematic scenarios.
Thanks,
Carol -
Interactive Report's Column Definition - Single Row View Label Bug?
Hello,
I have an Interactive report that I've added a Blue background to certain column headings (done by giving Column Heading a background color), this works fine except for the Single Row view - it displays the <....> code I used to get the background color and the column heading. I've tried to change the Single Row View Label by unchecking the 'Use Same Text for Single Row View' on the Column Definition and giving a different label, it just ignores whatever I put in and shows the Column Heading with the < .... > code. Is this a Bug or am I doing something wrong?
Thanks,
AnnaHi Anna,
I believe that it is a bug.
If the 'Use Same Text for Single Row View' checkbox is unticked and some text is entered in the 'Single Row View Label' field it gets ignored completely when viewed in the single row view and the existing value in 'Column Heading' is used.
I wanted to do something similar to you, colouring some of the Interactive Report column headers, and it works fine in the IR report itself but shows the code (span style:color etc) in the single row query. I am using Apex 3.1.1 and the Sand Theme.
I created a simple application on apex.oracle.com using the red theme and in single row view it still ignores the 'Single Row View Label' but interestingly shows the Column Heading text without the code. This indicates that there could be a work-around by altering the theme.
Regards,
Chris -
Need to modify css for interactive report Single Row view
I've tried to go through and find the code for the Single Row View css in the interactive reports, but have been unsuccessful so far. I would like to change it so the Grouping headers are larger than the column names that are grouped under them. Does anyone know what style I would need to override in order to accomodate that?
Thanks!Hi,
In the page's HTML Header, add in something like:
<style type="text/css">
.worksheet .worksheet_detail th.group, .worksheet_detail th.group {font-size:18px;}
</style>
If you use FireFox, I would recommend getting the FireBug add-in - this allows you to examine the contents of the page and shows the style class names used.
Andy -
Interactive report with single row select
Hi,
Is it possible to create an interactive report that has a single row select column i.e. you can only select one row and when you select another row it deselects any row selected before, simular to a list of values but with the functionionality of an IR report.
Thanks in advanceHi,
Try adding this to the query of your report:
select ...
apex_item.radiogroup(1, some_unique_column) sel
from ...You didn't say how you want to use this, but when the page is submitted the array apex_application.g_f01 may contain either none or exactly one element, which will be the some_unique_column value of the selected row.
Luis -
SSRS - multiple toggle in single row item to drill down sub report
I need to open a sub report using drill down concept. Is there any possible to give toggle for multiple columns in single row.
http://social.msdn.microsoft.com/Forums/getfile/528971
The sub report have two parameters to show data. If I click first link the subreport to be drill down with parameters 1 and 5. If I click second link the
same sub report to be drill through with different parametrs as 2 and 6.
Any idea to do this?Thanks for your reply.
I do it this in different way.
See the below sample image url. I created the main report having four details with toggle to drill down the sub report. If I click the Detail1 the
subreport1 will expand drill down then I click Detail2 the subreport2 to be expand.
But still the subreport1 is visible I want to collapse Subreort1 once click toggle second and vice versa.
Please give your suggetions.
http://social.msdn.microsoft.com/Forums/getfile/529184 -
Can i go straight to single row view of a report?
When I click on a link I would like to be able to go directly to a single row view on an interactive report - not to just select that row on the normal view. Anyone know how to do this?
Hi,
Actually you can go single row view of interactive report on page load.
http://apex.oracle.com/pls/otn/f?p=40323:48
And it is easy to do with dynamic action.
I did create Advanced dynamic action
Event "Page load"
Action "Execute javascript code"
Code gReport.controls.row('7369')-- this varies on your report . Just example for EMP table
Selection type "Region" and I did select region where is my IR
Instead hardcode primary key value to javascript, you can probably use item like
gReport.controls.row('&Px_MY_ITEM_FOR_PK')I can post how it can be done in Apex 3.2 if needed.
Br,Jari
Edited by: jarola on Jul 28, 2010 5:43 PM
Edited by: jarola on Jul 28, 2010 6:03 PM
typo corrected
Maybe you are looking for
-
Progress bar in the portal does not appear all the time when loading
Hello All, I have a dashboard in EP, when I click on it the majority of the time a progress bar appears when it is loading. Some time it does not, the page just appears to be doing nothing, then the dashboard will appear. Any one else seen this issu
-
Why my external harddisk formated as R&W for one imac will remained for use in that imac only. When I bought a new imac the external hard disk end up can Read only. Shouldn't it remain the same as R&W? There is no way you can set back to R&W for my n
-
Removing existing account iCloud
Got used ipod touch and set up Apple ID w/o problem... with ipod touch I tried to sign in with new Apple ID account on icloud. It said "Cannot sign in... maximum number of free accounts have been activated on this ipod touch" I have asked Apple tech
-
First Time Connection of a Time Capsule
Hi, This is probably a really obvious question but what is the best way for me to set up my TC? I expected it to replace my Linksys router but from reading the forums this is not the case. Do i then need to connect via Ethernet to the router? If so,
-
When I place a JFileChooser into its own JPanel, as part of a bigger JDialog, I have discovered that I am not able to get hold of the file name which I have entered into the associated textField. I have used getSelectedFile(), but this only returns t