Help with display point only.

Hello

I have a question on works of the element (display only). I've created an article and in the settings I chose (Exit Code from PL/SQL) for the value (based on). The code was.
declare
v_result number;
begin
select PREDICTION (REG_BREAST USING *) into v_result
FROM app_tumors;
return v_result;
end;
When I ran the page, it gives me the following message is displayed. (ORA-06550: line 6, column 1: PLS-00372: in a procedure, RETURN statement cannot contain an expression ORA-06550: line 6, column 1: PL/SQL: statement ignored)

So I hope everyone can advice me how to do the single display element works.

Thank you

Hello

This setting ("output of PL/SQL Code") requires you to display HTML - for example:

BEGIN
htp.p('Hello World');
END;

If you want your v_result look, use something like the above, - no RETURN statement is allowed, so just output using htp.p () - or to change the Type of Source "PL/SQL function body", which uses the RETURN statement (but only for one value), for example:

DECLARE
 v VARCHAR2(10);
BEGIN
 SELECT TO_CHAR(SYSDATE,'DD/MM/YYYY') INTO v FROM DUAL;
 RETURN v;
END;

Andy

Tags: Database

Similar Questions

  • Help with displaying a URL in the body of the email

    Version: Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    Hello

    I hope I could get help with displaying a URL embedded in an email. "The URL < a href ="http://projectstatus"> click here to connect to status tool < /a >, appears what looks like text. .

    If it's important the e-mail client is Outlook 2010.

    The procedure will query a table to send reminders to project managers to update their project status each week.

    The application must include a link to the application, so they can access the e-mail application without having to go through their browser etc.

    FOR email_recipients_rec IN email_recipients_cur
    LOOP
        v_recipient := 'email_recipients_rec.resource_email';
        v_subject   := NVL(email_recipients_rec.proj_name||' Status Needs To Be Updated', '(no subject)');
        v_message   := 'The Status for '||email_recipients_rec.proj_name||' on the '||email_recipients_rec.report_date||' '||email_recipients_rec.dashboard_name||
                       ' was not updated as of '||TRUNC(email_recipients_rec.last_updated)||'.'|| utl_tcp.crlf
                        ||'Please update the Status on this Project.'||utl_tcp.crlf||utl_tcp.crlf
                        ||'<a href="http://projectstatus">Click Here to Log into the Status Tool</a>';
    
        sendmail( p_recipient      => v_recipient
                 ,p_subject        => v_subject
                 ,p_message        => v_message
                                );
    END LOOP;
    
    PROCEDURE sendmail( p_recipient      IN VARCHAR2
                       ,p_subject        IN VARCHAR2
                       ,p_message        IN VARCHAR2
                      ) IS
    
        l_mail_conn     utl_smtp.connection;
        v_sender        VARCHAR2(40) := c_default_mail;
    BEGIN
        l_mail_conn := utl_smtp.open_connection(c_mailhost, 25);
        utl_smtp.helo(l_mail_conn, c_mailhost);
        utl_smtp.mail(l_mail_conn, v_sender);
        utl_smtp.rcpt(l_mail_conn, p_recipient);
    
        utl_smtp.open_data(l_mail_conn);
    
        utl_smtp.write_data(l_mail_conn, 'From: ' || nvl(v_sender, 'SendMail Procedure') || utl_tcp.crlf);
        utl_smtp.write_data(l_mail_conn, 'To: ' || nvl(p_recipient, c_default_mail) || utl_tcp.crlf);
        utl_smtp.write_data(l_mail_conn, 'Subject: ' || nvl(p_subject, '(no subject)') || utl_tcp.crlf || utl_tcp.crlf);
    
        utl_smtp.write_data(l_mail_conn, p_message);
        utl_smtp.write_data(l_mail_conn, utl_tcp.crlf || utl_tcp.crlf);
    
        utl_smtp.close_data(l_mail_conn);
        utl_smtp.quit(l_mail_conn);
    
        EXCEPTION
        WHEN OTHERS THEN
          -- catches all errors
          RAISE_APPLICATION_ERROR(-20001, 'SENDMAIL: ' || SQLERRM);
    END sendmail;
    
    
    
    
    
    
    
    
    
    

    I hope it's clear. If not, please let me know what is not clear.

    Can what information I provide?

    Thank you

    Joe

    See the link now, but now the message is not displayed. Only the link.

    Of course.

    Your e-mail client displays only the HTML part.

    It is the purpose of MIME multipart/alternative type, if HTML is not supported, the customer returns to the plain text version.

    Today, most of the mail clients Enterprise supports HTML content (Outlook is of of them), just so place all the message in the HTML part and add the link according to your rules.

  • Why can I not use hidden or display point only to store the value for insertion?

    Hi, gurus:

    I have a question:

    I implemented a form with the region of report in a page, the update works OK, but the add function has a problem:

    There is a column, offender_ID, which is a foreign key to another table, it must not be null during insertion. However, even I pass the ID of the author of the offence of master page when user click on the button create and he did watch in the form, it must be a text tabled for insert success, why can I not use hidden or display point only to store this value for insert? (If I use hidden or display single element insert will be successful, apex reports I tried to insert a null value for the offender_ID column.)

    Thanks in advance.

    Sam

    Hello

    There is a column, offender_ID, which is a foreign key to another table, it must not be null during insertion. However, even I pass the ID of the author of the offence of master page when user click on the button create and he did watch in the form, it must be a text tabled for insert success, why can I not use hidden or display point only to store this value for insert? (If I use hidden or display single element insert will be successful, apex reports I tried to insert a null value for the offender_ID column.)

    I think that both hidden and display elements have attributes that can cause problems because of different ways these function elements as the only non-display and feature no hidden items. The only items have a "Save Session State' yes/no 'control'? This can be a problem.

    Would you do that? Do these regular items instead and see if you can get those working. Then, we will try to change the fields back to hidden or display only.

    Howard

    Congratulations. I'm glad you found the solution.

    Published by: Howard (in training) April 11, 2013 10:26

  • Help with display 7-segments/guest

    Hello, I am a whack-a-mole implementation, and there are a few pieces that I have problems with...

    1. how to do the stop 7 segments to 0 after playing for 60secs?

    2. how to make the game more light upwards the button once the game ends?

    3. replace the boxes option and choose levels prompt the user instead?

    Any help would be appreciated... Thank you...

    You will need to do a few step backwards and think about your code. You do too many complicated things. For example, the loop to stop and the two timer loops can be combined on one. The loops to operate at a speed, not need to measure time, just count fixed iterations!

    Why do you need so many stop buttons? Why do you use such a confusing cluster ranking? Than the number the same as index table for simplicity!

    It's just the toip of the iceberg, there are many more problems. Get rid of the large stacked sequence. You can set the order of execution with the cluster of error.

    1. Start the decrement of the meter at a fixed rate, from 60 and stop at 0. (see attachment).
    2. SUST illuminates whe in (1) the stop condition is reached. Without requiring additional code.
    3. Get a custom context menu dialogue VI tho everything you want.
  • Help with display - seems too high on aol and facebook.

    I use Windows XP, professional version.  A few days ago, I noticed that the fonts, icons appear larger than normal.   I checked the default setting on my info 'View' of the control panel and it's OK... 1024 x 768 pixels.  Help, please!

    Hi Judy,.

    Have you tried using a different screen resolution to see if your original resolution has been changed?

    To do this, click the 'display' icon in the 'Control Panel' and click the 'settings' tab, then try to change the 'screen resolution' (lower left corner) '1280 x 1 024 pixels', if your video card supports, by moving the slider down, arrow to the rightfor.

    In addition, on the same tab 'settings', click on the "Advanced" button and note the value of "DPI settting" (about a third of the way down on the left side). It should generally be set to "normal size (96 DPI).

    Let me know the results of your efforts.

    Kind regards

    Fretfull.

  • Help with anchor points

    After some research, I decided to open my own ticket and try and get this resolved, or at least learn more about the functioning of the anchor points. I wanted to design my Web site for people with monitors of resolution higher than most of the people have full HD monitors BUT frame the site it is also visible on a laptop computer that will be the smallest resolution, as I updated my page width 1300 pixels which, for me, does not seem over the top. Here is a screenshot of the layout of my site.http://i.imgur.com/pDk5BjW.png

    If you notice that the anchor at the bottom left is aligned with the edge of browsers, but when you click on the link further down the page the page horizontally derivatives, but when I run physically scroll image if switches back to place, I would like to know if this is possible or if there is a better way to create a great site that allows people with higher to see more of my images resolutions , but not leave out people with lower resolutions.

    Edit: This is a quick edit to say that I have the selected page as centered in the page properties menu and I have Centre of the United Nations it seems to work fine but of course everything is left justified so I lose a few details on the left edge, just don't feel good

    Instead of using an image of 1300 create a rectangle of width and set your image as the fill for the rectangle. It will then adjust to the users screen but keep your content and anchors of tact and centered.

  • Please help with display drivers

    I'm unable to improve the display of the monitor in my windows server 2008 R2, I am currently using the standard VGA graphic adapter. Is there any assistance software that could use me to improve my servers appear better.

    You can be better start here - http://technet.microsoft.com/en-us/windowsserver/bb310558.aspx

    What have you tried to change it?
    your GPU drivers are up-to-date? (consult the manufacturer of your site Web from PC at first, then if there are not all there, the manufacturer of your video card, for the most up to date driver support)
    But if his own Server 2008 as opposed to W7, then you may be better served in the link above.

  • Need help with display of the container / States

    Greetings!

    I try to use States to change the content of a canvas that is the second of two within a browser tab. Buttons trigger functions to change the State and replace the selectedIndex property of the browser the second tab.

    Functions work very well if you first switch to the second tab. If you click the buttons before watching the second tab, it explodes. Here is a link to the app: http://test.arsandbox.com/player.cfm any idea would be appreciated!

    Code:
    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' creationComplete = "initApp (); ">
    < mx:Script > <! [CDATA]
    private function initApp (): void {}

    }

    private function displayDirectory (): void {}
    switchTab();
    currentState = "stateDirectory";

    }

    private void displayWriter(selectedWriter:String):void {}
    currentState = "stateWriter";
    switchTab();
    }

    private void displaySong(selectedSong:String):void {}
    currentState = "stateSong";
    switchTab();
    }

    private function switchTab (): void {}
    ContentTabs.selectedIndex = 1;
    }

    []] > < / mx:Script >

    < mx: states >
    < name mx: State = "stateDirectory" >
    < mx:SetProperty target = "{directoryBox}" name = 'visible' value = 'true' / >
    < mx:SetProperty target = "{writerBox}" name = 'visible' value = "false" / >
    < mx:SetProperty target = "{songBox}" name = 'visible' value = "false" / >
    < / mx: State >
    < name mx: State = "stateWriter" >
    < mx:SetProperty target = "{directoryBox}" name = 'visible' value = "false" / >
    < mx:SetProperty target = "{writerBox}" name = 'visible' value = 'true' / >
    < mx:SetProperty target = "{songBox}" name = 'visible' value = "false" / >
    < / mx: State >
    < name mx: State = "stateSong" >
    < mx:SetProperty target = "{directoryBox}" name = 'visible' value = "false" / >
    < mx:SetProperty target = "{writerBox}" name = 'visible' value = "false" / >
    < mx:SetProperty target = "{songBox}" name = 'visible' value = 'true' / >
    < / mx: State >
    < / mx: states >

    < mx:Panel id = "Main" width = "100%" height = "100%" layout = "horizontal" title = "Example" horizontalAlign = "center" verticalAlign = "middle" backgroundColor = "0xB3C0C6" >
    < mx:DividedBox direction = "horizontal" width = "100%" height = "100%" >
    < mx:VBox width = "250" height = "100%" backgroundColor = "#ffffff" >
    < mx:Button label = "Directory" click = "displayDirectory (); "/ >
    < mx:Button label = "Writer" click = "displayWriter('1'); "/ >
    < mx:Button label = "Song" click = "displaySong('1'); "/ >
    < / mx:VBox >
    < mx:TabNavigator id = "ContentTabs" width = "100%" height = "100%" visible = "true" >
    < mx:Canvas label = "Homepage" width = "100%" height = "100 percent" horizontalScrollPolicy = "off" >

    < / mx:Canvas >
    < mx:Canvas label = "Writers" width = "100%" height = "100%" horizontalScrollPolicy = "off" >
    < mx:VBox id = "directoryBox" width = "100%" height = "100%" visible = "true" top = "0" left = "0" >
    < mx:Label text = "Directory box" / >
    < / mx:VBox >
    < mx:VBox id = "writerBox" width = "100%" height = "100%" visible = "false" top = "0" left = "0" >
    < mx:Label text = "Writer Box" / >
    < / mx:VBox >
    < mx:VBox id = "songBox" width = "100%" height = "100%" visible = "false" top = "0" left = "0" >
    < mx:Label text = 'Song box' / >
    < / mx:VBox >
    < / mx:Canvas >
    < / mx:TabNavigator >
    < / mx:DividedBox >
    < / mx:Panel >
    < / mx:Application >

    The items presented in the second tab are not really created or instantiated until they are first read. It is a performance setting built in Flex. You can however get around the setting and force all the contents of the tab to render immediately when the tab navigator is created. To do this, you set the creationPolicy on the TabNavigator and set the value to 'all '. Beware, this is going to hurt performance if the browser tab has a lot of big kids.

  • Help with error: "display driver stopped responding, but recovered."

    Hello

    First of all, my configuration is a Dell XPS 7100, Windows 7 Home Premium 64-bit, the Videocard Visiontek AMD Radeon HD 6850 w / 9.2.0.0 driver version.

    AMD Phenom II X 6 cpu.

    My problem is that when I try to play a game (more precisely: Minecraft, SimCity, World in Conflict, AOE3) under Windows, the screen freezes for 5 seconds then go black for 1 second then back to the top with an error message saying:

    Display driver stopped responding, but recovered

    Driver AMD display driver stopped responding and has successfully recovered.

    This started only after I upgraded my video card to an AMD HD 5670 to an AMD Radeon HD 6850 Visiontek, which, at the same time, I upgraded my power supply to a 500w unit as AMD recommends. After that that I've updated all my drivers, deleted and reinstalled the driver video and which did not help. I then searched in all the forums about this problem and found that it is more than likely a problem with Windows power management. So, I followed the instructions on the site to change the registry data to help with this. This did not work, the same problem at the same time. I then contacted AMD Support and fairly well, they told me that it is either the power supply or windows power management which was the cause of the crash.

    I am at a loss now, I know not what to do. I have not tried all the third-party programs to try to manage the power. But if someone has used one that works or has any ideas for me to try please let me know.

    Thank you very much!

    I found a solution that helps!

    Please make a backup of the registry before making any changes in it.

    When editing the registry go to:

    • HKEY_LOCAL_MACHINE
    • then the MATERIAL
    • then DEVICEMAP
    • then the VIDEO
    • in the 'VIDEO' file, there is an entry with the title: MaxObjectNumber - REG_DWORD
    • This has a value at the end that looks like 0 x 00000006 (6) or 0 x 00000005 (5)
    • Double-click MaxObjectNumber, and an edit box appears
    • put 0 in the given value, and then click OK.

    This will disable Windows GPU Timeout detection and recovery. That she has stopped crashing on me.  The only problem is that windows does not save it and it resets after that rebooting so it must be changed every time you start the computer.

    If anyone knows how to save the changes to the registry, I would be very grateful for your advice.

  • Help with the query to select only one record from the result set in double

    Hello

    Please help with the query. Version of Oracle database we use is 10g R2.

    I have a vision that is duplicated IDS, but they are used across the different functions. See below examples of data. Please help me with a query to select only one record (based on ID regardless of the area) from the bottom of the result set of duplicate records. For what is the point of view is there unique records, given the combination of the fields ID, Org, DF, dry, Sub-Sec

    ID
    Org
    DF
    Sec Sub-Sec

    (163)CQCPDMCPDMHD(163)PCENGENGENG(163)CQASICASICIS8888TSTACTACTAC(163)TSHEHESW6789CQINFOINFOFOS6789PCSECSYSSECSYSINFO16789TSSECSYSSECSYSINFO29009PCBMSBMSBMS1

    My result set must eliminate the duplicate identifiers regardless of whoever we choose of the result set. (I mean without distinction Org, DF, s, Sub-s). My expected result set should be.

    ID
    DSB

    DF
    SEC
    Sub-Sec
    (163)CQCPDMCPDMHD8888TSTACTACTAC6789CQINFOINFOFOS9009PCBMSBMSBMS1


    Thank you

    Orton

    Hello

    This sounds like a job for ROW_NUMBER:

    WITH got_r_num AS

    (

    SELECT id, DSB, df, s, sub_sec org

    ROW_NUMBER () OVER (PARTITION BY ID.

    ORDER BY org

    ) AS r_num

    OF view_x

    )

    SELECT id, DSB, df, sub_sec s,

    OF got_r_num

    WHERE r_num = 1

    ;

    He is a Top - N query example, where you choose the elements of N (N = 1 in this case) from the top of an ordered list.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and INSERT, only relevant columns instructions) to your sample data and the results desired from these data.  (I know that you said that you were a view selection.  Just for this thread, pretending it is a picture and post simple CREATE TABLE and INSERT statements to simulate your point of view).
    Point where the above query is to produce erroneous results, and explain, using specific examples, how you get the right results from data provided in these places.  (I didn't quite understand the explanation above.  I don't know why you want to

    ID ORG DF DRY SUB_SEC

    --      ---     --      ---     -------

    1234 CQ DPRK DPRK HD

    and is not

    1234 IS CQ ASIC, ASIC

    or

    TS 1234 IT IT SW

    or

    1234 CQ ASIC ASIC HD

    )
    If you change the query at all, post your modified version.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • When you install windows vista service Park 1, I have received an error code 80073712 with 13% downloaded only?. Can you help me to complete this process?

    When you install windows vista service Park 1, I have received an error code 80073712 with 13% downloaded only?. Can you help me to complete this process?

    Hi Gore EzekiahTongun

     

    You can see the steps in the below mentioned article Microsoft and verification.

    http://support.Microsoft.com/kb/947366

     

    I hope this helps.

  • Phone starts only in White Triangle with exclamation point!

    I had to restart my phone after that it got stuck and would not cut.  Pulled battery, powered to the top, and all I can get is the white own with the point Exclamation and the droid.  Gives no error when I click on the magnifying glass to see the screen "" E: can't open/cache/recovery/command ""

    Tried all the options, including "wipe data / factory reset" does, but still can not past screen above.

    Tried to do a safe mode boot.  All I get is the same Triangle Wite screen.

    Any HELP is appreciated.

    I may be wrong but you may have bricked your phone. Time to visit at the Verizon store good neighbourliness

  • Clicking on the tab help for help with photoshop first time get in "photoshop online help could not be displayed because you are not connected to internet" but I'm connected to the internet?

    Dear all

    I need help with the following problem:

    Clicking on the tab help for help with photoshop first time get in "photoshop online help could not be displayed because you are not connected to internet" but I'm connected to the internet.

    Appreaciate help on this problem.

    MSD

    I find it easier and faster to use just this link, which goes to the same place as aid > online help for Photoshop:

    Using Photoshop | Photoshop help

    To bookmark so that you can find.

  • Help! Illustrator crashed unexpected when I work with her. Only a reboot allows, after abandoning the preferences. Who knows what bug this is?

    Help! Illustrator crashed unexpected when I work with her. Only a reboot allows, after abandoning the preferences. Who knows what bug this is?

    If we could, we could make a lot of money, solve problems.

    But unfortunately, we can not just from your description. Please give us the details.

    What version?

    What system?

    Third-party plug-ins?

    All corrupt fonts?

    What hardware is connected?

    You have a printer installed?

    Font management?

    What exactly were you doing when it crashed?

  • LR6 print module image is displayed not only white canvas. Help, please

    LR6 print module image is displayed not only white canvas. Help, please

    Hi abelardo,

    Could you please try the following steps:

    (1) quit Lightroom

    (2) deleted my "Lightroom 6 Preferences.agprefs" file to the place mentioned in the article:

    Preferences and other locations of the file file | 5 Lightroom

    (3) restart Lightroom.

    (4) then check the print module.

    Concerning

    Sarika

Maybe you are looking for