SQL report column link

Can get us sql report conditional link column, I want to say that I want the link only for rows with null values. If there are data in the column, I want to show the data but not the link.

Published by: Sivaramaraju on May 31, 2012 04:13

VC says:
Yes, this is how you do it

select case
when column1 is null then 'test link'
else column1
end
from table

Try this, if work mark it as answered

It won't work.

You Please stop being so eager to answer every question and for taking the time to respond to those you'd correctly.

(I see a lot of < a href = "javascript:..." > in your messages.) What is your opinion on the use of code based on the standards and unobtrusive JavaScript?)

Tags: Database

Similar Questions

  • report column link to different pages

    Hi all

    I have a problem now.

    I have a ratio r:

    LEVEL NAME ID

    1 STUDENT

    2B TEACHER

    3 C STUDENT

    4 D ADMIN

    5 E TEACHER

    ...

    I want to 'LEVEL' column link to different pages. Once I click on "STUDENT"-> page 1, "PROFESSOR"-> page 2, "ADMIN"-> page 3.

    For example, when I click on the first line of "STUDENT", then I jump to page 1. And when I click on the second row 'TEACHER', jump to page 2.

    I don't know if I clearly expresses, but I need your help!

    lila820 wrote:

    I don't know if I clearly expresses

    Lol see Re: how to get the answers from the forum for how to do it. In particular, always specify if a 'report' is a standard report, interactive report or a tabular presentation.

    I have a problem now.

    I have a ratio r:

    LEVEL NAME ID

    1 STUDENT

    2B TEACHER

    3 C STUDENT

    4 D ADMIN

    5 E TEACHER

    ...

    I want to 'LEVEL' column link to different pages. Once I click on "STUDENT"--> page1, page2--> 'TEACHER', 'ADMIN'--> page3.

    For example, when I click on the first line of "STUDENT", then I jump to page 1. And when I click on the second row 'TEACHER', jump to page 2.

    A less obvious but simple way to do this is to specify the alias page for pages 1, 2 and 3 as a STUDENT, TEACHER and ADMINISTRATOR respectively. Then set the link Page column property to the #LEVEL # column string substitution to pick up the LEVEL of report column page alias. This approach has a better separation of concerns because it eliminates the generation of HTML code of the application and in this case even does not require the addition of any column in the report. (And I strongly recommend that you do not level use as is an Oracle reserved word as an identifier.)

  • Report Itnteractive: links

    Hi all

    A question about interactive report (using the apex 3.2 version)
    In an interactive report: how we can customize the links to open different pages

    example:
    Link1 - id1 - pid1 - name1
    Link2 - id2 - pid2 - name2
    Link3 - id3 - pid3 - Name3

    When I click link1 or link2 link3 it opens the page 2 for all.

    How can I me link1 to open page2, 2 link to open page 3, link 3 to open page 4+.
    (reception2/3/4 are form pages)

    I wasn't able to find a way to edit each link individually...

    Here are the current settings in the interactive report:
    Attribute of report:
    Column link-
    Column link: link to custom target
    Link attributes:
    Target: Page in this Application Page: 2

    Point 1
    Name: P2_PASSED_ID value: #ID #.

    Thank you for your help
    appreciate it

    Sam

    Hello

    See page 900 of your application.
    In this report line link going to the page what is the value of the order Id column.
    Check the attributes report how it's done.

    Of course your app have no pages 9, 10... What are order of ID values and redirect the error recovery.
    But I hope that you have idea of how you can do what you want.
    Press link column of lines where the command id is 1,2,3 or 4

    BR, Jari

  • Under certain conditions changing IMG link Standard report column

    Apex 4.0.2

    I have an application that includes photos of employees. I want to display a link to the column in a report of the employee who opens a page to manage the photos of a given employee. Worked well when using an image of compatible icon for all employees.

    But I want to do is have two images of icons. If a photo already exists. Another case a photo has not yet been added.

    I have included a select with the following CASE statement in the Source of my region.

    (CASE WHEN p.person_id IS NULLTHENIMG alt = "nophoto" src ="#WORKSPACE_IMAGES #nophoto.png" > "
    ON THE OTHERIMG alt = "photo" src ="#WORKSPACE_IMAGES #photo.png" > "
    END) "PHOTO".

    I believe it works. I ran in SQL Developer, and it produces the following-

    < img alt = "photo" src = "#WORKSPACE_IMAGES #photo.png" >

    < img alt = "nophoto" src = "#WORKSPACE_IMAGES #nophoto.png" >

    I created a link to the column as a COLUMN of REPORT STANDARD. I put the TEXT of the LINK to #PHOTO #. I put the binding TARGET, PAGE and EMPTY the CACHE settings. The column displays as empty. Firebug shows an empty TD.

    I remove the binding TARGET settings, PAGE and CLEAR the cache. The img is displayed correctly. Firebug shows the < img > properly. But of course, it is therefore more a link.

    I'm doing something wrong here. But do not know what it is.

    Walt K wrote:

    Apex 4.0.2

    I have an application that includes photos of employees. I want to display a link to the column in a report of the employee who opens a page to manage the photos of a given employee. Worked well when using an image of compatible icon for all employees.

    But I want to do is have two images of icons. If a photo already exists. Another case a photo has not yet been added.

    I have included a select with the following CASE statement in the Source of my region.

    (CASE WHEN p.person_id IS NULL THEN 'nophoto'
         ON THE OTHER 'photo'
    END) "PHOTO".

    I believe it works. I ran in SQL Developer, and it produces the following-

    photo

    nophoto

    I created a link to the column as a COLUMN of REPORT STANDARD. I put the TEXT of the LINK to #PHOTO #. I put the binding TARGET, PAGE and EMPTY the CACHE settings. The column displays as empty. Firebug shows an empty TD.

    I remove the binding TARGET settings, PAGE and CLEAR the cache. The img is displayed correctly. Firebug shows the correctly. But of course, it is therefore more a link.

    I'm doing something wrong here. But do not know what it is.

    That's because the behavior of standard report is to strip the HTML code of column values used in the expressions of HTML, links in the column and the report when the data is exported as CSV files. This is controlled by the attribute of HTML report of band, which by default is set to Yes. Change this setting to No. , and link images to be displayed.

    A solution with a better separation of concerns that are compatible with the Strip HTML and display text default settings is:

    1. Select only the image name in the query [ nvl2(p.person_id, 'photo', 'nophoto') photo is simpler than the previous CASE expression] and make this hidden column
    2. Add a link in the column to the State ('add column link' in the bar of tasks )
    3. Set the property of the new column binding Expression in HTML to#PHOTO#
    4. Specify the column link attributes as required

    Last suggestion would be to display thumbnails of the photos used here where they exist rather than an arbitrary generic image...

  • PL/SQL Query return function, adding the column links

    Hi all

    I'm working on a SQL report with the area type = function from PL/SQL Query to return
    All columns are generated dynamically based on my mapping table and a column of ID.
    So whenever the page is loaded, according to the ID mapping table returns a set of columns in a particular order.
    So not only the columns are dynamic, but the order of the columns varies also.
    But the first 1 column is standard (it doesn't come from the mapping table) and is coded in my pl/sql block hard.

    I'm fighting with the addition of a link to this column. The link must be a Javascript function which takes the parameters in the form of 2 columns in the mapping table.
    My pl/sql block is something like that...
    v_select := 'SELECT <g href=javascript:f_report1(#map_id#,#comments#)><img src=""></a> as report1, ';  // g=a
    v_cols := 'contains all columns from the mapping table based on a ID(hidden item)';
    v_from := 'FROM table';
    v_where := 'where condition is put in here';
    v_query := v_select||v_from||v_where;
    return v_query;
    Now, I'm not able to transmit the values of this #map_id # and #comments # correctly. I tried so many different combinations of channels, but could not make it work.

    I'm not sure that the order of this map_id and commentscolumn and therefore cannot connect through the report attributes.
    How can I go to a column value to the function?



    Thank you
    Dippy

    This should work if all goes well:

    v_select := q'[ SELECT '' as chart, ]';
    

    Published by: Dimitri Gielis on May 20, 2010 20:10

  • How to remove the link to the interactive report columns!

    Hi all

    I'm building an interactive report based on pl/sql block.

    In the report, I get the columnnames with link (underlined). I'm confuse when I have the chance to see the names of columns like AGE_SEX, AGE_SEX_

    When I see these columns of interactive report, it seems to be as same as the underline covers underscore.

    Is their anyway I can remove the link to the interactive report columns.


    I selected the link column exclude from the column heading in the report but still attack link gets the link in the column.

    Appreciate your help.

    Thank you/kumar

    Published by: kumar73 on May 5, 2010 14:32

    Hello

    Try the place for HTML page header

    
    

    Hope that I did not understand what you are trying

    BR, Jari

  • Problems with embedding an HTML link in a report column

    Hi gurus,

    I'm trying to incorporate an HTML link in a report column now.

    What I did is entered this HTML "Edit form" column: "< a > target ="_blank"href =" http://www.google.cn/search?hl=en & btnG = Google + Search "< /a > '"

    I also put "process the text under" to "HTML" for the properties of the columns.

    I have a question at this point: when you run this report, I couldn't see text displayed in this column instead of a LINK I can click. Quesiton: What was missing?

    Then I continue this test by changing the HTML code like ' < a > target = "_blank" href = "http://www.google.cn/search?hl=en & q =' |" Products.Prod%20Category | btnG = Google + Search "" < /a > ' in order to do a search using the combination products Table.Column. ' " Prod of category", I get the following error:

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 27002] About <>%: Syntax error [nQSError: 26012]. (HY000)
    Publ. SQL: {call NQSGetQueryColumnInfo ("SELECT"< a > target = "_blank" href ="http://www.google.cn/search?hl=en & q =" |)} Products.Prod%20Category | & btnG = Google + Search "< /a >", products. " Prod category "(DE SH')}"

    Publ. SQL: SELECT ' < a > target = "_blank" href = "http://www.google.cn/search?hl=en & q =' |" Products.Prod%20Category | btnG = Google + Search "" < /a > ', products. "" Prod category"OF HS

    What was wrong with the syntax of my HTML code?

    Thank you
    Jeffrey

    Hi Jeffrey,.

    (1) use Category of Products.Prod instead of Products.Prod%20Category

    (2) use ' href =... target = "_blank" "instead of" target = "_blank" href =... "

    (3) use * "Treat as Hyper Text Link" * instead of "HTML Code" in the replacement data format

    It should work.

    It can be useful :)

    Kind regards
    Rambeau

  • passage of report parameter interactive column link to new page

    I'm just trying pass the value of the link column in the where clause on the next page.

    Interactive report on P2 has DIF link column alias in the sql query.

    I read somewhere to denote the prefix of the interactive report with IR column?

    So I have the name of the element P2_FID, value #FID #. Anyway, I tried a kazillion of things.
    Creates an element hidden with the same value of source... sigh.

    Y at - it a syntax to do refers to a column of the report binding, and not an item_id in a region where clause?

    Is there a simple and direct way to do this?

    Thank you

    Pamela

    pls/apex/f? p = 163:1:2746459963336955:NO:P2_FID:119

    HI -.

    Do not know if I understood you, but if you try to pass the value of a column in a selected recording of an international registration to another page:

    (1) on the landing page create item hidden name whatsoever, perhaps 'P2_FID' as you say.

    (2) on the report of the IR, go to the report attributes > link column

    (3) on this page.

    Target = this Application Page (maybe his page 2 of your example)...
    Page = 2

    Name of category 1 = P2_FID
    Point value 1 = #LINK_COL #.

    Good luck.

  • How to adjust column widths individual classic SQL report

    Hello

    I use Oracle APEX v4.2 with IE8 browser and basically tries to adjust widths of individual columns in my classic SQL report. Basically, I have three columns I want to spacing, so that the width of the entire region for the report is used, but am not sure how to proceed.

    I drilled in individual columns and specified the column widths as the element, but in vain.

    Would appreciate help on how to do this for each column and hope that I do not need to change the model of report (if possible).

    Thank you.

    Tony.

    Tony F. says:

    I use Oracle APEX v4.2 with IE8 browser and basically tries to adjust widths of individual columns in my classic SQL report. Basically, I have three columns I want to spacing, so that the width of the entire region for the report is used, but am not sure how to proceed.

    There is an element of uncertainty in what we suggest as well, because you have not specified the theme and the report of model that is used. This information is required for any question of formatting or the visual layout.

    I drilled in individual columns and specified the column widths as the element, but in vain.

    Report in some themes templates may be missing in the #COLUMN_WIDTH substitution string # required for use of the declarative column widths, as shown here: Re: width of column in reports

    I don't know why it would be missing from a theme of so-called "modern" (perhaps the lack of documentation affects even the Oracle theme designers), but you can add it to the models listed in this thread.

    Width of the element applies only to controls on a form in a table.

    Would appreciate help on how to do this for each column and hope that I do not need to change the model of report (if possible).

    This can be done using selectors CSS attribute (for the themes of quirks mode non-traditional, because you are using a legacy version of IE). Add a style sheet in CSS Inline property page:

    #ALIAS,
    td[headers="ALIAS"] {
    width: 40%;
    }
    

    where the ALIAS value in the attribute selector matches the required column alias, and the width property specifies the column dimension required and the units.

    Note that the percentage widths will be compared to the width of the report table. Therefore, it may be necessary to also specify widths (100%) for the table of report and its components. Exactly how is based on the report, the region and the page templates and theme used, information that was not provided.

  • Link in the report column

    Hello

    How can I create a column of link area of report (not an area of interactive report).

    Link column configuration section is not available for a report from the region.

    APEX version: 4.0.1.00.03

    Thank you.

    Dave,

    Do you not see a section labeled

    "Link in the column".

    When you drill down on a particular report column? I see this section of the Interactive reports and classic.

    -Joe

  • Columns SQL Report Formatting

    Hello world

    I have a basic report with a column that is one concatenation of other columns (used for the formatting break), and I want to give the effect that it has always separated "columns" in the concatenation. I tried to use CHR (9) and RPAD in the SQL query to add the 'spaces', but as soon as Apex gets hold of it, the extra spaces are deleted and I find myself with only a single space.

    It does the same thing when the value "view as" is replaced by "standard report column" or any "display as text".

    Any ideas? This is apex 4.0.0
    Thank you!

    I have a basic report with a column that is one concatenation of other columns (used for the formatting break), and I want to give the effect that it has always separated "columns" in the concatenation. I tried to use CHR (9) and RPAD in the SQL query to add "spaces", but as soon as Apex gets hold of it, when the browser displays the output according to the HTML specification additional spaces are removed, and I find myself with only a single space.

    The specification HTML user agents support if collapse the white space characters, so the spaces and ASCII tabs in options will be treated as a single space.

    Use of standard report

  • white-space: pre in Style CSS property to a CSS approach

    or

  • The property Expression of HTML for a < pre > HTML wrapper (ensuring that the text to display as attribute column is the column Standard report rather than default display text (characters of exhaust) ):

    #COLUMN_NAME#

    Better yet, create a custom report model using appropriate markup so that there are "separate columns" in the report.

  • 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 help

    I'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:

    CountryStateCityVertical 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

  • Column headings missing when the SQL report runs Oracle Conc ask

    Why the column headers for a sql report do not disappear when I try to run Oracle Manager of competing application work? If I copy and paste work in SQL * more and run it, the topics show on the report. Is there a setting I can update to allow these column headers to display?
    Example of what I get (No Headings)
    
    TOM SMITH          12345
    JANE DOE           34355
    
    Example of what I expect (with Headings)
    
    EMPLOYEE           EMPLOYEE NO
    TOM SMITH          12345
    JANE DOE           34355
    Thank you

    More likely:

    SET THE POSITION

    into force or / and

    SET PAGESIZE 0

    is in effect.

    SY.

  • What region in the report column HTML link?

    Dear gurus of the Apex,
    OK, I'll go straight to my question. I have a page to download file with region (conditional) report that comes after the file download process. According to the report that I have a column to remove the file downloaded (column has an image link, the target application, the name of the option: P2_DELETE_ID value: #DOC_ID #). Basically the report picks up just downloaded file ID and allows me to delete the file by having Hiden point Page (P2_DELETE_ID) and before the process of header:
    BEGIN
    REMOVE FROM EBA_ASSET_ORDER_TEMP_DOCS
    WHERE annual =: P2_DELETE_ID;
    END;
    condition: Expression 1 value is not Null, and the value of the Expression 1:
    P2_DELETE_ID
    I and another conditional region (which is HTML) he comes after the file download process as well. The Source region is:
    & lt; div id = "FinalMessage" > & lt; / div >
    & lt; br / >
    & lt; div > & lt; a href = "javascript:confirmFileDelete(htmldb_delete_message,'f?p=&APP_ID.:2:&SESSION.:REMOVE_ID:::P2_DELETE_ID:#DOC_ID#')"; > & lt; "img > src="/i/delete.gif "style =" position: relative; " Top: 1px; ' / > delete the downloaded file & lt; /a >
    & lt; / div >
    where id = "FinalMessage" - is the JS success/error message
    and... href = "javascript:confirmFileDelete--is my real question. So I try to hide my region to report and show only my region HTML where I will be able to this (... href...) link delete file from my table. I am able to dele file using report link colum but my... href... link dosnt want to delete my file, doen't even want to pick up the ID of file. Is there a way where I can link my... href... link to pull the report column?

    Thank you

    NP - now access, so I will have a look

    Andy

  • How we get enough space for a column in the SQL report?

    How did one reserves enough spaces for a column in the SQL report?

    Ex: 2 columns defined as follows

    projectNo varchar2 (10)
    ProjectName varchar2 (50)

    When creating a sql, the report header report will show below. If my project name is 'Tire force Test site R987654'. I need to show in a single line, since it has been defined as varchar2 (50)
    projectNo     ProjectName
    A0001         Tire Strength
                  Test At Site
                  R987654 
    It have a way to get around here. Thanks in advance.

    Tai

    You can enter "space: nowrap;" in the CSS Style of the column, or, better yet, to set a CSS class to it.

    HTH,
    Chris

Maybe you are looking for