Value of the link column remove null values

Hello

I use 4.1.1 and I have a column in a classic report that I have configured to post a link to another page in the application. I use one of the IMGS 'edit' and I put the report to show significant like but when I run my page and the value is null, I get always a hyphen and a link (for example. ("' - that is a link) which redirects me to another page. I know a fast method of sale would be to hardcode the html code in the sql code and I know that you should really put an html tag that is similar between your sql. With this in mind are other suggestions of display and img/a for null values.


Thank you very much

Alistair

You can try css:
#r_contacts_rowview td [headers = "OFFICE_EMAIL"] a [href = "mailto:-"] {}
display: none;
}

He finds the elements of anchoring with mailto value '-' (my null values) in my office_email column. r_contacts_rowview is a static id for a region.
Display: none to hide items. This works rather graceful.
Note that this works in IE7/8 your page should be a doctype ( )

If you don't want a doctype or whatever it is, you can also try jquery of course
function remove_hyphen_links() {}
$("td_[en-tetes_=_'office_email']_{a").each (function ()})
{if ($(this).)} (Text()=='-')}
$(this) .remove ();
};
});
};

If I run this onload of my page, I can see hyphens, shortly before they disappear, I don't like too much. Of course, you must bind it to the "apexafterrefresh" - event in your area, as well as the links are also deleted after a partial page refresh (paging).

Tags: Database

Similar Questions

  • How to create dynamic action of the link column in the classic report

    I have an apex page to display a modal window using jquery. In the modal window, I have a classic report with a column of link I want to capture its click event.
    I thought I could create a dynamic action with selection of type = jquery selector. Not sure if I need to do anything on the link column and do not know the syntax
    jquery selector. Would appreciate help or direction?

    Always zip code using .

    ...\
    

    tags as described in the FAQ.

    I created a region of report with the following query:

    Select empno, ename, 'SELECT' from emp
    where (ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
    or :P2_SEARCHPU is null)
    

    There is no alias specified for the "SELECT" column, Oracle uses so the content of the column as a default alias. It comes

    'SELECT'
    

    Instead of

    SELECT
    

    The necessary jQuery selector would be:

    td[headers="\'SELECT\'"] a
    

    However the need to release the single quote everywhere is a ticking time bug. SELECT an Oracle reserved word means use it as any type of identifier is either too smart.

    You should always use a valid Oracle identifier as an alias explicit when a column contains a literal value or a complex expression:

    select
        empno
      , ename
      , 'SELECT' link_text
    from
        emp
    where
        (  ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
         or :P2_SEARCHPU is null)
    

    APEX will use the column alias LINK_TEXT as the ID attribute of the column header and the cells in the column will reference it in their headersattributes. The jQuery selector is:

    td[headers="LINK_TEXT"] a
    
  • using outer joins if the two column is null? Use only (+)

    Hi all

    create the table xxc_tr_num (tl_number number, tr_no number tl_no_id);

    insert into xxc_tr_num values (123,100,222);

    insert into xxc_tr_num values (124,100,333);

    create the table xxc_od_tab (tl_number number, tl_id number);

    insert into xxc_od_tab values (123,001);

    insert into xxc_od_tab values (null, null);

    create table xxc_oth_tab (name varchar2 (10), number of tl_id);

    insert into xxc_oth_tab values('abc',,001);

    insert into xxc_oth_tab values (null, null);

    Wait it out put

    tr_no tl_no_id name

    100 222 abc

    100 333

    using outer joins if the two column is null? use only please of outer joins

    And I tried to use outer joins on both tl_id column but not get values and I use have County (tr_no ) > 1

    Rajesh123 wrote:

    Thank you Kiss it is not possible to use having clause?

    You need to understand the functioning of the group. If you will not be asked this question.

    Check this box

    SQL> select tr_no,
      2         tl_no_id,
      3         count(*)
      4    from xxc_tr_num a,
      5         xxc_od_tab b,
      6         xxc_oth_tab c
      7   where a.tl_number = b.tl_number(+)
      8     and b.tl_id = c.tl_id(+)
      9   group
     10      by tr_no
     11       , tl_no_id;
    
         TR_NO   TL_NO_ID   COUNT(*)
    ---------- ---------- ----------
           100        333          1
           100        222          1
    

    See what returns the count? You have grouped according to TR_NO and TL_NO_ID. You must take into consideration the TL_NO_ID just put COUNT (TR_NO) does not increase the NUMBER of the whole group. To get the NUMBER on the whole group, I used the analytical function and did. Like this, see the number of the analytical function here

    SQL> select tr_no,
      2         tl_no_id,
      3         count(*),
      4         count(*) over(partition by tr_no)
      5    from xxc_tr_num a,
      6         xxc_od_tab b,
      7         xxc_oth_tab c
      8   where a.tl_number = b.tl_number(+)
      9     and b.tl_id = c.tl_id(+)
     10   group
     11      by tr_no
     12       , tl_no_id;
    
         TR_NO   TL_NO_ID   COUNT(*) COUNT(*)OVER(PARTITIONBYTR_NO)
    ---------- ---------- ---------- ------------------------------
           100        222          1                              2
           100        333          1                              2
    

    So to answer your question, yes you can't do in the HAVING clause...

  • How to avoid the link of a null value in a column of link

    Hello

    How to avoid the link of a column with the value zero. Is that the link should be disabled for the column with the value null, and it must be enabled for all that have a value.

    Ex

    DEPTNO NAME (link column)

    10 SCOTT
    20 MAC
    30 SMITH
    40         -
    50 SAM

    I don't want to link to the value null in the name column, but the name remaining should have link. Please help me.


    Kind regards
    Barro

    Hello

    One way is like this:
    1. create a column not displayed, called link_display in your report to return N or Y depending on whether you want the link by adding the SQL report:

        NVL2(name, 'Y', 'N') link_display 
    

    2. in the header of the region, define a class for the column name using:

    
    

    3. for the name column containing the link add link attributes: class = "" display_link_ #LINK_DISPLAY # ""

    Rod West

  • Foramt shifts positions when the previous column is null

    This piece of code is producting of erroneous results
    column    RZFIDOC_STATE_CODE      format a2 justify right;
    column    RZFIDOC_ZIP                    format a9  justify right;
    column    SPACE                            format a10;
    column    RZFIDOC_BIRTH_DATE      format a8 justify right;
     
     rpad(nvl(RZFIDOC_ZIP,'           '),9)||
     rpad('           ',10)||
    rpad(to_char(RZFIDOC_BIRTH_DATE,'MMDDYYYY'),8)||                                      
    results when the postal code is null
     
    Chagrin Falls               OH44023              031719872828675182  223526
    Singapore 400832                               092819850089012602  223526   
    results when the postal code is not null (perfect)
    CT06517              072019872948824782  
    CT06519              072019872948824782    
    When the zip code is null it moves of the RZFIDOC_BIRTH_DATE to the left, where the postcode is not null, it charted in the right column...
    I need to have 10 (fill) between RZFIDOC_ZIP and RZFIDOC_BIRTH_DATE
    Any help will be very grateful!

    Published by: user648177 on April 17, 2009 05:05

    Hello

    VG2 suggested using NVL (col, ' '), so that you would never of NULL values. It is essential that the second argument of NVL not be NULL.
    The string literal "(with nothing between the single quotes) is null.
    Then change

    rpad(nvl(RZFIDOC_STATE_CODE,''),2,' ')
    

    TO

    rpad(nvl(RZFIDOC_STATE_CODE,' '),2,' ')
    
  • Apex 5 - where can I configure the link column for interactive report?

    Using APEX 5 on apexea.oracle.com

    I can't work where the attributes of column layout link for an interactive report using the interface of the designer of the Page?

    Thanks in advance

    PaulP

    Paul,

    the customer_id column is defined as a hidden at the Start column, and then there is no attribute of link for this column type. You must define the type 'Link' to get the attributes. There is no attribute of link on "Plain text" either.

  • URL OF THE LINK COLUMN IN THE FORM OF MANUAL

    Hi all

    I have a problem with my APEX Solution. I created a manual tabular presentation, that works perfectly. But the problem is I want a convert (Projectname) - SQL query to a URL link. The link goes to the same application, but another page with parameters. I want to send the project ID to this other page, where I can EDIT my project. The problem here is that it does not work.

    Here's my Soluition.

    FOR A IN

    (

    SELECT PR_ID,

    APEX_ITEM. Hidden (1, PR_ID) ID,.

    -Die Akbulak Werteliste festlegen der.

    APEX_ITEM. DISPLAY_AND_SAVE (2, PR_NAME, "readonly ="readonly"style =" width: 565px;)  font-size: 13px; "", « f02 » || " ROWNUM') PROJEKTNAME,.

    APEX_ITEM. DISPLAY_AND_SAVE (3, PR_C_DATE, "readonly ="readonly"style =" width: 565px;)  font-size: 13px; » ', « f03 » ||' ROWNUM') C_DATE,.

    APEX_ITEM. DISPLAY_AND_SAVE (4, PR_U_DATE, "readonly ="readonly"style =" width: 565px;)  font-size: 13px; » ', « f04 » ||' ROWNUM') U_DATE

    OF TM_PROJEKTE

    )

    LOOP

    X: = X + 1;

    HTP. P (')

    < table width = "100%" id = "td2" align = "center" cellpadding = "1" cellspacing = "1" >

    < b >

    < scope = "col" id = 'td2' th > < table width = "100%" id = "td2" cellspacing = "0" >

    < b >

    < td width = "40px" height = "35" align = "center" valign = "middle" margin left = "3px" > ' | X ||' '|| a.ID |' < table >

    < id td = "td3" height = "35" align = "left" valign = "middle" margin left = "3px" > < a href = "f? p = & APP_ID.:999: & SESSION. : NO::P999_PROJEKT_ID :'|| a.ID | » « > ' || a.PROJEKTNAME | "< /a > < table >

    < td width = "120px" height = "35" align = "center" valign = "middle" > ' | a.C_DATE | "< table >

    < td width = "120px" height = "35" align = "center" padding: 1px valign = "middle" margin left = "3px" > ' | a.U_DATE | "< table >

    < /tr >

    < /table >

    < /table >

    ');

    END LOOP;

    But when I click projectname, then the P999 item does not show the ID - Nr but "< input type =".

    Can you please help me.

    Hello

    have you tried to change

    href = "f? p = & APP_ID.: 999: & SESSION. : NO::P999_PROJEKT_ID :'|| a.ID | »

    TO

    href = "f? p = & APP_ID.: 999: & SESSION. : NO::P999_PROJEKT_ID :'|| a.PR_ID |'?

    Concerning

  • How to reference the link column in the detail view

    I have a pretty simple question that turns everyone strain. I created a simple report and defined a column of link to point to a page of edition to the line items. So far, everything is great and works as expected.

    Now I use the detail view to replace the standard HTML code for each LINE of my report. I can access all the #COLUMN_NAME #s to fill my own HTML for each ROW with the values of the report.

    How can I reference the column link in my view detail? What is the # to #SUBSTITUTION_STRING it? How can I find out about all available alternative channels?

    Thank you

    Jan

    That's the problem with the detail view, it is difficult to add conditional fields without the ugly SQL.

    Another alternative is the named report model, but it shares the same problem

    APEX reports: layout custom with a column named (model line)

  • Add a column header to the link column in IR

    I want to add "Select" as the heading of column to column link in my IR (pencil).
    Please suggest.

    Thank you.

    Machan wrote:
    I want to add "Select" as the heading of column to column link in my IR (pencil).
    Please suggest.

    Create a dynamic Action:
    H4. When

    Event: After refresh
    Selection type: region
    Region: < your IR region >

    H4. Real Action

    Action: Set
    Fire on loading the Page: Yes

    Set type: static assignment
    Value: select

    Selection type: jQuery Selector
    jQuery Selector:

    .apexir_WORKSHEET_DATA th:first-child:not(.apexir_REPEAT_HEADING)
    

    Published by: fac586 on 19-Sep-2012 20:38

    Scope of jQuery selector to manage relationships with breaking control headers.

  • Do not update the column if the source column is null

    Hi all
    I'm trying to update some columns on the target, I won't update the column if the source is NULL for the column (do not replace the old value if the new value is zero). How can I do this using OWB. I use 11,1 g.

    Any help will be greatly appreciated.

    Thank you
    Ravi

    There are a few ways to do this:

    First of all, you can add your target to the canvas a second time as a source, an outer join to the source of queries on the same fields that you use in your target match constraint, and then run the new value and the existing value in an expression to generate the control you need and send the existing value if the new value is null.

    Alternatively, you can use a splitter on the lines with a single stream going where your field is null in this case update you the target without updating this field and the other the field update stream. This means that the generated code will now be an update of re-encoding re - query the same sources for the second pass, and that any recovery strategy you are not dependent on each mapping succeeding or failing as a total unit will have to be reconsidered.

    Or, of course, you can just put a trigger on the table to check the: new.value and overwrite it with the: if old.value: new.value is null.

    Mike

  • permitted connection is true when the linked object is null

    For some reason any that always has the value true if duplicateUserObjectBoundToComponentsInThisView is null

    Enabled = "{duplicateUserObjectBoundToComponentsInThisView.UserManagementView}" "

    what Miss me?

    Hi Nikos,

    You can try this instead...

    enabled = "{(duplicateUserObjectBoundToComponentsInThisView == null)? false: duplicateUserObjectBoundToComponentsInThisView.UserManagementView}" "

    Thank you

    Jean Claude

  • update of NULL in the column with the values of the adjacent column

    Examples of data

    with test_data as
    (select 1 as one, null as two, 2 as three,5 as four, 6 as five, null as six from dual
    union all
    select 1 as one, null as two, 2 as three,5 as four, 6 as five, null as six from dual)
    select * from test_data;
    

    This is one of those cases, the case may be where any value of a column can be null

    or two similar columns can be null. If the column is null then I want to update the adjacent column

    average value of the column, if the first column is null so I want to take the next non-null column and update, if the last column is null

    so I want to take prev not zero column and to update.

    In this case would be my expected output

    Un Two Three Four Five Six
    11.52566
    123566

    Prospects for the future the suggesion or advice.

    Or, using Analytics:

    SQL> with test_data (id, one, two, three, four, five, six) as (
      2    select 1, 1   , null, 2   , 5, 6, null  from dual union all
      3    select 2, 1   , null, 3   , 5, 6, null  from dual union all
      4    select 3, 1   , null, null, 5, 6, null  from dual union all
      5    select 4, null, null, null, 5, 6, null  from dual
      6  )
      7  select *
      8  from (
      9    select id
     10         , cell
     11         , case when next_nn is not null and prev_nn is not null
     12             then (next_nn + prev_nn)/2
     13             else nvl(next_nn, prev_nn)
     14           end val
     15    from (
     16      select id
     17           , cell
     18           , val
     19           , last_value(val) ignore nulls over(partition by id order by cell) as prev_nn
     20           , first_value(val) ignore nulls over(partition by id order by cell range between current row and unbounded following) as next_nn
     21      from test_data
     22      unpivot include nulls (val for cell in (one as 1, two as 2, three as 3, four as 4, five as 5, six as 6) )
     23    )
     24  )
     25  pivot ( min(val) for cell in (1 as "ONE", 2 as "TWO", 3 as "THREE", 4 as "FOUR", 5 as "FIVE", 6 as "SIX") )
     26  ;
    
            ID        ONE        TWO      THREE       FOUR       FIVE        SIX
    ---------- ---------- ---------- ---------- ---------- ---------- ----------
             1          1        1,5          2          5          6          6
             2          1          2          3          5          6          6
             3          1          3          3          5          6          6
             4          5          5          5          5          6          6
    
  • 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

  • How to point a popup from a url of another page link column values.

    I have URL in the link column # javascript:myFunc(#MACHINE_NAME#);
    In Java Script, I have:

    function myFunc (Pmachinename) {}
    var MachineName = Pmachinename;
    Window.Open ("f? p = & APP_ID.:53: & SESSION. : & DEBUG. (": 53:P53_MACHINE_NAME:" + machinename + ":","LoanMachine","State = 1, scrollbars = 1, resizable = yes, width = 550, height = 450");
    }


    I don't get a popup, is there any problem with my code?

    Thanks in advance

    function myFunc (Pmachinename) {}
    var MachineName = Pmachinename;
    Window.Open("f?p=&APP_ID.:53:&session.::&Debug.:53:P53_MACHINE_NAME:"+MachineName+":","LoanMachine","status=1,ScrollBars=1,Resizable=Yes,Width=550,Height=450");
    }

    Provide a single quote around the column name as javascript:myFunc('#MACHINE_NAME#');
    If #MACHINE_NAME # is not a number

    Published by: manon on May 31, 2012 12:30

  • concatenate the 4 columns - but if null?

    im making a concatenation like that on 4 columns

    Column1 | ',' || Column2 | ',' || Column3 | ',' || Column4 as mycategories


    But if 3 of the 4 columns are null I get

    test4

    is there a way to display only the commas if the field is a value?

    Maybe

    ltrim(column1 || nvl2(column2,',','') || column2 || nvl2(column3,',','') || column3 || nvl2(column4,',','') || column4,',')
    

    Concerning

    Etbin

    Edited by: Etbin on 30.4.2012 17:47
    LTRIM added

Maybe you are looking for

  • Resize the Partition Mac running two OSX

    I have two partitions on my mac, a race of El Capitan and the other Mountain Lion. The primary partition is El Capitan, which I can increase or decrease the size, but the secondary partition running Mountain Lion will not let me increase the size. Is

  • I can restore time capsule backup to another computer that already has a user

    Looking for help, my laptop was stolen, thankfully I have a time capsule backup. I could buy a new laptop, but I was wondering if there is anyway I can just restore my backup on the laptop of my wife, or if that's too difficult/impossible.  Currently

  • the print spooler service may not be running

    Hello I have 4 computers around here, and I'm trying to get a printserver running on one of them, so we have installed windows 2008, set up as a server to printing etc..Now when I try to add the printer to my computer laptop windows 7, it works perfe

  • Laptop screen turns off during an update of the windows system

    Hello world I got a new acer laptop with windows 8 last week. Today, there was a small system update that requires a restart of the system to apply the updates. So I restarted my laptop, but I have not seen any sign of update 5 minutes (maybe my inte

  • Error in post OWB deployment

    Hi allI get the following message during post OWB deployment, but the pl/sql package is defined in the database with the status "VALID".PRE-01008: this demand recovery is underway.Because of this status message work does not change the status of depl