Transfer a value from a procedure at the apex

Hello

I have a login procedure where I check the status of the user.
at the moment only through dbms_output.put_line status.

Now I want to transfer this status to apex - how can I do this?
If I have for example an element of application for the State, how can I assign the status at this point?

Thank you
Lena

Published by: Lena F March 7, 2011 06:15

If you want to set the element from the procedure directly, you can use the APEX_UTIL. SET_SESSION_STATE function (a session valid apex)

You could call it after authentication or Application process that runs when a new session is created

Tags: Database

Similar Questions

  • Return a value from a procedure at the apex

    Hello

    I am running a procedure that has a flag of return if the procedure correctly a command I send to him, I do something like that to call the procedure in the process of the apex


    Declare
    x NUMBER;
    BEGIN
    APEX_SCHEMA. EXECUTE_CREATE_ITEM ("asd", x);


    DBMS_OUTPUT. PUT_LINE ('OUTPUT :'|| x);

    END;


    can I return to the apex of the variable x to display it in the message of success or error of the process?

    Tanks

    You can use
    apex_application.g_print_success_message: = x;
    or
    apex_application.g_notification: = x;
    in your process of PL/SQL

  • transfer of value from one page to the other

    HIL.

    I use Apex 4.2

    I want to transfer value a page to another.

    Page 1: a report

    Page 2: contains a shape to update a line report.


    So I want to transfer for example name of the employee from page 2 to 1. And on page 1, I want to display a message with JS or Jquery like this: «...» ", the employee is updated.


    Thank you in advance.

    Best regards.

    982158 wrote:

    But I need also the value of the element in 1 page, since I have a treatment to the already modified line (background color changes of this line for example)

    Create a 1 page element and set its value to the branch page 2.

  • How can I transfer photoshop cs5 from one laptop to the other?

    How can I transfer photoshop cs5 from one laptop to the other?  I bought a new macbook pro, I disabled the photoshop of my old laptop, all copied application files from adobe on an external hard drive and put them on my new laptop, but I can't open photoshop.  I don't know what to do.

    You do not copy, you INSTALL using the disc you bought it

    Download & install instructions https://forums.adobe.com/thread/2003339 can help

    -includes a link to access a page to download the Adobe programs if you do not have a disk or drive

    Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq

    - and also read https://forums.adobe.com/thread/1146459

    You must ALSO make the additional steps to install OLD programs on El Capitan

    This information is a MUST to install old programs on Mac El Capitan

    -You can't get the same error message, but these links that CAN help with old programs

    Install CS5 on Mac 10.11 https://forums.adobe.com/thread/2003455 can help (also for others than CS5)

    -also a TEMPORARY security change https://forums.adobe.com/thread/2039319

    -http://mac-how-to.wonderhowto.com/how-to/open-third-party-apps-from-unidentified-developer s-mac-os-x-0158095 /

    FAQ on the Mac 10-11 https://forums.adobe.com/thread/1979303

  • How to pass values from one form to the other setting

    Hello

    I have created two forms Form_A and Form_A. Form_B, having a button "submit" and called the new form of B.
    I have done some calculations in form B. Now I want to spend this calculation value back to Form_A when I press
    My Exit in Form_B button.

    In FormA, just before calling FormB declare and initialize a global variable

    :GLOBAL.PASS_BACK := ''; -- declaration and initialization
    CALL_FORM(FORMB,....);
    --> At this point the :GLOBAL.PASS_BACK variable should have the calculated value from FormB
    

    In the B form to trigger after CHANGE calculated item or KEY of VALIDATION or WHEN - click the BUTTON to exit FormB write - anywhere after the calculation were made

    :GLOBAL.PASS_BACK := ;
    

    For more details, search for the global variables in the form builder help.

    Kind regards

  • Passing the value from one page to the other page

    Hi gurus,

    I need to pass the value from one page to the other page and two pages use different AMs.
    In the first page I have sellers results region table where the $vendor_name column is a hyperlink that navigates to the page Vendor_Sites. Now after accessing the second page, I want to excute the VendorSitesVO in PR of CO based on the value passed to VendorsVO (vendor_id) of first page.

    can someone help me on this?

    Thank you
    Vincent.

    Published by: user4933347 on December 4, 2009 12:19 AM

    You can set parameters of Pagecontext and transmit values through them. These values can be passed between pages, even if the AMs are different.

    Try:
    pageContext.putParameter ("Parameter1", value1);
    pagecontext.setForwardURL (second page)

    Concerning
    Sumit

  • Copy the default value from another field in the same page

    Hello

    I need to pass a value from one page to another page and I want to use this key as DEFAULT VALUE for a field.

    If I create a form tabular all it's ok, but if I create a normal page. I am not able to do that.

    1. 1. I call the page and I pass the value. I also have a FIELD of VIEW and I can see the correct value.
    2. 2. I create a field with attributes of this:
      1. a. source > Source = database column type
      2. b. sources > Source value or expression = FK_ID_DA (the column name)
      3. c. default > default = P27_PK_ID_DA (the field that contains the value)
    3. 3. on the screen, I see P27_PK_ID_DA and not the value

    Where is the error?

    Thank you very much

    TexasApexDeveloper wrote:

    You missed one: before the variable, without it, the default value is the string...

    Not sure that you can READ the other pages... Such that if you are on Page 27 and have a field that you want to use on page 30, page 27 is presented and its items in session state, you can 'see' on page 30.

    So, if you set the default value: P27_PK_ID_DA, then you should get by default, you are looking for...

    Only if the default value Type is set on the PL/SQL Expression. If the literal value "P27_PK_ID_DA" is seen then the Type of default value should currently be set static text with Substitutions of State of Session, in which case the value of session state must be referenced using the syntax of substitution string:

    &P27_PK_ID_DA.

  • APEX - passing values from one page to the other

    Hello

    I created a new page with a report. I put one of the columns as a link that opens another page. This page should contain other details of the particular line.

    For example:
    There is a page with a list of employee names and the number of employees in both columns. When I click on the name of employee, he must open another page with additional details of the employee in particular (such as date of birth, e-mail etc.).

    What I'm trying at the moment is to create another page with a report inside. How do I pass the name of the employee as a parameter to this second page? And how do I do the query in the second page accept this setting?

    Is there a better way to do this?

    Kind regards
    Santhosh Jose

    Hello

    on your detail page (2nd report) create a hidden page element called P2_EMPID
    Now change the query on this page to use this page element in the where clause (such as a variable binding).
    for example:

    Select * from EMP
    where empid =: P2_EMPID

    On your first page, you need to set a link to the column for the chosen, employed at the point P2_EMP on the second page. This can easily be done via a column binding in the report on the first page (have it redirect to a page in the apex and set the page to the second page of the report, and also set the P2_EMPID value to the value of #EMPID #, correcting the names of these variables can be chosen in the selection lists when you set the link in the column).

    concerning
    Bottom

  • How can I pass values from one node to the other

    Give a standard and efficient way to pass values of the child to the parent

    Hai Prathap

    You can use the custom event to pass values from the children to the parent

  • Passing values from one scene to the other

    Hello, how can I pass a value from a textbox in scene1 to another area of text that is in scene2?

    In scene 1, you might have...

    var str:String = t1.text;

    and to scene 2, you might have...

    T2. Text = str;

  • Oracle form functions and procedures in the APEX, how?

    I'm working to recreate in the APEX, already existing read only forms in Oracle Forms. Report features interactive APEX among other things, in fact worth as well as to target a different audience than utilizies versions of Oracle Form. Versions of Oracle Forms use a lot of pre and post query triggers, PLSQL functions.

    In Oracle Forms that places, these functions can be found in the "Units of program" section of the form. A feature typical of this kind, based on a particular Mission ID route, collecting names of regular passengers, is shaped with a comma and a space after each of them, in a single string that is returned and displayed the list of passengers of a line.

    I have all of this written code so I can move most of the main request of the Oracle form in an interactive report. These functions and triggers called in the form of the "Units of program" section of the Oracle form rather than stored in the database schema in a package, where they would go inside the APEX? Can I create a 'shortcut' in the APEX and call it from the interactive report "Source Région"? I can create the PLSQL function at the level of the region of the interactive report or page level? Or, my best bet creates a package that is stored in the database, all these functions and/or proecedures I might need the original form of Oracle?

    Some advice would be greatly appreciated.

    RLBickham wrote:
    I don't think I've been pretty clear in the description of the specific thing I want to do, simply, it does not reach the level of forms of conversion of the APEX. It is basically a problem of PLSQL function.

    I have an interactive report which is currently 90 percent of what I want however, each line, which represents a Mission may have several feet. Each arm has two places or ICAO codes attached to it. Based on the number of Mission, I want to loop through the array of leg, collect all the codes of ICAO for this Mission, put them together in 1 variable separated by a coma and add this variable to display the columns in this interactive report as the last column.

    In Oracle Forms, I have a function registered in the database, which is called in the main query. Maybe I ask a question that does not need to be asked, but anyway my question is can I put this function currently in the database somewhere within the interactive report and somehow reference it via Http, or should I just stick with set of functions and procedures in the packages stored in the database and called the conventional way?

    You could switch the function to the database and call it from the report query, but it sounds as if it were superfluous. In the report query using any form of Re: 4. How can I convert rows to columns? is appropriate for your version of the (unspecified) database.

    -----

    When you have a problem, you will get an answer faster, more efficient including information as much information as possible from the outset. This should include:

  • Full version of APEX
  • Complete operating system DB, version, edition, host
  • Architecture of Web server (EPG, SST or APEX listener/host operating system)
  • Browser (s) and version (s) used
  • Theme
  • Model (s)

  • Region/section type (s) (particularly as to distinguish if a 'report' is a standard report, an interactive report, or indeed a 'update report' (i.e. a tabular presentation))

    With APEX, we also had the chance to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproduce things is the best way to solve most of the questions, particularly those relating to the layout and Visual formatting. If you expect a detailed response it is appropriate that you take on an important part of the effort by getting as much as possible with an example of the problem on apex.oracle.com before asking for help on specific issues, then we can see firsthand.

  • How to display a GIF beside a column value in a report of the APEX?

    Hi all

    I've created a report and I have a numeric column on it.
    I would like to show some image (gif from a location as the Image prefix/app /), but I only need to show the image if the value of this column is "> x'»

    For example, take a look at:

    http://www.troostwijkauctions.com/UK/lots/11959/1868/1/Cranes_and_accessoires.aspx?c=agenda & sort = IDB

    * LotNo 577 for example has a little picture of flames beside him, due to the fact that the number of bids was higher than 5.

    Someone there already does this and can help me with a Board?
    I guess I need to do this in JS placed on the formatting of column in the expression of HTML.

    Thank you
    Ana-Maria

    Ana-Maria

    Use a CASE statement in your SQL as follows:

    SELECT THE CHECK BOX
    WHEN number_bids > 5 THEN
    To_char (number_bids) | » Hot'
    ON THE OTHER
    To_char (number_bids)
    END
    Offers

    Kind regards

    Jon

  • Pulling data from another database in the APEX

    Hi all

    Within the Apex, is it possible to connect to a different database, possibly another server and select data, update a database of 'local '?

    Is it possible to generate strings for connection etc who you allow to request a name of user and password and then run the SQL code?

    The two databases are in the same enterprise network and are accessible with SQL Developer, etc.

    Thank you!
    ~ P

    Hello

    This could also help
    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35125/advnc_db_link.htm#BABBFICH

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • ORA-06565: cannot run the ROLE VALUE from stored procedures

    Hello!

    I'm trying to call a procedure from a function. Among the statements in the procedure stored is of dbms_session.set_role ('HAVE');

    I get the error "Cannot run a DEFINED ROLE less stored proceduers". I joined the call in an anonymous block above, but the error still exists.

    Any idea will really help me.

    Thank you

    >
    I'm trying to call a procedure from a function. Among the statements in the procedure stored is of dbms_session.set_role ('HAVE');

    I get the error "Cannot run a DEFINED ROLE less stored proceduers". I joined the call in an anonymous block above, but the error still exists.

    Any idea will really help me.
    >
    This will work only if the procedure is defined for the APPELLANT's rights.

    Roles are disabled in named PL/SQL blocks unless you use of the APPELLANT's rights by setting the code with AUTHID CURRENT_USER.

    The Oracle documentation provides a very clear explanation - based restriction is for the NAMED PL/SQL blocks rights DEFINER of this use (the default):
    >
    Roles used in the appointed with rights to define blocks

    All roles are disabled in any PL/SQL block named (stored procedure, function, or trigger) that runs with the rights of the author. Roles are not used to privilege control, and you cannot define roles within the procedure of a DEFINER rights.
    >
    The database Security Guide has the information in the section "operation of the roles in PL/SQL blocks (which, of course, wouldln was necessary if they didn't work.).
    http://docs.Oracle.com/CD/B28359_01/network.111/B28531/authorization.htm#i1007304
    >
    The use of roles in a PL/SQL block depends on if it is an anonymous block, or a block named (stored procedure, function, or trigger), and if it runs with the rights of the author or the rights of the applicant.

    Roles used in the appointed with rights to define blocks
    All roles are disabled in any PL/SQL block named (stored procedure, function, or trigger) that runs with the rights of the author. Roles are not used to privilege control, and you cannot define roles within the procedure of a DEFINER rights.

    The SESSION_ROLES view shows all roles that are currently enabled. If a named PL/SQL block that runs with DEFINER SESSION_ROLES rights issues, the query returns no rows.

    See also:

    Oracle database reference

    Roles used in blocks named with the rights of the plaintiff and anonymous PL/SQL
    Named PL/SQL blocks that run with the rights of the applicant and the anonymous PL/SQL blocks are executed at the end of the privileges granted through active roles. Current roles are used for verification within rights Summoner of privilege the PL/SQL block. You can use dynamic SQL statements to define a role in the session.

  • How to return a value from stored procedure.

    Hello

    I have an insert in which insert a username through generated sequence number.

    I need this generated sequence number stored procedure return.

    Kindly help me to achieve this goal.

    It might be useful if there is a code sample for the same thing.

    Thank you
    Ahmed Shareefuddin

    Something like this:

    create or replace procedure xproc (num out number) is
    begin
     insert into mytab values (myseq.nextval);
     select myseq.currval into num from dual;
    end;
    /
    

    Max
    http://oracleitalia.WordPress.com

Maybe you are looking for

  • Satellite 1135 don't start/power on

    Hello everyone, I have an old satellite 1135, it worked, then all of a sudden one day when I pressed the power button nothing happened, only the leds at the front flashed like this: 1 - with battery only, the electric light, battery and LED CD upward

  • Portege R500 3G "Radio off".

    HelloRELOADED Vista and in Mobilink, he says the Radio is off :(How can I go around it, because does not know where?Thank you

  • How to use the external drive recovery with ODD?

    Hello I need to recover my Toshiba laptop via original Toshiba recovery dvd, but my internal dvd ram does not work, then, how I upgraded my pc to search for external dvd ram when windows starts? I followed the instructions and the C button when start

  • Spectrum X 360 (N1W02PA #UUF): best practices for the use of the power supply battery for laptop (spectrum X 360)

    Hello. I know the best practice to use the power supply to charge the battery? I heard that keep charging your battery while using Notepad deteriorate autonomy. I don't know if that's true, but I do not charge my spectrum X 360 at 20% power level. Ki

  • MediaPlayer in c ++

    Hello I'm having some trouble with MediaPlayer in C++. So I added #include and using namespace bb::multimedia; and when I am trying to create a MediaPlayer as written in the documentation: MediaPlayer mp(this); I get the following errors: ../src/Alar