Link of the conditional column in classic report
I am tring to display a link in a column only if another column has a value in the same row. However, the column, I try to display conditionally must call a javascript function when the click on (it pops up a modal window) and it must include an image.
My report request is
Select
AC. C001,
AC. C015
apex_util.prepare_url ('f? p = & APP_ID.:4: & SESSION.: &. DEBUG: P4_PARCEL_ID:' | ac.c001) LINK_URL,-my link conditional image onclick
Of apex_collections ac
WHERE collection_name =: P3_COLLECTION_NAME
Report of the attribute COLUMN BINDING settings are:
LINK ATTRIBUTE: < img src = "" #WORKSPACE_IMAGES #fff_report.png "/ >"
URL: javascript:mymodal('#LINK_URL#','View_Comments')
It works, but it shows the picture report.png on each line of the report. I need to combine the link attribute and the url in the statement select with a CASE to view statement conditionally cela but I can't get the good constructed string... can help any one?
I'm looking for
SELECT
case if ac.c015 is not null then
apex_util.prepare_url ('f? p = & APP_ID.:4: & SESSION.: &. DEBUG: P4_PARCEL_ID:' | ac.c001) LINK_URL (add on the image and appeal of javascript...?)
on the other
null
end LINK_URL
Of...
Thank you
Andy
Hi Andy,.
It works for me, it will help to prepare the good instruction box with pictures and without images
-Sunil Bhatia
Tags: Database
Similar Questions
-
Select row column in classic report default beat all
Hello
Based on my previous thread how can I do the same task in classic report.
I followed your previous link to all select and clear the all check box.
even he just not all checked when the page loads.
Please help with this too.
Hi Maxence,
CORINE wrote:
Hello
Based on my previous thread how can I do the same task in classic report.
I followed your previous link to all select and clear the all check box.
even he just not all checked when the page loads.
Please help with this too.
The answer lies in the previous thread: Select the row column in report default heartbeat intractive all
I hope this helps!
Kind regards
Kiran
-
Several links in the single column
Hello
I have a requirement to display several links in the single column.
Example:
Select emp_name emp #, total_days days, col3, col4 from table
Here, I need to display a link beside the example of days
If day > 100 then display "101 CH" where 101 days value and CH is the URL link which will open a popup page. I can't have another column for the link that we have already several columns. So I need a way to display the link with the value next to him. How can I achieve this?
try to put it in the source of the region
Select emp_name, emp #,.
-case when days > 100 then days | " http://Google.com" target = "_blank" > popup' another to_char (days) end total_days, "
col3, col4 from table;
This should display "101 popup" when the days more than 100, no popup link on days<= 100="" e,g="" "99"="">=>
and the value of the column total_days to the "Reporting Standard column" to allow html tags.
Change the href attribute and formatting to meet your requirement
-
Reports - the values of the checkbox and the conditional column visibility
Although I use Oracle databases for many years, I must admit that I am rather new to APEX. I build a first prototype project to convince our project managers and managers of the usefulness of the product for future projects (as for interfaces Visual of the database where the focus is on forms and reports, it is often quicker and cheaper to build an APEX application instead of a webapp in Java or c# full blown).
I have a few problems however.
I'll start with a quick description. I have the following structures of parent/child:
Provinces > cities > Intersections > earrings > detections in loop.
Basically, I want to do a report on detections of loop. Now, as we have thousands of detections someday, I did kind of a mining structure down. First, you choose your province, then the city, then the intersection and finally the loop. Do not use the lists to make the selection. Instead, I did a (classic) report on each side because it allows me to give detailed information for each part. In each report, I made a link on the identifier. For example, when I select a province (by clicking on the link), I pass the identifier of the province of cities report and use it in the query to restrict my report to these cities in the province. I repeat these step for different parts, which, in the end, gives me the selected loop loop detections. The good news is that all this works very well. However, the person who will use this application made a suggestion and asked if it would be possible to select different loops and thus get the detections for several loops (the rest of the application remains the same). However, this means that I can't use the link in the column more. Now, I thought in the sense of a checkbox control. The link to the column is still there, but the user would also have the possibility to select several items in the report. I have managad to add a checkbox control to the report, associated with the loop identifier column. It's not really hard. I can't understand, however, how I can pass the identifiers found in the next report (detections for the selected loops) and use it in the report's underlying query. The problem is, I do not know how to pass the values checked to the next page and how to use these values in the request of the State of this page. I guess it must be possible, but I couldn't figure out how. I tried to play with APEX_APPLICATION. G_Fxx and others. Don't forget I'm a newbie and this seems to be more advanced features.
I downloaded the images from the 2 on the pages of the report to illustrate:
http://img96.imageshack.us/img96/1497/apex01.jpg
http://img140.imageshack.us/img140/9868/apex02.jpg
A second point that's bothering me is this. In the loop detection report, I show a link column (I chose an icon instead of the value of the column) for each line. I also have a column that displays the number of detections for the given line (and one day). Now, for some lines, there is no detection that has emerged. Therefore, there is no point in the selection of this loop, because the result will be a blank report. However, I still want to show the loop in the loop selection report, as it is always present (it is not as if he suddenly disappeared). Of course, no big problem and most users probably have sufficient intelligence to understand this. However, it would be nice if I could do the icon (link colum) visible only for these loops with detections, or in other words, for these recordings in which number_of_detections (COUNTY of underlying column) is greater than 0. I couldn't find a way to do it either. The conditional display for a column option didn't really offer me a solution here.
Before I forget, I use APEX 4.0.1 on an Oracle XE database.
Any advice or suggestions would be welcome! :)
Thank you.
ErwinHello
You mean something as in this example
https://Apex.Oracle.com/pls/OTN/f?p=40323:55You can store the values checked into collection and then use it in another report where clause
See for example this post for how you can memorize checked lines to the collection
Re: Need help with APEX_CollectionIn the sample report DEPT query is
SELECT CASE WHEN EXISTS(SELECT 1 FROM emp e WHERE e.deptno = d.deptno) THEN APEX_ITEM.CHECKBOX(1,c.c002,'onclick="saveDeptChk(this,'||c.seq_id||')"','true') END AS row_selector, c.c002 AS checked, d.DEPTNO, d.DNAME, d.LOC FROM dept d, apex_collections c WHERE c.collection_name = 'DEPT_CHK_COLLECTION' AND d.deptno = c.c001
And the report on EMP
SELECT e.EMPNO, e.ENAME, e.JOB, e.MGR, e.HIREDATE, e.SAL, e.COMM, e.DEPTNO FROM emp e, apex_collections c WHERE c.collection_name = 'DEPT_CHK_COLLECTION' AND c.c002 = 'true' AND e.deptno = c.c001
Kind regards
Jari -
How to specify the width of the column for classic report in 5 Apex?
5 apex, I click on the name of the report in tabular form and then go to the tab report attributes. When you look at the attributes column, there is a list of the database columns that are included in the report. One of the attributes is the column width. Regardless of the value, as I type, the column widths do not change when you view the results of the report.
For a particular column of data in the report, which is editable, this is show only about 20 characters and I want to show him perhaps 50 characters. It would be great if it would also wrap up the value of a new line when the size of the data is too large to fit in the allotted space.
I guess that it is a simple setting and I looking in the wrong place.
Help, please.
Thank you
Kim
Hi Kim
Bakhtiyar post is the correct answer. However, there are occasions where does not display the width option in the attributes Panel. that was the position that I assumed you are in. It depends on how the form of tables was created. If it was created using the wizard, no problem. If the form has been created manually (IE without using the Wizard), and then depending on the model used, the width option does not appear. The only way we found it is to recreate the form (using the Wizard). Or use the css above.
I hope that your form displays the width option.
Concerning
Paul
-
Column width classic report apex 5.0
Hello
Using the latest version of the Apex
version: 5.0.0.00.31
Information of the database: Oracle Database Enterprise Edition Release 12.1.0.2.0 12 c - 64 bit
Theme: Universal Theme,
Models Page and the region: Standard
I wanted to know what is the correct way to set the width of a column on a classic report in the new theme.
I have two columns in the classic report and uses the form fields Stretch on model options in region I need the report to take the entire length of the region.
I want to control the width of the first column to take less bandwidth. Currently, each column is set to 50% each.
Please provide your suggestions.
Hi Madhu,
Go to the Page attribute
under CSS-> Inline-> put the code below
td[headers="JOB"] { width: 200px !important; }
Here, instead of WORK put the column heading that you want to increase the width
Kind regards
Jitendra
-
Break the formatting in a classic report
Version 4.1.1.00.23
13 Classic Blue theme
Hello
I'm having a problem trying to get the value of the column in the row of the total instead of the column header.
Here's what I mean:
What I want is for the value "Of Initiation" to show instead of "Name of PDM stage" so that the line would be ' Initiation Total:'
Break formatting is currently:
When I try to use the "when a break column display use this format, subs #COLUMN_VALUE # use" and put #COLUMN_VALUE # Total: I receive:
Can someone help me get the Total to the value of the column?
Can what additional information I give?
Thank you
Joe
Joe R wrote:
No idea who is possible in the current version?
# Classic reports are the child ginger step of the components of the APEX. No love. Little improvement.
-
ISO: tutorial for the selection on the top and a classic report on background
I tried to find a tutorial about it; I know that I've seen, but cannot re - locate and frustrates me because I know there are and I don't have you guys something bothers when I KNOW that it is documented...
I would like to learn more about having a box of selection on top of a LOV and, after making a selection, a report of items appears under the area of selection.
The LOV is from Table1; the report is from Table2
Table2 has a column which refers to Table1.
I know I can get comparable results form an IR, but I would like to know how to do the reverse. Preference by construction of the page (not through an Assistant), so that I learn the process and logic.
I tried to "wing" by creating 2 regions (html on top, with an element of selection as select with bid and the classic report on the merits;
Can you please direct me to the tutorial?
Thank you
MarionHi Marion,.
Try this: [http://download.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/rprt_query.htm#BGBEEBJA] it is referring to an earlier version of the Apex - new version explains interactive reports instead.
Andy
-
Reset the sort sequence in classic reports.
I have a classic report with two sortable columns, product number (sequence 1 type) and the name of the product. If the sort order is changed by a user, subsequent executions or the report tracks appear with the last sort order of the report.
For example;
The user runs the report and change the descending sort of the product name.
B the user running the report for the first time and sees the report in the product name descending sort order.
I gave the name of the product a sort sequence 2, but it made no difference.
The sort order can be reset or updated?
Thanks for any help,
DaveHello Dave,
> How the sort order can be reset or updated?
You use the APEX_UTIL. Procedure REMOVE_SORT_PREFERENCES - http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/apex_util.htm#CHDHDFHB.
Kind regards
Arie.-------------------------------------------------------
Be sure to mark the appropriate fix/useful messages. For the long term, it will benefit us all. -
Linked server: the provider OLE DB 'MSDAORA' reported an error
I have a problems with a linked server to Oracle...
Initially, the server running SQL Servre 2000 and Oracle8i and the linked server works well...
But after that the it Department installs an Oracle 11 g Client on the server...
When I run my query open in SQL Server, I get an error message
[OLE/DB provider returned message: Oracle error, but the error message could not be found from Oracle.]
OLE DB error trace [provider OLE/DB 'MSDAORA' IDBInitialize::Initialize returned 0x80004005:].
MSG 7399, level 16, State 1, line 1
The provider OLE DB 'MSDAORA' reported an error.
Hope you guys can help me, thanks.
Hello
What is the version of the database used for related serere? Is Oracle 8i? Please confirm.
If the database is 8i and customer Oracle 11 GR 2, these versions are not compatible.
After you install Client Oracle 11 g, you saved the OLEDB driver.
Restart the SQL Server, after installing the Oracle Client and then create the server bound.
Thanks and greetings
Vincent
-
Select the line of the classic report to pass the value to another classic report on the same page
Hello
First a few details about the environment - I use the image of the last download oracle VM developer days to oracle.com. This includes DB version 12.1.0.2 and version 4.2.5.00.08 Apex. For the question although I don't know the specifics of the versions that are relevant.
What I want to do an apex page which includes an analytical section at the top, followed by a section of retail slot - a line is selected / highlighted at the top which causes the relevant lines in this summary line is displayed. Its screen basically a master-detail - however the source of these two sets of data is just a query - is not a table.
The query at the top of the page is something like
Select * summary
and the section below is
Select * from details where id = (the value of the id clicked in the summary above)
This feels like it should be really easy (and indeed, it is for the tables through the apex of master-detail Wizard) - but I can't understand when the two sets of data are the result of queries.
I can't seem to make reference to the elements of the page when it comes to a report and I think that I might need to go down a kind of dynamic route of actions and jquery, but I don't get very far very fast. I found some notes that seem similar, but nothing which does exactly what I want. The function APEX_APPLICATION to browse a table also doesn't seem to be possible for the output report that I could see (tags are not there) - what is relevant for the forms?
I hope that I have explained that quite simply.
Can anyone help?
See you soon,.
Rich
You link column can be just a null value in the sql code, if you want. Change the column and head down to the link attributes.
Text link: "Click me" (source of sql using #MY_COL columns or #)
Target: URL
URL: javascript: $s ('P1_ITEM', #ID);
Then have onChange dynamic action on P1_ITEM which updates the State. Do not forget to present the value of session state (either property right under the sql or pl/sql prior to update action report). The database needs to know the value of browser before running the query.
-
Choose the Select columns in interactive report
Well, many have been changed since the last, I have worked in Oracle Apex (he was at the time the HTMLDB) and now back to APEX
It is APEX4.0
I have a report of interatrive on a table that has only 4 columns. One of the column is not displayed when the report charge upward,
as the user selects "column" in the Action menu.
How can I change this? How can I make sure the columns to display in the report and the columns that should be available in the selection list.
I'm sure I'm missing something here. I searched a lot without success so far.
Any help is very appreciated.
user3347974 wrote:
Well, many have been changed since the last, I have worked in Oracle Apex (he was at the time the HTMLDB) and now back to the APEX
It is APEX4.0
I have a report of interatrive on a table that has only 4 columns. One of the column is not displayed when the report charge upward,
as the user selects "column" in the Action menu.
How can I change this? How can I make sure the columns to display in the report and the columns that should be available in the selection list.
I'm sure I'm missing something here. I searched a lot without success so far.
Any help is very appreciated.
In a developer session, change the report so that all columns are displayed and save it as the default main.
-
How to hide the Rev column. Classic view search results
Please help any idea on the customization of the display classic search result page to hide columns "Rev."
Thanks cordially
Srinath.Then go back the same document listed previously and look for "noRevisionsColumn" instead.
-
Please help - value of the long column of SQL report required in a separate cell
Hello.
I need to create a SQL report with the structure as below:
Country city vertical Business details for the State (detail desc)
MY Quincy Healthcare US
It is a detailed desc value that is displayed in a different cell.
It is a detailed desc value that is displayed in a different cell.
It is a detailed desc value that is displayed in a different cell.
It is a detailed desc value that is displayed in a different cell.
US MY Braintree, HE
It is a detailed desc value that is displayed in a different cell.
It is a detailed desc value that is displayed in a different cell.
It is a detailed desc value that is displayed in a different cell.
I came across a solution where you can hide/show the column value in another cell. But my requirement is that it should be displayed when the page opens, and the user will not have to click a button to see the value. This is mainly for their presentations, and printing. so its very annoying for them to click on the buttons so much to see the value of desc of detail for each record. I'm new to Java script, please helpI'm not sure to understand your needs - you are showing us 2 data lines, lines 7 or 9? You want the long description of detail on the same line, or below?
I'll go on the assumption that you are showing us two rows, and long descriptions in this example are found along 3 to 4 lines, and you want long descriptions under the details. In this case, I suggest using "column name" models They are much easier to use as they appear when you look at everything first, so bear with me.
Under 'shared components', select 'Models' and click then on create yellow > button. You create a report model, from scratch. On the last page of the wizard, select "Named column (model line)" for the type of model. This will create a model rather generic (and useless), which you'll have to edit; I don't know why they chose to not send you directly in the editor. When you change it, you will see that the single field whose value is 'Model line 1', and it is set to:
#1# #2# #3# #4# #5# To meet your needs with basic features, change it to something in the sense of:
#COUNTRY# #STATE# #CITY# #VERT# #DETAILS# Then, you probably want to put something in the position of the column model, such as:
Country State City Vertical Business Details Applies to whatever you want, of course the CSS styles.
Using the model is simple: If your report, select the model and make sure that your SQL returns values using the column names specified in your model. Otherwise, you will see "#COUNTRY #" literal text in your report.
You can get fancy with these, of course, as the application of different styles for alternating rows, but I'll leave that as pretty good to help you get started (I hope).
-David
-
Query Oracle - to display the line in the Condition column in function.
Hi all
I have data like below.
ID of ranking name Desc
========================
1 ID1 A AA1
2 ID1 A AA2
1 ID1 B BB1
2 ID1 B BB2
1 ID2 C CC1
2 ID2 C CC2
1 ID2 D DD1
2 ID2 D DD2
I need the query to retrieve the data as below.
ID of ranking Name1 Name2
==================================
ID1 1 A - AA1 B - BB1
1 ID2 CC1 - C D - DD1
That is to say) Condition: Grade must be 1.
Thank you and best regards,
Stéphane.
with
DATA_TABLE as
(select 1 Rank, ID 'ID1', 'A' name, Descr "AA1" of union double all the)
Select 2, 'ID1', 'One ', ' AA2' Union double all the
Select 0, 'ID1', 'B', "BB1" dual union all
Select 3, 'ID1', 'B', 'BB2' from dual union all
Select 2, 'ID2', 'C', 'CC1' from dual union all
Select 3, 'ID2', 'C', 'CC2' from dual union all
Select 1, 'ID2', would be ', 'DD1"dual union all
Select 3, 'ID2', would be ', 'DD2' from dual
)
SELECT id, Name1, name2
go (select id,
name_desc_rank,
ROW_NUMBER() over (partition by order of identification by name_desc_rank) rn
go (select grade,
ID,
name | '-' || descr | '-' || TO_CHAR (Rank) name_desc_rank,
ROW_NUMBER() over (partition by order of rank identification) rn
of data_table
)
where rn<=>=>
)
Pivot (Max (name_desc_rank) of rn (1 as name1, name2 2))
ID NAME1 NAME2 ID1 A-1 AA1 B-BB1-0 ID2 C CC1-2 D DD1-1 Concerning
Etbin
Maybe you are looking for
-
Only some of my apps display in 'my applications '.
When I connect to the App Store and click on 'My applications', only few of them fulfill completely in. The rest of the apps total 122 show an overview of the "app" sign, but when I click on this app I get the following message: "the app"(application
-
Kong legacy Wavestation MainStage 3.2.3 recognises not
Hello I have two Korg Legacy Software (Wavestation and Polysix) installed and both are "seen" and playable with Logic Pro 9 and MainStage 2. Now only Polysix is recognized and playable with MainStage 3.2.3. I can't select more Wavestatsion. Any ideas
-
Generators work with Motion 5?
Hello I have a project and my friend works on the editing part. He bought Apple Motion model for his Final Cut Pro X. But he did not have Apple Motion 5 in his system... He says its not working for him. So there need to install Apple Motion 5 in its
-
pls help me to reset the password on the Board in my atom mini hp intel CNU9244BN4
pls help me to reset the password on the Board in my atom mini hp intel CNU9244BN4
-
Original title: out of memory at line 17 Using Vista system op on an old HP Pavilion of 3 year. Recently, an "out of memory at line 17" message keeps popping up and - web pages and files DO NOT OPEN, with browsers scrolling forever. Help, please