Im trying to create a link within a report

select se.SERVER_ID,
se.SERVER_NAME,
se.MODEL_NUMBER,
se.SERVER_FUNCTION,
se.OPERATING_SYSTEM,
se.PROCESSORS,
se.RAM,
(select case when server_name in 'ni-cr-dev-dbs1'
        then '<a href="Link'
when server_name in name_of_document
        then '<a href="Link' ||
name_of_document ||' " target="_window">download</a>'
        end doc_link
        from se_SERVERS) as download,
se.FILENAME,
se.MIMETYPE,
se.LAST_UPDATE_DATE
from SE_SERVERS se
{code}
im getting an error, don't no if the inner select is being done right...
ORA-01427: single-row subquery returns more than one row                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hi
You need to link to the primary key of your main table like...
select se.SERVER_ID,
se.SERVER_NAME,
se.MODEL_NUMBER,
se.SERVER_FUNCTION,
se.OPERATING_SYSTEM,
se.PROCESSORS,
se.RAM,
(select case when server_name in 'ni-cr-dev-dbs1'
        then '<a href="Link'
when server_name in name_of_document
        then '<a href="Link' ||
name_of_document ||' " target="_window">download</a>'
        end doc_link
        from se_SERVERS se2
        where se.primary_key = se2.primary_key) as download,
se.FILENAME,
se.MIMETYPE,
se.LAST_UPDATE_DATE
from SE_SERVERS se
{code}
Replacing primary_key with the primary key column. HOWEVER, in this case you don't need to, you can just have...
{code}
select se.SERVER_ID,
se.SERVER_NAME,
se.MODEL_NUMBER,
se.SERVER_FUNCTION,
se.OPERATING_SYSTEM,
se.PROCESSORS,
se.RAM,
  case when server_name in 'ni-cr-dev-dbs1'
        then '<a href="Link'
when server_name in name_of_document
        then '<a href="Link' ||
name_of_document ||' " target="_window">download</a>'
        end   download,
se.FILENAME,
se.MIMETYPE,
se.LAST_UPDATE_DATE
from SE_SERVERS seCheers
Ben

Similar Messages

  • "Operation is not valid due to the current state of the object" error when trying to create a link for a shared folder in OneDrive

    I'm trying to share a folder in OneDrive with another user in my organization, and create a link so that people outside of the company can see the folder. Whenever I try to create a link I get an error that says: "Couldn't create the link sorry something
    went wrong operation is not valid due to the current state of the object" How do I resolve this?

    Hi,
    Sorry for replying late and I noticed that you posted another thread in this forum:
    http://social.technet.microsoft.com/Forums/en-US/2b8c6f54-9c59-4b37-b28f-1d49a1b7913b/operation-is-not-valid-due-to-the-current-state-of-the-object-error-when-trying-to-create-a-link?forum=officeitpro
    I've replied and kindly refer to it to see if it is helpful.
    Regards,
    Melon Chen
    TechNet Community Support

  • Trying to create a linked server to a remote 3rd party server using an AD group

    I am the DBA at our organization so I have full authority to all of our local SQL Server databases but we have data in a remote 3rd party SQL Server database that is only read-only.  The 3rd party has granted the read only privileges to one of our AD
    groups - let's call it mydomain\adgroup1.  I would like to create a linked server from one of our local SQL Servers to the remote database.  I'm not sure how to do this. 
    I have set the AD group up as a login and a user in my local database.  When I try to create the link, I used the mydomain\adgroup1 as the local login and, since the same credentials exist in the remote server, I checked the impersonate box and click
    OK but I get "mydomain\adgroup1 is not a valid login or you do not have permission".  Is it possible to create a linked server using an AD group?  As of now, we only have the AD group permissions in the remote database.  We could probably
    request a single SQL Server account to be created on the remote side and we could create the same on our side, but we are trying to keep things as simple and transparent as possible (and we would really like to move more toward AD security and away
    from individual users in the db).
    Can anyone give me advice on how to get these two SQL Servers linked?

      From your description, you likely want to implement Windows authentication for linked server, which requires to implement Kerberos constrained delegation.
     I would recommend the following link to get started: 
    How to Implement Kerberos Constrained Delegation with SQL Server 2008 (https://msdn.microsoft.com/en-us/library/ee191523%28SQL.100%29.aspx?f=255&MSPPError=-2147217396
      -Raul Garcia
       SQL Server Security
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • How do I create navigation links within a page?

    Hi,
    I would like to create navigation links to go directly to a certain topic on the page, similar to the one I found on Robohelp's help (screenshot).
    Thank you for your help,

    Hello etvaaa,
    Welcome to Robohelp Forums.
    You can use the Hyperlink Feature and link a bookmark, please follow these instructions :
    1) Place your cursor at the Destination Point and insert a Bookmark :
    2) Give a name to that Bookmark :
    3) Select that Text on which the user will click (Right Click -> Insert Hyperlink)
    4) Select that Bookmark which you inserted a while ago
    Hope it helps !!
    Thanks,
    Vikram

  • Create JAVA link in Crystal Report Viewer?

    We are looking at using Crystal for Reporting and are trying to determine if within a Crystal Report we can place data that is created as a Java link.  Lets say a dollar amount in the report...can it be created with a Java link attached that will call off and run another quick report/drilldown to return more detail information?

    Hello Tim,
    Yes,that is certainly possible.You can create a link which will be treated as object n report and then you need to create hyperlink for that specifying detail location of another object.
    Thanks,
    Chinmay

  • Hyper links within .RDF reports

    I want to creat a button on the report that will kick the users back to the homepage (index.html) they are running the reports from. i created a regular back button with
    TARGET=<FORM ><INPUT TYPE="button" VALUE="Back" onClick="history.go(-1);return true;"> </FORM>
    in the Add hyper links palatte but i can't get the same to work for my home button
    TARGET=<form><INPUT TYPE="button" VALUE="Back to SOE Reporting" onClick="http:\\sddb5\index.html);return true;"></form>
    any sugjestions???

    hello,
    i would assume that this is not the correct javascript-code to invoke a URL.
    onClick="location='http:\\sddb5\index.html';return true;"
    to load a document into the current window.
    regards,
    the oracle reports team

  • How to create anchor links within a spry accordion?

    I am using the spry accordion from DW CS6. HAving 6 panels.
    I want to do this but can't manage it the usual html way...and I am clueless about javascript:
    I want to create a wordlink that forwards people to the content of a different panel within the same accordion.
    I tried the usual naming of anchor and creating link to such but nothing happens. I googled a bit for answers but I come up with js and that is abracadabra to me. The names in the js are nothing likie html classes that I can target so I have no clue what to do.
    Any help would be very appreciated on this matter.
    One other problem I am having is this:
    My accordion is broken in the Opera browser....anybody an idea what causes this? Do I miss some plug in my browser?

    I am using the spry accordion from DW CS6. HAving 6 panels.
    I want to do this but can't manage it the usual html way...and I am clueless about javascript:
    I want to create a wordlink that forwards people to the content of a different panel within the same accordion.
    I tried the usual naming of anchor and creating link to such but nothing happens. I googled a bit for answers but I come up with js and that is abracadabra to me. The names in the js are nothing likie html classes that I can target so I have no clue what to do.
    Any help would be very appreciated on this matter.
    One other problem I am having is this:
    My accordion is broken in the Opera browser....anybody an idea what causes this? Do I miss some plug in my browser?

  • Create a link within a photoshop image?

    forgive me if this topic has been beaten to death but i couldnt find what i was looking for in a search:
    i'm importing photoshop images as each of my webpages but would like to create links from text within the .jpg file. i'm pulling out my hair trying to figure this out!
    any suggestions? thanks in advance!

    Chip:
    Do you want to link the entire file or just a portion of it? To do the entire file select it and open the Inspector/Link pane and set the link to whatever URL you want.
    If it's just a portion of the photo create a shape, resize and place of the portion of the picture you want to be a link, set the border to none, transparency to 1% and then use the Inspector/Link pane to set the link.
    OT

  • CSS : trying to create a link where it isn't effected by template CSS

    Hi guys
    Experimenting with CSS today, have created a menu with a a background image which activates on hover to make behind the HTML text look inset - worked out great! However now every other link on my page also has the background imge when hovering, so i need to somehow overide this style for other elements. I have tried using ID's, I'm at my wits end!!!!
    ANy help would be VERY welcomed!

    Line 60 of your HTML file:
    <td width="434"><a href="index.html"><img src="images/smartcube_website_layout_01.png" alt="" width="434" height="129" border="0"></a></td>
    It is the link you're using on your logo image that is causing this problem. Try changing it to this:
    <td width="434"><img src="images/smartcube_website_layout_01.png" alt="" width="434" height="129" border="0"></td>
    The reason being you have used a sliced image - so the entire width and height of that slice is being hyperlinked.
    Solution:
    Slice just the background area and place it into TD
    Place the logo within it
    Or, another option - create an image map, map just your logo and hyperlink that

  • Is there a way to create a link within a document that will pull text from the document and open it up in a separate text box within the document?

    I am trying to link sections of an form within a PDF back to instructions within the same PDF document.  Instead of having this jump back to the page within the document I would like for it to pull up the identified text within a separate pop-up text box on the same page where the form lives.  Is this possible?

    Hi gwebster,
    Instead of linking back to the instructions page, may be you can use tool tips or comments so that the instructions can be seen besides the text.
    Regards,
    Rave

  • How to create hypertext links between various text within a Pages document?

    I have documents with paragraphs or sentences that are usually numbered like within a constitution, legal document or biblical text and then later in the document want to link back to the text. How do I create those links within Pages?

    Not supported with Pages v5.5.2 on Yosemite. Document bookmarks are available in the older, but far more powerful Pages '09 v4.3.

  • Creating a link in a PDF form to open into a new window

    I have created the PDF form and every thing seems to be working fine. But I would like to set a link in the form that would open into a separate page. I have tried target="_blank" and onclick="window.open(this.href, 'child', 'scrollbars,width=650,height=600'); return false" with no success. Can someone give me some direction on how to create a link within a PDF form that will open into a new window?

    Try this, using JavaScript:
    app.launchURL("http://www.adobe.com",true);

  • Creating a link to a Multibyte file with PDF 1.4

    I am trying to create a link to a file that contains multibyte characters (specifically Japanese) - unfortunately, I need to conform to the PDF 1.4 standard (I can make things work fine using PDF 1.7 and /UF).
    The 1.7 standard says that as of PDF 1.2, a file specification can contain multibyte character codes if you represent them in hexadecimal format. I cannot get this to work, and wonder if someone has any insight into why this might be.
    My multibyte file spec is UTF-8 encoded, and this is how I write it (in hex) to the document (without thr UTF-8 BOM). When I later click on that link, I get an error that the specified document does not exist - the part of the filespec that is English characters are displayed correctly, but the Japanese characters show up incorrectly.
    Does Acrobat expect these characters to be UTF-8 encoded, or otherwise? I've tried prepended the UTF-8 BOM, but that didn't make a difference. Do I need to UTF-16BE encode them (like with /UF)?
    Additional info: I've tried using Acrobat 5 to create a new PDF and inserted a link to a file whose name contains Japanese characters - when clicking on the link in this, I also get the 'file does not exist' error. Also, looking in the PDF, the filespec is NOT hex encoded, and the Japanese characters have been replaced by ???.

    Hmm... so, what does it mean when the 1.7 spec says 'In PDF 1.2 or higher, a file specification may contain multiple-byte character
    codes, represented in hexadecimal form between angle brackets (< and >).'? If Acrobat 5 supports PDF 1.4, I would have thought this would mean that Acrobat 5 would support multibyte character codes...
    I would guess that this puts the final nail in the coffin of creating links to filenames with non Roman characters from Acrobat 5.
    Just so I can report this upwards, I see that you are an Adobe employee - are you a support person?

  • Creating a link to a file on a Windows server?

    I am trying to create a link to a file located on a Windows server that I can email to users and they can click on the link and it will open the actual file.
    Here is what I have done so far:
    smb://server/sharedfolder/document.doc
    The user can click on the link but it just opnes up the "sharedfolder" and then you have to find the file you want and then open it and that works.
    I need the link to be able to just open the actual file.
    Is there a way to do this??
    Thanks

    Since it's a file download, there's no reason to add the target="_blank", I'm guessing your file is 404 for some reason which would give you a blank window per the target.
    Make sure the case structure of the file and link are identical. Servers are case sensitive, a server sees CheckIPApp.zip and checkIPApp.zip as totally different files. Your local OS sees them as the same thing so during local testing it will work, when uploaded, it won't.
    Make sure you've loaded the file onto the server at the exact location specified by the link. It should be in a folder called "Zip Files" that resides on the same directory level as the page that the link is on.
    You may also want to normalize your file names. They should be all lower case alpha-numerics without any spaces (use hyphens or underscores instead) and without special characters ($%&*). You can use DW's Files window to change names and DW will fix the links automatically.

  • Creating a Linked Report in SC 2012 - Operations Manager fails with Error

    Hello everyone,
    I was trying to create a linked report based on an availability report recently. I found Emre Guclu's scom linked report creation guide here:
    http://blogs.technet.com/b/emreguclu/archive/2011/10/13/using-linked-reports-in-scom-to-create-custom-availability-reports-for-specified-monitors.aspx
    I go to SSRS web console and select a report (Which is Microsoft.SystemCenter.DataWarehouse.Availability in Microsoft.SystemCenter.Datawarehouse.Reports), select "Create a Linked Report" from context menu, select another location for storing the
    report just like on this guide but i get an error rsWrongItemType with exact text:
    "The operation you are attempting on item ' Microsoft.SystemCenter.Datawarehouse.Reports/ Microsoft.SystemCenter.Datawarehouse.Availability' is not allowed for this item type. rsWrongItemType"
    Does anyone know why is this error happening and better how to fix this?
    Below is the screenshot of SSRS.

    Hi,
    Please check the report path you have set, the location must specify the full report path, such as
    /custom report folder/MyReport.
    Alex Zhao
    TechNet Community Support

Maybe you are looking for

  • Belkin 54g powerbook card

    Just hooked up Express using my TiBook. Belkin PC card (Broadcom chip) sees Express and Airport Setup says it is connected. Air Tunes works. However Amber light just keeps blinking. Is this because of Belkin firmware? Any fixes for this? Can I update

  • Some Problems Rendering With Maya

    Hi there! I had submitted a Maya job with my Qmaster and it worked fine with my sime animation sequence and putting up basic materials. Now, I have a quite complex scene and it includes materials and textures. Qmaster renders the animation sequence b

  • (Again): The page is setup in "mm" but still appearing in "inch"! why?

    (Again): The page is setup in "mm" but still appearing in "inch"! why? I wanted the "preview" part of the "print" dialogue" box to be in "mm" but sounds not to respond to the settings made and still appearing in "inch"! why? Why such simple setting i

  • Declare a text query

    If I have a text query in visual studio EXEC DCC_SPP_GetPeopleByDepartment @Department how can i declare the @Department to be varchar (8000) ? I tried declaring it in the stored procedure, but when I deploy the report, the query fails as it's lookin

  • Help with my browser please

    Hey guys I really need help and this is really frustrating! I now receive an HTTP ERROR 403 : Forbidden message everytime I try to download anything that I was always used to download easily! Please help!