Conditionally display link icon

Is there any way I could display an icon in the report based on the record value.
Each user when they login, they will have location signed to them.
I would like to allow users to edit record (show edit icon) based on the default location.
so if record location_id is = :F130_location_id I would like to show the link icon and if location is different hide it.
Thanks in advance.

robik wrote:
Is there any way I could display an icon in the report based on the record value.
Each user when they login, they will have location signed to them.
I would like to allow users to edit record (show edit icon) based on the default location.
so if record location_id is = :F130_location_id I would like to show the link icon and if location is different hide it.Unfortunately APEX provides no declarative way to do this at the column/report level. The easy way (and the only way in interactive reports) to do this is to violate the separation of concerns and generate the link conditionally in the query:

case record location_id
  when :F130_location_id
  then
    '<a href="/* generated URL */">Foobar</a>'
  else
    null
end link_col
⋮with the Display As column attribute for <tt>link_col</tt> set to Standard Report Column.
The better (but more involved) way in standard reports that maintains the separation of concerns and keeps the HTML link structure out of the query is by implementing the logic via conditional column templates in a custom report template. In this situation the "other column" approach can be used to encapsulate any complex logic to avoid repetition in column condition PL/SQL expressions.

Similar Messages

  • Conditionally display an icon for each record in a multi record block

    Hi,
    I am using Forms 6i. Is there any way to conditionally display an icon for each record in a multi record block. The SET_ITEM_INSTANCE_PROPERTY builtin does not have many choices. Thanks for your help.

    Henry,
    I doubt that. You would have to replace the text item with an image item. This however can't be done for individual cells in a table but only for the whole column.
    On the web chances are that these could be handled with a custom PJC, but this solution doesn't work in client/server
    Frank

  • Importing movies: when dragging displays link icon

    I am unable to import a few movies into itunes. When I attempt to drap them a link icon appears.

    http://www.versiontracker.com/dyn/moreinfo/macosx/22715
    Free software that can "rip" your home made DVD's. Save these folders on your external drive and view them using the DVD Player application.
    You can also use the Disk Utility app to make a "New Disk Image from Folder". At creation you can also select "DVD/CD master" under the Image Format option. This will allow you to duplicate the files onto a new DVD.
    To play these .dmg files you first "mount" the DVD (double click) and then use the DVD Player (Open File) to view them.
    These MPEG-2 file formats will not open in iMovie or iDVD without first converting them using third party software. I use:
    http://www.squared5.com/svideo/mpeg-streamclip-mac.html
    Read carefully. Don't "pirate".

  • How do you conditionly display links using images?

    I created a classic report with the following SQL.
    select rownum,
    case
    when mod (rownum, 2) = 0 then link
    else null
    end "Link Works",
    case
    when mod (rownum, 2) = 0 then link
    else null
    end "Link fails"
    from All_Tables
    where rownum < 10;
    Then for colum two (Link Works) I went to the "Column Link" tab and set the link to #Link Works#. This correctly displays a clickable link (link) on rows where the column is not null and an empty space on rows where the column is null.
    For column three (Link Fails) on the "Column Link" tab, I set the link to an icon (image). This displays a clickable icon on every row no matter if the value in the column is null or not.
    Is there any way to only have the clickable image display on rows where the column is not null?
    thanks,
    William

    Hi,
    You can do this by adding a style class to the region header:
    <STYLE>
    .display_link_Y{}
    .display_link_N{display:none;}
    </STYLE>Then add a LINK_FLAG column to your report using for example:
    case when link is null then 'N' else 'Y' end link_flagHide the LINK_FLAG column and on the LINK column add the class into the column link attributes:
    class="display_link_#LINK_FLAG#"Rod West

  • Master-Detail Form, Conditional Display of a Column Link

    Hey Guys,
    I've got a little question for you:
    I use a Master Report with a Column Link that i would like to hide when my Column in the Report named "NUMBER" is 0.
    I can't get it to work though. Using the "Conditional Display" stuff doesn't seem to work.
    I have looked at some CASE statements but i cant seem to make them fit!
    Any suggestions?
    Thanks alot,
    max

    sorry for the trouble, i am quite new to this.
    Yes, i took my Master Report and added a [column link]. I understand now how the sql has to look like but where do i put this?
    I cant find any space for a sql code, or does it belong in the conditional display section?
    I changed the Column Attributes to standard column, however, this seemed to have no effect.
    Do i have to chance my sql select query for the Report?
    It looks like this at the moment...
    SELECT
    "CONTENT_LOCALES"."CONTENT_LOCALE_ID" "CONTENT_LOCALE_ID",
    "CONTENT_LOCALES"."CONTENT_ID" "CONTENT_ID",
    "CONTENT_LOCALES"."LOCALE_ID" "LOCALE_ID",
    "CONTENT_LOCALES"."NAME" "NAME",
    "ORIGIN_TEXTS"."ORIGIN_NAME" "ORIGIN_NAME",
    "DESIGNS"."DESIGN_ID" "DESIGN_ID",
    "DESIGNS"."DESIGN_NAME" "DESIGN_NAME",
    "CONTENT_LOCALES"."SEQUENCE" "SEQUENCE"
    FROM
    "CONTENT",
    "DESIGNS",
    "CONTENT_LOCALES",
    "ORIGIN_TEXTS"
    WHERE (("ORIGIN_TEXTS"."GID" =:GID and "CONTENT"."CONTENT_ID" =CONTENT_LOCALES.CONTENT_ID and "CONTENT"."DESIGN_ID" =DESIGNS.DESIGN_ID and >"CONTENT_LOCALES"."CONTENT_LOCALE_ID" =ORIGIN_TEXTS.CONTENT_LOCALE_ID))

  • Conditional display of a column link in sql updateable report

    Hi There,
    I've attempted to look thru the Apex forum about using an Authorization Scheme in an SQL Query (Updateble Report) where I can conditionaly enable (display) a column link based upon a value in the report but alas I cannot find a solution.
    What I have is a SQL Query (updateable report). What I want to achieve is dependant on the value of one of the columns in the report query conditionaly display a column link for the row being displayed. For example if the report dispayed the data from emp, dept only display a column link for rows where the deptno = 100 otherwise don't display the column link. Is this possible to achieve?
    I've tried to define in the authorizatuon scheme in the where clause of an SQL Statement to reference the report column as #deptno# but this doesn't work.
    TIA

    Boketi,
    I was unsuccessful yesterday in demoing what I believe you want to achieve. It appears that an authorization scheme will not process row by row within a standard report so as to allow a conditional display of a link or any other column attribute. You can conditionally display a column by the use of a page item but this method appears to be all or nothing.
    I was successful when I coded the return of the empno via a Case statement but the Link still appeared even though there was no value (empno) to link with. So essence the link to you to a blank for with no PK to read the database by.
    SELECT CASE WHEN deptno = 10 THEN empno ELSE NULL END empno,
           ename,
           job,
           hiredate,
           sal,
           comm,
           deptno,
           phone_nbr
    FROM   empJeff

  • Hide / display conditionally export links and export options

    Hi all,
    Is there a way to hide / display conditionally export links in a dashboard. Also, is there a way to limit the export options to display only Export to Excel, and not all the other options such as pdf, etc.
    Thank you
    Regards,
    Laurent

    Hi Laurent,
    Regarding limiting the choices of export, you can refer to below post:
    Re: Export to only PDF,Excel, PPT
    Thanks
    Hyder

  • Background graphics and link icons do not display even after downgrading flash, emptying cache, reinstalling recent and older versions of firefox

    sometime today, firefox 14 began not displaying the background graphics and link icons on every site I went on from my laptop. It would display this information when I changed the rendering engine to the explorer platform. I have removed the flash player 11.3 from the computer; re-installed flash 10.3 recommended from the troubleshooting page; restarted the computer; same problem. Did the same with the Java plug-in with the same result. Disabled all extensions and restarted Firefox with no change. Examined the sites on a different laptop using version 10 of Firefox and everything worked fine! Reloaded older version of Firefox on original laptop, restarted computer, same problem on older version. Updated to latest revision, listed below, and same problem. Went to desktop computer using version 14, and same thing is happening there also. (I have not done anything to this system yet.)

    All of the items contained in both of the reference documents were already active on each system. I have created a zip file with four screen capture pictures showing what I'm dealing with. The first picture shows what the site looked like yesterday morning; the second shows what happened when I refreshed the screen this morning; the third shows what happened when I switched the rendering engine on the same tab this morning; the fourth shows what happen when the tab was switched back to original rendering engine. The file is at:
    [http://charisacademy.org/pictures.zip This location]
    Please consider this for a moment: I am having to answer these questions from you using my iPad because the graphics at the top of this window which control the type-input will not display in Firefox while the post buttons will. Let me know if you can't get the picture file and I'll find another way to get it to you.

  • Complex conditional display in report table

    Hi,
    I built a report in a region, and want to make one of the columns conditionally display based on attributes from two other columns in the table. The drop-down for the conditional display only lets me refer to the current item. Is there a way I can reference the other cells in that table row in a PL/SQL expression (e.g.: something akin to #COLB# is not null and #COLC#>1000 ?)
    Related question: I'm assuming the reason I can't directly change the source for the report region and can only modify it from the Query Definition tab is because I used a wizard to create it. Is there a way to "undo" this and make the source for the report fully editable? That would also solve the problem, since I could just add a function-derived column to the query.
    Thanks in advance,
    Keith

    One final update and rephrasing of the problem, because maybe there's another way to solve this.
    I have a column in a report that links to another page, but the link is only shown if a certain condition is met (which is based on other cells in this table row). I can test for those conditions in my original SQL query, so that a null value in my link column results in no user-clickable link being created. (I have to make sure that a null value appears as null on the report page, too.)
    This works fine if the link text is just that: text. Because not meeting the condition returns null, so no text == no link.
    Now the only problem I have comes if I want to use an icon (e.g.: the edit icon) instead of link text.
    What I really want is for the icon to only appear if a certain condition is met. However, the icon replaces the column value so I can no longer use a null value to prevent the link from appearing.
    The original question asked whether I can use other report cells (#foo#) in the conditional display for a cell. If that's not possible, any suggestions on how to achieve the desired effect without resorting to JavaScript?
    Thanks.
    Edited by: kswartz on Jun 20, 2009 1:56 AM

  • Conditionally displaying different images in a report

    Hello. I have a simple report. In one column of it I have a link to another report. Instead of showing the value for the column, I show an image using the column's Column Link's Link Text property.
    In the Link Text field, I put an <img src="#WORKSPACE_IMAGES#my_image.jpg"> tag.
    Works like a charm - on the report the column displays little icon images that can be clicked on that take the user to a different page.
    I would like to conditionally (based on the actual value of the column's row) display two different images. Think of a green Up arrow vs. a red Down arrow.
    How can I do that?
    Or can I at least have the image above conditionally display and if the condition is not met, not display anything?
    I notice each of the report's column's attribute page has the Conditional Display section. How does work for a column?
    Thanks
    Boris

    Use a case expression in the query, e.g.
    case
      when x <= 50 then 'down.png'
      else 'up.png'
    end icon
    ...and change the Link Text field to
    &lt;img src="#WORKSPACE_IMAGES##ICON#" alt=""/&gt;

  • Condition on link in report not working

    I'm using a report on a simple table.
    select
    'ebs',
    'b2b',
    'soa',
    'poorten',
    'interfaces',
    "OMGEVING_NUMMER",
    "AFKORTING",
    "SERVER",
    "PACKAGE",
    "OWNER",
    "VERSIE",
    "COMPONENT",
    "INFO",
    from "#OWNER#"."DBA_OMGEVING"
    The first 5 columns are not tabel-columns as you can see, but I use them as link-columns to go to another detail-form.
    Now I want to display the link-column 'ebs' only when the value of the column "COMPONENT" has the value 'EBS'.
    I've done that by adding a condition on the link-column:
    "Value of Item in Expression 1 = Expression 2"
    In the field "Expression 1":
    #COMPONENT#
    In the field "Expression 2":
    EBS
    The problem is that the link is not displayed in the report when I use this condition. What am I doing wrong?
    reg.
    Chris

    Hi,
    I am not sure how that would work. You are trying to set the conditional display of the column based on the value of another column.
    What if the data in your table looked like this
    ebs     COMPONENT
    123     EBS
    456     XXX
    Would you hide the EBS column in this instance because one of the rows has the value EBS in the COMPONENT column?
    You can display NULL value in the ebs column when the COMPONENT column has EBS by doing this
    select
    DECODE(COMPONENT,'EBS',NULL,'ebs') ebs,
    'b2b',
    'soa',
    'poorten',
    'interfaces',
    "OMGEVING_NUMMER",
    "AFKORTING",
    "SERVER",
    "PACKAGE",
    "OWNER",
    "VERSIE",
    "COMPONENT",
    "INFO",
    from "#OWNER#"."DBA_OMGEVING"
    Regards
    Paul

  • How can I retain the attached .pdf files (displayed as icons) from my word file 2010 to a pdf file?

    Hi everybody,
    I have looked for an answer in this forum ... without any good result.
    I worked on a Word 2010 file with some attached pdf files. These attached files are displayed as icons on the word file. If you double click on them, you can consult them. This works very good.
    Problem: I would like to convert this word 2010 file into a pdf file, which keeps the icons (linked to attached files) active. If I "pdf" this with my current system, icons are displayed as pictures: I cannot open the attached files.
    My question is very simple: is it possible to retain these active icons (= to open attached documents) in a pdf file? Which adobe package should I use?
    Many thanks for your help 
    cheers
    elgreengo

    No, it's not possible, but I agree it would be a very nice feature.

  • Have CS 5 Installed on my iMac and works ok. But installed on my new MacBook Pro it won't open NEF files from my Nikon D810. Displays NEF icons, but when I try and open them the response is: Make sure latest RAW updates are installed. If problem persists

    Have CS 5 Installed on my iMac and works ok. But installed on my new MacBook Pro it won't open NEF files from my Nikon D810. Displays NEF icons, but when I try and open them the response is: Make sure latest RAW updates are installed. If problem persists follow link: http://www.adobe.com/go/kb407111. Have installed Bridge 5.0.2.4; Raw Ref Version 7.0.0.308; DNG converter_8_7_1.dmg; Bridge 5.0.2 Update 2. Also same problem with Lightroom which I don't normally use. Lightroom_3_LS11_mac_3_6.dmg installed.

    In the link you posted it states that the Nikon 810 requires ACR 8.6 or newer.
    Version of ACR are specific to versions of Photoshop. You cannot use 8.6 nor even 7.0.in CS5.
    I believe that ACR 6.7 is the latest that will work with CS5, so make sure you have this installed and get rid of ACR 7.
    Having 2 versions of ACR will cause problems.
    You have already downloaded DNG Converter 8.7.1.
    Have you double clicked the DMG file to allow you to install DNG Converter on your computer?
    Be aware that DNG converter is a stand-along application and not a plug-in.
    You need to open DNG converter at select the FOLDER that contain your .NEF files.
    Don't open the folder and try to select individual files, it doesn't work that way.
    After converting your D810 files to DNGs you can then open the DNGs in CS5
    The problem is your camera didn't exist when CS5 & its version of ACR was developed.
    i don't use Lightroom, but the list mentions Lightroom 5.6 as needed to open D819 so your 3.6 version of LR won't cut it.

  • Need help with conditional display

    I found a older thread (704012) that explains how to conditionally display a link using style.  Which is what I want to do.  The part I'm having trouble with is that part of the instructions say to put
    class="row_has_values_#HAS_VALUES#"
    in the Link Attributes which I have done.  I also have a column in the report called HAS_VALUES and I'm properly populating it in my select.  I know because I left it displayed while I'm testing.  I can run the report and I have Y's and N's showing up in that column but the conditional part does not work.  When I look at the page source (below) I see that in the html the #HAS_VALUES# has not been replaced by the actual Y or N.  I think that's where I'm having trouble?  I think it might work if there was a Y or N in that but I don't understand why that didn't happen.
    <tr class="odd"><td headers="LINK"><a href="f?p=125:3:12628966088981::NO::P3_PROGRAM_KEY:2" class="row_has_values_#HAS_VALUES#"><img src="/i/e2.gif"  border="0"></a></td><td  align="left"

    LawrenceJ wrote:
    I've continued to snoop around and see lots of posts on conditional display in reports.  Common desire I guess.  I saw some stuff that I interpreted to suggest that what I'm trying to do may not work in interactive reports, only in classic reports.  Does that sound familiar?
    That would certainly apply to anything template-related. However there have been enhancements to IRs (like adding HTML Expressions) that might supersede information in older posts. If you provide a link to the sources you've found and the APEX version you're using someone will be able to confirm whether that information is relevant.
    Many other posts on doing things conditionally in reports seemed to lean towards "selecting" the html based on data values and then just letting that get put in the report column.  That looks promising but sure is a bit ugly.  I've very little apex experience but lots of mod pl/sql and that sort of solution was pretty common when I did stuff with it.  I saw a little suggesting using templates as a solution but I'll confess to not understanding it at all.
    As I pointed out in the original thread, if the conditional display of the link is in any way security related then CSS or JS/jQuery methods are not acceptable. If the user is not supposed to be able to click the link or see any data contained in it, then you have to use a method that ensures that the link element never reaches the browser.
    Hard-coding the link HTML in the report query is the common approach, but is as you say a bit ugly. Using a custom report template (my favourite APEX subject) enables clean separation of the report query, conditional logic and HTML structure. If you know HTML then you're advised to get familiar with using templates in APEX. You'll find this a major advance on the PL/SQL web toolkit. What is it that you're not understanding about using templates?

  • Acrobat Documents Display as Icons in Office Documents

    Symptom:
    Microsoft Office Power Point/Word/Excel,
    Insert/Object/Create from file/
    Select any PDF file, select OK
    Ensure Display as Icon is NOT Checked
    All you get is a icon/link to the file.
    It should open the file into PP page
    Works fine "Pre-Adobe 9"
    Yes I know I can screenshot or snapshot that isn't the point...

    Hi Siva,
    Take a look at the last part of the following document.
    http://scn.sap.com/docs/DOC-25692
    Regards,
    Lisandro

Maybe you are looking for