DBMS_OUTPUT.PUT_LINE not working in Stored Functions

Hi All,
I have one doubt, why is dbms_output.put_line not supported in Stored Functions?
create or replace function func_in_sql(var number) return varchar2
is
begin
If var is not null then
return to_char(dbms_output.put_line(var));
else
return to_char(dbms_output.put_line('null'));
end if;
end;
Returns error -
LINE/COL ERROR
5/3 PL/SQL: Statement ignored
5/18 PLS-00222: no function with name 'PUT_LINE' exists in this scope
7/3 PL/SQL: Statement ignored
7/18 PLS-00222: no function with name 'PUT_LINE' exists in this scope
Any idea why this is happening?
I know that to print value one can just use return statement and value will be printed in SQL Prompt.
But what makes me think is why error for PUT_LINE method?
If error is not thrown at DBMS_OTUPUT then doesnt that mean all methods of DBMS_OUTPUT should be accessible in a function.
Thanks in advance!
Av.

Hi,
For cant call proc inside func, or in-line thing you mentioned, just tried following -
Here is our previous Func -
create or replace function func_in_sql(var number) return varchar2
is
begin
/*If var is not null then
return to_char(dbms_output.put_line(var));
else
return to_char(dbms_output.put_line('null'));
end if;
exception_test;
return 'a';
end;
and here is our proc -
procedure exception_test
as
v_count1 number;
v_count2 number;
begin
select count(test_id)
INTO V_COUNT1
from TEST_TABLE;
If SQL%NOTFOUND Then
dbms_output.put_line('notfound');
End If;
dbms_output.put_line(v_count1);
exception
when no_data_found then
If SQL%NOTFOUND Then
dbms_output.put_line('notfound');
End If;
dbms_output.put_line('no_data');
WHEN TOO_MANY_ROWS THEN
dbms_output.put_line('too many rows');
when others then
dbms_output.put_line('others');
end;
and here is the call to func -
SQL> select func_in_sql(x) from t1;
FUNC_IN_SQL(X)
a
a
a
a
4 rows selected.
So this shows it works.
Is this what you said? or Am I getting you wrong?
Thanks!
Av.

Similar Messages

  • Oracle 10.1.0.4.2 SQL Plus dbms_output.put_line not working

    I am using Oracle 10.1.0.4.2 SQL Plus, and dbms_output.put_line is not working. It returns the dbms_output ONLY from outside the procedure. I have dbms_output INSIDE my procedure, and none of it gets returned. Please help!
    Here is what I enter:
    set serveroutput on size 1000000;
    DECLARE
         x number:=0;
    begin
    DBMS_OUTPUT.ENABLE;
    c2reports.c2proc(x,'TEST');
    DBMS_OUTPUT.PUT_LINE('testX');
    END;
    testX
    There should be more besides the 'testX' that gets returned. The first line in my procedure has output code to print testY. Thanks in advance!

    This is the forum for the Oracle's SQL Developer (Not for general SQL/PLSQL questions). You should ask question like this in the PL/SQL forum

  • 30EA2 dbms_output.put_line not working

    Hi All,
    I've testing new release SQL Developer and
    the code bellow is not put any data to output? Is it an issue new version ?
    BEGIN
    dbms_output.put_line('[text]');
    END;
    SQL Developer
    Version 3.0.02
    Build MAIN-02.83
    Thank you in advance
    Edvard

    Hi Edvard,
    Yes, dbms_output is borked on 3.0EA2, but you can make it work if you put 'SET SERVEROUTPUT ON' in front of your statement:
    SET SERVEROUTPUT ON
    BEGIN
    dbms_output.put_line('[text]');
    END;
    And run it as a script (F5 on Windows, I think)
    See EA2: Dbms Output broken? for more.

  • Dbms_output.put_line not working

    Hi, i am trying to use dbms_output.put_line to execute a sql in a bat script on windows...i get no errors , but the "alter tablespace" just prints but does not execute.
    What exactly am i missing? Part of the script shown below..
    thanks
    set HFILE=%SCRIPT_HOME%\remove_bkupmode.sql
    echo connect sys/%INTPWD% as sysdba >>%HFILE%
    echo set termout off heading off feedback off >>%HFILE%
    echo set linesize 300 pagesize 0 >>%HFILE%
    echo set serveroutput on size 1000000 >>%HFILE%
    echo spool %SCRIPT_HOME%\cleanup.sql >>%HFILE%
    echo Declare >>%HFILE%
    echo cursor c1 is SELECT t.name FROM V$DATAFILE d, V$TABLESPACE t, V$BACKUP b WHERE d.TS#=t.TS# AND b.FILE#=d.FILE# AND b.STATUS='ACTIVE'; >>%HFILE%
    echo Begin >>%HFILE%
    echo for tbs in c1 loop >>%HFILE%
    echo   dbms_output.put_line(' alter tablespace '^|^|tbs.name ^|^|' end backup;');  >>%HFILE%
    echo end loop; >>%HFILE%
    echo dbms_output.put_line('exit;'); >>%HFILE%
    echo End; >>%HFILE%
    echo / >>%HFILE%
    echo spool off >>%HFILE%
    echo exit; >>%HFILE%
    START /wait SQLPLUS /NOLOG @%HFILE%

    thanks guys...did i bring back memories?
    yeah its an old script. part of an old hot backup script i inherited, for a 24/7 live 9.2.0.1 database that can't be upgraded due to customizations lol
    i setup rman, but since i'n still new to rman, i wanted to continue with the user- managed hot backups
    this script will run afer the backup, just in case, to ensure that no tablespaces are left in backup mode.
    J

  • Brand new 15" MacBook Pro Retina - unplugged from Thunderbolt Display and Keyboards today find keyboard alpha-numerics not working; except the function keys, delete key, tab key, command/ctrl/shift/alt/fn and arrow keys; and 7/8/9/u/o/j/l nudge cursor

    Brand new 15" MacBook Pro Retina - unplugged from Thunderbolt Display and Keyboards today find keyboard alpha-numerics not working; except the function keys, delete key, tab key, command/ctrl/shift/alt/fn and arrow keys; and 7/8/9/u/o/j/l produce cursor nudges.

    It's a new machine - and the Thunderbolt Display is meant to work with it. You need to just make an appointment at your local Apple Store and have them fix whatever is wrong.
    If you like, you could always try a SMC reset and a PRAM/NVRAM reset to see if either of those will get your keyboard back in working order...
    Clinton

  • Working in Sql, not working in Stored procedure

    Dear friends,
    I am puzzled about this strange working of Oracle , although I know that there is some problem with my code. I paste my code here. The delete statement is working properly in SQL Plus 8.0, but it is not working when I call this stored procedure from the Form.
    FUNCTION delete_record_treaty (
    p_treaty_id T_RIN_TREATY_MST.TRTY_ID_GV%TYPE, p_value VARCHAR2,p_block VARCHAR2 )
    RETURN BOOLEAN IS
    v_treaty_type varchar2(5);
    BEGIN
    v_treaty_type := substr(p_treaty_id,1,3);
    if p_block !='T_RIN_GRP_DTL' and p_block != 'T_RIN_XOLSLAB_DTL' and p_block!='T_RIN_PMTSCHD_DTL' then
    delete from T_RIN_TREATY_MST where TRTY_ID_GV=p_treaty_id ;
    commit;
    end if;
    if v_treaty_type = 'QTA' then
    delete from T_RIN_GRP_DTL where TRTY_ID_MV=p_treaty_id and T_RIN_GRP_DTL.ROWID = p_value;
    commit;
    elsif v_treaty_type = 'XOL' then
    delete from T_RIN_XOLSLAB_DTL where TRTY_ID_MV=p_treaty_id ;
    delete from T_RIN_PMTSCHD_DTL where TRTY_ID_MV=p_treaty_id ;
    elsif v_treaty_type = 'FAC' then
    delete from T_RIN_PMTSCHD_DTL where TRTY_ID_MV=p_treaty_id ;
    end if;
    RETURN(TRUE);
    END delete_record_treaty;
    Thanks in advance.
    All the paramaters that I pass, are correctly being passed to this stored procedure.
    null

    I solved it.One parameter I was passing it wrongly.
    Gee :D
    Subramanian V.

  • Dbms_output.put_line not printing in inner for loop using a parameter

    I cannot get the inner loop to print output. I can run both loops independent (hardcoding a value for the inner loop) Any help is apprecicated... Listed is the code
    set serveroutput on
    DECLARE
    cursor ACCNO_CUR is
    select accession_number from didb_studies where insert_time > to_date('02-JUN-12');
    cursor PATH_CUR (p1_accno VARCHAR2) is
    select distinct l.FILE_SYSTEM || '/' ||
    substr(LPAD(s.PATIENT_DB_UID, 12, '0'),1,3) || '/' ||
    substr(LPAD(s.PATIENT_DB_UID, 12, '0'),4,3) || '/' ||
    substr(LPAD(s.PATIENT_DB_UID, 12, '0'),7,3) || '/' ||
    substr(LPAD(s.PATIENT_DB_UID, 12, '0'),10,3) || '/' ||
    s.STUDY_DB_UID || '/' || i.SERIES_DB_UID || '/'||
    i.RAW_IMAGE_DB_UID || '.img' as FULLY_QUALIFIED_IMAGE_NAME
    , l.image_size
    , i.image_need_backup
    , i.sop_class_uid
    from medistore.didb_studies s
    , medistore.didb_raw_images_table i
    , medistore.didb_image_locations l
    where s.accession_number = 'p1_accno'
    and s.study_db_uid = i.study_db_uid
    and i.raw_image_db_uid = l.raw_image_db_uid
    and l.file_system is not null and INSTR(l.file_system, '.img') = 0
    UNION
    select distinct(l.FILE_SYSTEM) as FULLY_QUALIFIED_IMAGE_NAME
    , l.image_size
    , i.image_need_backup
    , i.sop_class_uid
    from medistore.didb_studies s, medistore.didb_raw_images_table i,
    medistore.didb_image_locations l
    where s.accession_number = 'p1_accno'
    and s.study_db_uid = i.study_db_uid
    and i.raw_image_db_uid = l.raw_image_db_uid
    and l.file_system is not null and INSTR(l.file_system, '.img') > 0
    order by 1;
    BEGIN
    FOR accno_rec in accno_cur LOOP
    DBMS_OUTPUT.put_line('ACCESSION_NUMBER is: '|| accno_rec.accession_number);
    FOR path_rec in path_cur(accno_rec.accession_number) LOOP
    DBMS_OUTPUT.put_line('Inner loop accession_number is :'||accno_rec.accession_number);
    DBMS_OUTPUT.put_line('Full path is : ' || path_rec.FULLY_QUALIFIED_IMAGE_NAME);
    END LOOP;
    END LOOP;
    END;

    Maybe
    DECLARE
      cursor ACCNO_CUR is
        select accession_number
          from didb_studies
         where insert_time > to_date('02-JUN-12');
      cursor PATH_CUR (p1_accno VARCHAR2) is
        select distinct
               l.FILE_SYSTEM || '/' ||
               substr(LPAD(s.PATIENT_DB_UID, 12, '0'),1,3) || '/' ||
               substr(LPAD(s.PATIENT_DB_UID, 12, '0'),4,3) || '/' ||
               substr(LPAD(s.PATIENT_DB_UID, 12, '0'),7,3) || '/' ||
               substr(LPAD(s.PATIENT_DB_UID, 12, '0'),10,3) || '/' ||
               s.STUDY_DB_UID || '/' || i.SERIES_DB_UID || '/'||
               i.RAW_IMAGE_DB_UID || '.img' as FULLY_QUALIFIED_IMAGE_NAME,
               l.image_size,
               i.image_need_backup,
               i.sop_class_uid
          from medistore.didb_studies s,
               medistore.didb_raw_images_table i,
               medistore.didb_image_locations l
         where s.accession_number = to_number(p1_accno) /* to_char(s.accession_number) = p1_accno */
           and s.study_db_uid = i.study_db_uid
           and i.raw_image_db_uid = l.raw_image_db_uid
           and l.file_system is not null
           and INSTR(l.file_system, '.img') = 0
        UNION
        select distinct
               l.FILE_SYSTEM as FULLY_QUALIFIED_IMAGE_NAME,
               l.image_size,
               i.image_need_backup,
               i.sop_class_uid
          from medistore.didb_studies s,
               medistore.didb_raw_images_table i,
               medistore.didb_image_locations l
         where s.accession_number = to_number(p1_accno) /* to_char(s.accession_number) = p1_accno */
           and s.study_db_uid = i.study_db_uid
           and i.raw_image_db_uid = l.raw_image_db_uid
           and l.file_system is not null and INSTR(l.file_system, '.img') > 0
         order by 1;
    BEGIN
      FOR accno_rec in accno_cur
      LOOP
        DBMS_OUTPUT.put_line('ACCESSION_NUMBER is: '|| accno_rec.accession_number);
        FOR path_rec in path_cur(accno_rec.accession_number)
        LOOP
          DBMS_OUTPUT.put_line('Inner loop accession_number is :'||accno_rec.accession_number);
          DBMS_OUTPUT.put_line('Full path is : ' || path_rec.FULLY_QUALIFIED_IMAGE_NAME);
        END LOOP;
      END LOOP;
    END;Regards
    Etbin

  • GetParameter not working in my function?

    hi ! I have this function but seems that the getparameter in not working and least its not catching anything.
    public void facturando(HttpServletRequest request,HttpServletResponse response){
          try{
      HttpSession sesion = request.getSession(true);    
      HashMap respuesta = null;
      RequestDispatcher dispatcher = null; 
      String sDNI=null;
      BeanBDFactura bBDFac = null;
      bBDFac = new BeanBDFactura();
      System.out.println("ESTOY facturando");
           String nombre=request.getParameter("nombre"); //en realidad es nombre + apellido
           String fecha=request.getParameter("fecha");
           double totalservicios=Double.parseDouble(request.getParameter("servicios"));
           int descuento=Integer.parseInt(request.getParameter("descuento"));
           double IVA=Double.parseDouble(request.getParameter("IVA"));
           double total=Double.parseDouble(request.getParameter("total"));
           System.out.println("Datos de registrar la factura");
           System.out.println("Nombre: "+nombre);       
           System.out.println("Fecha: "+fecha);
           System.out.println("Servicios: " +totalservicios);
           System.out.println("IVA: " +IVA);
           System.out.println("Total: " +total);
           bBDFac.registrafactura(nombre,sDNI,fecha,totalservicios,descuento,IVA,total);
           RequestDispatcher rd=getServletContext().getRequestDispatcher("/exito.jsp");
           rd.forward(request,response);
         catch(Throwable theException)
      }When I execute this I get a blank page and it stops before the
    System.out.println("Datos de registrar la factura");
    So its a problem with getparameter. What could be causing it ?
    Thanks!

    With problems like this you have to query even your base assumptions.
    request.getParameter() is returning null.
    There could be any number of reasons for this - no parameters passed, parameter mis-spelled etc etc
    So back to basics
    1 - in your servlet print out all the parameters and their values
      Map params = request.getParameterMap();
      for(Iterator it = params.entrySet().iterator(); it.hasNext(); ){
        Map.Entry me = (Map.Entry)it.next();
        String param = (String)me.getKey();
        String[] values = (String[]) me.getValue();
        System.out.println(param + " = " + values[0]);
      }That will show you all the parameters getting to your servlet.
    If there are no parameters, check how you are invoking the servlet. Via a url or a form submission?
    If there ARE parameters, is the one you want there? Is it misspelled?
    Its not working, so something, somewhere is wrong.
    This is the first step in finding out.

  • Javascript For loop not working within a function

    Hi all,
    I'm a beginner to LiveCycle and I cant seem to get a loop working within a function.  The function is being called successfully because when I manually create the code it works but I am trying to clean things up.
    So here is my working example:
    function hideContent() {
            MainFlowedSub.LevelsSub.Table1.presence = "hidden";
            MainFlowedSub.LevelsSub.Table2.presence = "hidden";
           ... and so on....
             MainFlowedSub.LevelsSub.Table8.Row1.presence = "hidden";
            MainFlowedSub.LevelsSub.Table8.Row2.presence = "hidden";
           ... and so on....
    However when I try and creat a loop instead of listing every sing table/row nothing happens. this is important to my project as there will be alot of different rows depending on radio button selections earlier in the form.  Below is the current state of my code:
    function hideContent() {
        var i=0;
         for (i=1;i<=5;i++)
             MainFlowedSub.LevelsSub.Table[i].presence = "hidden";
        var j=0;
         for (j=1;j<=23;j++)
             MainFlowedSub.LevelsSub.Table8.Row[j].presence = "hidden";
        var k=0;
         for (k=24;k<=88;k++)
             MainFlowedSub.LevelsSub.Table8.Row[k].presence = "hidden";
    this will then continue as there will be hundreds of rows.
    Any help will be greatly appreciated and I am sure I am making a basic error  so thanks in advance.
    j

    thanks for your help paul.  Again, really appreciated as I know very little about all this.
    Unfortunately its still not working... One thing I am sure of is that I am doing something very basic wrong. So here is my code, I have applied your suggestion above which will cover all my data:
    To give an understanding, I have 5 tables of content, each has i amount of rows. and I am running this script to clear/remove all items being displayed.
    function hideContent() {
        for (var i=1;i<=5;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table[" + i + "]").presence = "hidden";
        for (var i=1;i<=71;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table8.Row[" + i + "]").presence = "hidden";
        for (var i=1;i<=93;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table9.Row[" + i + "]").presence = "hidden";
        for (var i=1;i<=99;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table10.Row[" + i + "]").presence = "hidden";
        for (var i=1;i<=101;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table11.Row[" + i + "]").presence = "hidden";
        for (var i=1;i<=87;i++)
            xfa.resolveNode("MainFlowedSub.LevelsSub.Table12.Row[" + i + "]").presence = "hidden";
    It has to be something to do with my For loops because if I manually insert each line it works perfectly.
    Thanks again,
    johnny

  • Input Help (F4) does not work for Planning Functions in Web

    Hi Gurus,
    I am working in BI-Integrated Planning.
    When I execute a planning function from web layout (through Web Application Designer), the "Input Help" does not work. When I give F4 it takes me to the initial planning layout screen from the planning function variable screen without any action being performed.
    But the "Input Help" works fine when I have to select for the variable from the initial selection to open the planning layout.
    Can anyone suggest me any fix for this...
    Thanks!!!

    Hi All,
    Can somebody help me here what went wrong with indesign cc extension so that copy/paste does not work in input type element text
    Regards,
    Alam

  • Dbms_output.put_line not displaying anything

    I am running the below code (ssn_run.sql) using sqlplus 10.2.0.1.0 on my windows XP professional client PC.
    The database is a Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit running on Solaris
    I cracked my head for about one hour but couldn't figure out this :
    accept input_ssn prompt 'Enter SSN :'
    set feedback on
    set serveroutput on
    set echo on
    set term on
    set heading on
    set pagesize 0
    set linesize 10000
    set verify on
    undefne sdate input_ssn
    col sdate new_value sdate
    col input_ssn new_value input_ssn
    select to_char(sysdate,'YYYYMMDD') sdate from dual;
    spool C:\PERSON_DATA_&&sdate._&&input_ssn..TXT
    select 'REPORT GENERATED ON : '||SYSDATE FROM DUAL;
    begin
    select personid into v_personid from person where SIN = '&&input_ssn';
    INSERT INTO PERSON_OLD
    (PERSONID, TITLE, FNAME, MNAME, LNAME, ACFM, SIN, UNAME, AKANAME, DCFM,
    IROWID, SUFFIX, PTYPE, OLD_SSN)
    SELECT PERSONID, TITLE, FNAME, MNAME, LNAME, ACFM, SIN, UNAME,
    AKANAME, SIN FROM PERSON WHERE SIN = '&&input_ssn';
    INSERT INTO MEMBER_OLD
    (CLNT, MKEY, PERSONID, MEMNO, OLD_MEMNO)
    SELECT CLNT, MKEY, PERSONID, MEMNO,MEMNO
    FROM MEMBER WHERE PERSONID IN(SELECT PERSONID FROM PERSON WHERE SIN = '&&input_ssn');
    UPDATE PERSON SET FNAME = TRANSLATE(SIN,'0123456789','ACEGIKMOQS'),
    LNAME = TRANSLATE(SIN,'0123456789','SQOMKIGECA'),
    UNAME = TRANSLATE(SIN,'0123456789','ACEGIKMOQS')||' '||TRANSLATE(SIN,'0123456789','SQOMKIGECA'),
    AKANAME=NULL WHERE SIN = '&&input_ssn';
    UPDATE MEMBER SET MEMNO = MKEY WHERE PERSONID IN(SELECT PERSONID FROM PERSON WHERE SIN = '&&input_ssn');
    for i in(select personid person_other from person_relation where relpersonid in(select personid from
    person where PERSONID = v_personid))
    loop
    dbms_output.put_line('i.person_other is : '||i.person_other);
    UPDATE MEMBER SET MEMNO = MKEY WHERE PERSONID = i.person_other;
    end loop;
    EXCEPTION
    WHEN OTHERS THEN
         ecode := SQLCODE;
         emesg := SQLERRM;
         dbms_output.put_line('Error while data scrubbing: Error code is : ' || ' - ' || ecode);
         dbms_output.put_line('Error message is :' || ' - ' || emesg);
    end;
    spool off;
    set term on
    set feedback on
    set HEADING on
    set verify on
    --End of code
    The SELECT statement that comes in the for loop should return data as v_personid has a value. (I tested this by a select statement)
    However, I am just not able to display the line which comes in the inner loop :
    dbms_output.put_line('i.person_other is : '||i.person_other);
    The result of this dbms output put_line neither shows up on the screen, nor it gets written to the spool file...I am stumped with this...
    The other dbms_output put_lines that display error displays okay, but not the one in the inner loop.... Can someone help me out if you see any obvious issues here........
    Also my UPDATE MEMBER statement inside the for loop doesn't do anything whereas it was supposed to update a row !!
    Thanks

    You could display the number the query return by adding;
    v_count number;After you assign v_personid;
    dbms_output.put_line('v_personid  is : '||v_personid );
    (select count(*)
    into v_count
    from person_relation
    where relpersonid in(
       select personid
       from person
       where PERSONID = v_personid)).
    dbms_output.put_line('v_count  is : '||v_count );

  • Satellite U840W/001 W8 Fn+Z not working in Special Function Key Mode

    Hi,
    I realised that the Fn+Z does not work when my Special Functions Key mode is on i.e: when I can control the volume by just pressing F9 without pressing the Fn button.
    However, when the Special Function Keys Mode is off (& I have to press Fn with the F# buttons to control the volume), only then does the Fn+Z switch the keyboard backlight on & off.
    When I open my function key program, the only option available is to either switch the notification settings on/off. There's no timer control or anything useful on it.
    My BIOS does not have any keyboard backlight setting, only the option to use the normal Fn+F# or to use the special function key mode.
    Please help me.
    Thanks

    >I realised that the Fn+Z does not work when my Special Functions Key mode is on i.e: when I can control the volume by just pressing F9 without pressing the Fn button.
    Hmm in my case using Windows 7, the Fn + Z works even if the Special Functions Key mode is enabled. But I cannot say for sure how it works running Win 8
    On Satellite U940 with Win 8, the Fn + Z works properly too (Special Functions Key mode ON)

  • Volumne control via the earphones is not working, all other functions stop,start, next/orevíous title work fine

    Hello,
    the volumne control of my apple earphones is not working.
    All other functions available at the switch on the earphones work fine (Stop, Start, next/previous title, accept incoming call)
    I have already several times rebooted the iPhone 5S.
    I'm gratefull for every hint

    Hello Any one? Apple?
    Ah forget it... it been two weeks and nothing.
    The product wasn't even designed to last for 2 years, and mine is trash after less than one.
    I will NEVER buy another song from the itunes store or another iPod. or even another Mac product for that matter.
    Message was edited by: Chompers417

  • DBMS_OUTPUT.PUTLINE Not Working

    I am new to Application express.I am unable to display anything on the screen (under the Results tab) in SQL Commands. I have the following program:
    set serveroutput on;
    Declare
    vfirstname varchar2(35);
    vlastname varchar2(35);
    ccounter CONSTANT NUMBER:=0;
    begin
    select first_name, last_name into vfirstname, vlastname
    from student_sby
    where student_id=123;
    dbms_OUTPUT.PUT_LINE ('student name: ' || ' ' || vlastname);
    end;
    When I run the program, it does not produce any error and any out put.
    If I just have the select statement I get the results displayed.
    select first_name, last_name
    from student_sby
    where student_id=123;
    Any help will be appreciated. I am using Oracle Application Express version 4.x.

    If you want to see debug information perhaps it's best if you use APEX_DEBUG_MESSAGE http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_debug.htm
    For a quick output, use htp.p in a PL/SQL Region.
    Like this
    Declare
    vfirstname varchar2(35);
    vlastname varchar2(35);
    ccounter CONSTANT NUMBER:=0;
    begin
    select first_name, last_name into vfirstname, vlastname
    from student_sby
    where student_id=123;
    htp.p ('student name: ' || ' ' || vlastname);
    end;
    That will output the message to the page.
    Thanks
    -Jorge

  • Auto-complete not working on variables/functions within a class in FlashBuilder 4.5

    Hi all,
    I'm using Flash Builder 4.5 (not burrito), and I'm not getting auto-complete on variables or functions within the class I'm working in.  It will auto-complete classes, and even variables within another variable, but not a variable within that class.
    As an example, let's say I have a class with this var:
    private var myDate:Date = new Date();
    If I start typing myD, I can't get myDate to autocomplete.  But once I type myDate., I'll get auto-complete for all the variables/functions in the Date class.
    I've tried re-installing FlashBuilder and switching workspaces, but with no luck.
    Also tried creating a brand new test project, but it didn't work there either.
    Anyone have any ideas what might be wrong?
    Thanks!

    Hi,
    After you type "myD" If u press cntrl + space it should auto-complete to myDate. Please raise a bug in http://bugs.adobe.com/flex with the sample project as i am not able to reproduce.
    On the other hand if you were expecting code hint to show up as soon as you type "myD" (without pressing cntrl+space) , Please follow the below step.
    Go to Window -> Preferences -> Flash Builder -> Editor
    check the "use additional custom triggers" check box. Leave the keys as default value .
    That should work for you .

Maybe you are looking for

  • Creating Error log files using UTL_FILE package on a remote machine

    Database Version: 10g Release2 OS Platform: Sun Solaris I have been asked to log errors to OS files rather than tables. So, i wanted to use UTL_FILE package. But the client doesn't want to store these files on the same server where the database is ru

  • Scheduled delivery apps

    How to delete all scheduled delivery apps from Photosmart 5520

  • Google Docs notifications will not display...

    When I receive a Google Docs notification auto-email (spreadsheet) , only the first row will disply. Very tall, with the headings at the bottom. No Body! Was using v11; tried Beta 12.0b, still NG! Works with other browsers (darn it!). :-) Anything I

  • Beginner date frustration

    I'm new to Java and am just going through some basic exercises with the Date object. Consider the following method of an invoice object: public Date getDueDate()           long current = invoiceDate.getTime();           Date date =  new Date(current

  • Run Single Java WebDynpro on SSL

    Hello experts, is it possible to run a single Java WebDynpro as SSL secured or do I have to set up the hole Portal for https to achieve this? Regards, Marc p.s. We have set up https but run the portal in normal http mode. Only Single iViews run with